!st of all i was wondering if i am actually learning the right code lol. I want to get into main programming for games, do i use c++?
Second thing, i followed the tut on the site , the basic one With the hello world text. And i cant run it... Help?
!st of all i was wondering if i am actually learning the right code lol. I want to get into main programming for games, do i use c++?
Second thing, i followed the tut on the site , the basic one With the hello world text. And i cant run it... Help?
Yes, C++ is the right language for games. As for your problem..well..what is it?
-"What we wish, we readily believe, and what we ourselves think, we imagine others think also."PHP Code:
sadf
Well i typed out this code:
I saved it as iostream. I then installed borland compiler or sumthing. If i double click iostram.cpp, a command prompt window flashes up then flashes away. If i open up command prompt then type in the location it says it cant open it.Code:#include <iostream> using namespace std; int main() { cout<<"HEY, you, I'm alive! Oh, and Hello World!\n"; cin.get(); return 1; }
use borland to compile and run the program. Should work now.Code:#include <iostream> using namespace std; int main() { cout<<"HEY, you, I'm alive! Oh, and Hello World!\n"; cin.get(); return 0; //returning 0 means successful exit }
nope it still didnt work. it says it cant open the file...
Have you compiled the cpp file? usually double clicking on a cpp file will open it in your IDE (or whaterver text editor you have set to open files of this type).
When compiled you should have an executable files who's extension would be .exe assuming this is a windows sytem.
You shouldn't save your file as iostream, that is used by the C++ library and will confuse you and us (and possible cause errors). Name it main.cpp or something like that.
Also, to execute a program usually you double-click the .exe file, not the .cpp file.
I think he needs to associate the files with the editor first guys.
If any part of my post is incorrect, please correct me.
This post is not guarantied to be correct, and is not to be taken as a matter of fact, but of opinion or a guess, unless otherwise noted.
Um nvm guys, i just deleted borland and installed devc++ and it works brilliantly, i love it and everything works!
borland sucks anyway, i use quincy and cygwin
VS2005 Professional!!! Gotta love to support the hard working developers by paying money for a superb product.
ModEdit nvoigt
Last edited by nvoigt; 11-08-2005 at 04:08 AM. Reason: No warez.
-"What we wish, we readily believe, and what we ourselves think, we imagine others think also."PHP Code:
sadf