Y
Yesim
Hello,
I am trying to read two-dimensional float data into C++, but am
getting a segmentation fault error message. This happens in g++
compiler versions 2.95.2 and 3.1, but not on version 3, each in three
different servers. I need to compile in the latest version. Below I
attach the beginning of the code giving the problem:
# include <iostream>
# include <fstream>
int main()
{
std::ifstream input ; (this is where the problem occurs, i then
go on)
...
input.open("filename") ;
...
}
and so on. Is there a more general/accepted way to do this? Please let
me know if you need more detail. Thanks a lot,
Yesim
I am trying to read two-dimensional float data into C++, but am
getting a segmentation fault error message. This happens in g++
compiler versions 2.95.2 and 3.1, but not on version 3, each in three
different servers. I need to compile in the latest version. Below I
attach the beginning of the code giving the problem:
# include <iostream>
# include <fstream>
int main()
{
std::ifstream input ; (this is where the problem occurs, i then
go on)
...
input.open("filename") ;
...
}
and so on. Is there a more general/accepted way to do this? Please let
me know if you need more detail. Thanks a lot,
Yesim