At 6/18/06 12:14 PM, iv00w wrote:
omg i keep getting this problem, with every program:
when i insert for example this code:
std::cout << "Hello World!";
and then hit compile and run, the program wont run, and i get an error telling me that some file is not found.
Please help me, i get this with every program!
I'm sorry for the late response, but I see the problem. Are you used to typing in php code? If so, that might explain why the error existed.
You see, C++ is not a dynamic language. You must put ALL of your declared variables at the top of int main()
I hope that helps. If it doesn't, oh well...
BTW, I made a big, awesome tutorial on Structures and Classes. It doesn't quite go in-depth with classes yet, but I'm going to probably add that later in the topic.