Hi,
i still got some Probs with my Code :-(
Code:
.Code:#include <vector> #include <cstdlib> #include <iostream> using namespace std; struct SimpVec { float coordx; float coordy; float coordz; }; int main() { vector<SimpVec> alphaVector; for( int i=0; i < 10; i++ ) alphaVector.push_back( i + 65 ); // Display the vector for( theIterator = alphaVector.begin(); theIterator != alphaVector.end(); theIterator++ ) cout << *theIterator; return 0; }
Here are some compiling errors: (follow compileerrors are cut out)
Compiling...
test.cpp
c:\programme\vtk40\cylinder\test.cpp(21) : error C2664: 'push_back' : Converting of Parameter 1 from 'int' to 'const struct SimpVec &' not possible.
c:\programme\vtk40\cylinder\test.cpp(27) : error C2440: '=' : 'struct SimpVec *' cannot be converted to 'int'
c:\programme\vtk40\cylinder\test.cpp(27) : error C2446: '!=' : No Conversion from 'struct SimpVec *' to 'int'
Error executing cl.exe.
Anyone knowing the problem? I am new to this stuff, and i need to make it, even this isn't real beginnerstuff.
Thanks in advance!
Jan
[code][/code]tagged by Salem



LinkBack URL
About LinkBacks



I used to be an adventurer like you... then I took an arrow to the knee.