Home | Forums | What's new | Resources | |
Visual C++ farking with me |
Deprecated: mb_detect_encoding(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/html/sub/sx/helpers.php on line 89 Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /var/www/html/sub/sx/helpers.php on line 93 Jul 17, 2002 - |
antime | Jul 17, 2002 | |||
VC++ depends on the file extension for its default action, so save the file with the extension "cpp" and it'll work. (If you use the extension "c" it will try to compile the file as a pure C program which won't work for this program.) You probably noticed that Ikonboard isn't the best environment for C/C++ code as it will filter out your <included files> because they look like HTML tags. To get around this, enclose your program in [CODE] tags. |
BigDAlcala | Jul 17, 2002 | |||
Cool, thx. One thing: It only lets me save as a text file. So, do I just type in filename.cpp or will it end up like filename.cpp.txt? |
antime | Jul 17, 2002 | |||
Just type in the full file name. You can also to through File/New... which will offer you a host of file types. |
BigDAlcala | Jul 18, 2002 | ||||||||
Ok, well, I tried it again, and now I get this:
Any idea....? |
antime | Jul 18, 2002 | ||||
Ah, I thought that was just Ikonboard corrupting your quote. The stream operators are << and >>, so just change your code to
Code:
|
BigDAlcala | Jul 18, 2002 | ||||
Wooohooo!! Thank you!!!! I got that code from a C++ book and the cin only had one
Code:
|