Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript |
c++ - Mixed "C"-gnals
I actually found a tutorial for the absolute beginner in C and C++ online. While I understand that I still need to get a book, I was still delighted to find more online enlightenment. So, of course, comes my next questions: All the program exercises for these tutorials have (obviously) a ".c" extension. Will this be compatible with the DigitalMars compiler? Will I need to rename them to '.cpp' before I can use any of them? or will that corrupt the file or compiler? Me (again) Sep 17 2002
No you don't have to rename them. As long as C++ sources are in *.cpp files and c sources are in *.c files. The compiler is a C and C++ compiler. Aurura wrote:I actually found a tutorial for the absolute beginner in C and C++ online. While I understand that I still need to get a book, I was still delighted to find more online enlightenment. So, of course, comes my next questions: All the program exercises for these tutorials have (obviously) a ".c" extension. Will this be compatible with the DigitalMars compiler? Will I need to rename them to '.cpp' before I can use any of them? or will that corrupt the file or compiler? Me (again) Sep 17 2002
the '.c' files I have were originally in a folder called 'CTutorial'. I had to move a '.c' into DigitalMars' bin file in order for it to link and compile. Though I'm satisfied with the result, I'd like to ask if all of the .c or .cpp files I ever use or create will have to be saved in DigitalMars' bin file in order to work? Me Sep 17 2002
Aurura wrote:the '.c' files I have were originally in a folder called 'CTutorial'. I had to move a '.c' into DigitalMars' bin file in order for it to link and compile. Though I'm satisfied with the result, I'd like to ask if all of the .c or .cpp files I ever use or create will have to be saved in DigitalMars' bin file in order to work? Me Sep 18 2002
In article <amad0k$2b9d$1 digitaldaemon.com>, Aurura says......exactly how do I do that? Sep 18 2002
...I tried your first example in five different ways. Here's how I tried them: 1. set path=c:\DigMars\dm\bin,%PATH% Too many parameters 2. set path=c:\DigMars\dm\bin (Took me back to the original prompt) 3. set path=c:\DigMars\dm\bin,compiler Too many parameters 4.set path=c:\DigMars\dm\bin, compiler Too many parameters 5.set path=c:\DigMars\dm\bin,%compiler% Syntax error As you can see, I have no idea what I'm doing. I'll keep trying. Any additional assistance would be absolutely wonderful. Me Sep 18 2002
okay, so I used a semi colon instead. now, I type in path, and I get: PATH=C:\DIGMARS\DM\BIN;C:\DIGMARS\DM\BIN;COMPILER um... was this supposed to happen this way? feeling sheepish, Me Sep 18 2002
Aurura wrote:...I tried your first example in five different ways. Here's how I tried them: 1. set path=c:\DigMars\dm\bin,%PATH% Too many parameters 2. set path=c:\DigMars\dm\bin (Took me back to the original prompt) 3. set path=c:\DigMars\dm\bin,compiler Too many parameters 4.set path=c:\DigMars\dm\bin, compiler Too many parameters 5.set path=c:\DigMars\dm\bin,%compiler% Syntax error As you can see, I have no idea what I'm doing. I'll keep trying. Any additional assistance would be absolutely wonderful. Me Sep 18 2002
|