Borland turbo c++ and learn c++ in 21 days, Y am i always screwe
by Saul Abreu · in Torque Game Engine · 05/24/2002 (7:44 pm) · 8 replies
I have no clue what either are saying! :) one says to put some code in a .ccp. Save it as a plain text, WTF?! .txt or .ccp?! And my compiler... when i start it, it shows a DOS window and then instantly closes the DOS window...
#2
All source code are stored in plain text files, as in they can be viewed in they're intended form from any text editor. The file type, however, is marked as .cpp or .cc in the case of files for c++ compilation, .c for C compilation, .h or .hpp for header files. Despite the different file extensions all of them store the content as plain text.
05/25/2002 (4:53 am)
The file extensions (.cpp, .txt) do not determine the type of the file content, but only indicate the file type.All source code are stored in plain text files, as in they can be viewed in they're intended form from any text editor. The file type, however, is marked as .cpp or .cc in the case of files for c++ compilation, .c for C compilation, .h or .hpp for header files. Despite the different file extensions all of them store the content as plain text.
#3
05/25/2002 (8:12 am)
So I save a file called Hello.cpp.txt?
#4
Text files are NOT denoted by extension but by content.
Too much windows Saul!
05/25/2002 (8:25 am)
no do EXACTLY as the instructions say. You are "infering" to much information. Do things as they are exactly stated.Text files are NOT denoted by extension but by content.
Too much windows Saul!
#5
just 'hello.cpp'
05/30/2002 (10:59 am)
Yeah, kids today are born with windows programmed in their brain. :-)just 'hello.cpp'
#6
It's a great book for VC++ noobs though...
I jumped into this thread late so I'm not sure what went down earlier... but just a few words, hope they help...
Implementation file xxxx.cpp
Header files xxxx.h
If you are using Notepad, you gotta SAVE AS, then click on the SAVE AS TYPE option and change it from text to ALL TYPES... then name your source appropriately.
If you just save it from Notepad with the default options, it will always add a .txt extension.
Good Luck
--Mike
05/31/2002 (6:30 am)
Learn C++ In 21 Days is geared towards the Microsoft Visual C++ development environment... and will probably confuse the heck outta you if you are using the Borland Dev environment.It's a great book for VC++ noobs though...
I jumped into this thread late so I'm not sure what went down earlier... but just a few words, hope they help...
Implementation file xxxx.cpp
Header files xxxx.h
If you are using Notepad, you gotta SAVE AS, then click on the SAVE AS TYPE option and change it from text to ALL TYPES... then name your source appropriately.
If you just save it from Notepad with the default options, it will always add a .txt extension.
Good Luck
--Mike
#7
Open up notepad, type something in and do a File | Save.
For the file name type this exactly, including quotes:
"myfile.cpp"
You'll get the file without the .txt extension. Also, it might help to set windows to always display the file extension. I think the setting is in the View tab of the Folder Options control panel. That way, you can always rename the extention of a file from Windows--instead of it hiding it from you.
--Paul
05/31/2002 (6:15 pm)
In notepad from Win9x+ you can also surround the file name in the save/save as dialog with double quotes and it won't add the .txt extension.Open up notepad, type something in and do a File | Save.
For the file name type this exactly, including quotes:
"myfile.cpp"
You'll get the file without the .txt extension. Also, it might help to set windows to always display the file extension. I think the setting is in the View tab of the Folder Options control panel. That way, you can always rename the extention of a file from Windows--instead of it hiding it from you.
--Paul
#8
any help tips or links would be appreciated
07/15/2003 (9:19 pm)
Do any of u have borland as ur compiler because i am getting it and wondering if it will work with the source engine and if it doesnt work is there anthing i can get to make it work ?any help tips or links would be appreciated
Torque Owner Saul Abreu