I'm working on a project, and here is some of my code.
I copied this code, because hopefully everyone can get the general idea what's going on. The originally code is working correctly, but I want to make a small adjustment. Now the vi.data is getting his information from the testfile.txt: inFile>>vi.data;
But I don't want to make use of a testfile anymore, but just a string.
So my question is now: What datatype does inFile has? or what datatype does vi.data need???
That's the idea! But I get the following two errors:
[C++ Error] Unit4.cpp(66): E2450 Undefined structure 'stringstream'
[C++ Error] Unit4.cpp(66): E2034 Cannot convert 'char *' to 'stringstream'
1 2
stringstream ss("vertex3");
ss>>vi.data;
Could it be, that vi.data is expecting a different data type?
Now I'm trying to call the function d.Read(ss) in the main() function.
But I get this error:
[C++ Error] Unit4.cpp(381): E2125 Compiler could not generate copy constructor for class 'ios'
[C++ Error] Unit4.cpp(381): E2247 'ios_base::ios_base(const ios_base &)' is not accessible