I need help in C++ (codes in tutorials not working)?
agent_katarn
2009-07-31 23:58:13 UTC
I have used multiple tutorials of making games in c++.Every tutorial i used on very popular c++ teaching sites have lead to an error or my microsoft visual c++ express can't recognize a lot of the codes i made.
Any help?
Three answers:
tbshmkr
2009-08-01 01:18:44 UTC
Try a different IDE & Compiler == Codeblocks with MinGW
=
Code::Blocks == Open Source C/C++ IDE
http://www.codeblocks.org/downloads/5
codeblocks-8.02mingw-setup.exe
-
Which tutorials are you using? Samples of the source code?
-
The Lonestar
2009-08-01 00:29:19 UTC
tutorials use very simplistic and open-ended code blocks. Visual C++ (by Microsoft) uses similar but NOT equal syntax to the REAL language, that is to say...C++. As a programmer I have run across similar problems hundreds of times. and there are very few compilers that can correct the differences. My suggestion would be to FIRST check your compiler's parameters and if they jibe with both dialects, I would question the source code. Good Luck cause programming can definitely drive you to drink!!!LOL
Taz
2009-08-01 00:22:42 UTC
are you using a certain file type?
such as .cpp .c
___________________________
other things that might be it. The tutorials you are using are old c++ code and the c++ express doesn't recognize the old syntax.
hope I was of assistance.
ⓘ
This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.