c++ - please help, patience appreciated.
- graham (5/5) Oct 21 2005 Please help. I am about to start teaching myself C++. Ths coding is not ...
- Bertel Brander (21/26) Oct 21 2005 Yes, you can use Notepad to edit/write the code, but,
- Graham (2/28) Oct 31 2005 Do I need a compiler to run the program or can I run it on something els...
- Bertel Brander (12/13) Oct 31 2005 I'm not sure that i understand your question.
-
graham
(8/44)
Nov 01 2005
In article
, Graham says... - Bertel Brander (36/44) Nov 01 2005 Neither Windows nor Office provides any program
- graham (2/46) Nov 02 2005
Please help. I am about to start teaching myself C++. Ths coding is not my problem it is where do I type it. If you can cast your mind back to beginning. What do I need. Can I write my coding on Windows notepad, if so how do I run and view it, do I need other software in order to do C++ writing. Plaes let me know people.
Oct 21 2005
graham wrote:Please help. I am about to start teaching myself C++. Ths coding is not my problem it is where do I type it. If you can cast your mind back to beginning. What do I need. Can I write my coding on Windows notepad, if so how do I run and view it, do I need other software in order to do C++ writing. Plaes let me know people.Yes, you can use Notepad to edit/write the code, but, It's often better to use a "programmer editor", in which you can: - Configure and run the compiler, and see the output, and jump to the line in which errors occur - Run the program. - Browse functions, classes, etc. and quickly find these. This becomes important when your project gets bigger. There is a list of such editors here: http://texteditors.classichorseman.com/cgi-bin/wiki.pl?EditorIndex I have used Zeus which is on the list, but it is not free. Vi, emacs and versions of these are very powerfull but not easy to learn. On the list you will also find Wain, which I have made, its free, it can also be downloaded from my homepage, see below. With your Mars compiler there is a version of Emacas, I have not used it. -- Absolutely not the best homepage on the net: http://home20.inet.tele.dk/midgaard But it's mine - Bertel
Oct 21 2005
In article <djat38$20i6$1 digitaldaemon.com>, Bertel Brander says...graham wrote:Do I need a compiler to run the program or can I run it on something else?Please help. I am about to start teaching myself C++. Ths coding is not my problem it is where do I type it. If you can cast your mind back to beginning. What do I need. Can I write my coding on Windows notepad, if so how do I run and view it, do I need other software in order to do C++ writing. Plaes let me know people.Yes, you can use Notepad to edit/write the code, but, It's often better to use a "programmer editor", in which you can: - Configure and run the compiler, and see the output, and jump to the line in which errors occur - Run the program. - Browse functions, classes, etc. and quickly find these. This becomes important when your project gets bigger. There is a list of such editors here: http://texteditors.classichorseman.com/cgi-bin/wiki.pl?EditorIndex I have used Zeus which is on the list, but it is not free. Vi, emacs and versions of these are very powerfull but not easy to learn. On the list you will also find Wain, which I have made, its free, it can also be downloaded from my homepage, see below. With your Mars compiler there is a version of Emacas, I have not used it. -- Absolutely not the best homepage on the net: http://home20.inet.tele.dk/midgaard But it's mine - Bertel
Oct 31 2005
Graham wrote:Do I need a compiler to run the program or can I run it on something else?I'm not sure that i understand your question. An editor is not a compiler and a compiler is not an editor. To create your own programs you need a compiler, e.g. Digital Mars and an editor, e.g. one of the ones mentioned in my mail. What do you mean by "run the program", which program? And what could "something else" be? -- Absolutely not the best homepage on the net: http://home20.inet.tele.dk/midgaard But it's mine - Bertel
Oct 31 2005
In article <dk5432$suf$1 digitaldaemon.com>, Graham says... Sorry I meant to say editor not compiler. As I mentioned patience is necessary. My questiono is basically can I wrie code in notepad and would this be a compiler if so how do I view or run the progamme I have written. Do I need to by an editor to do this or is there anything contained in Windows or Office that will allow me to run the programme. E.g NOtepad is contained on windows as a kind of compiler is there some kinf of editor I can use? Thanks for your help with this.In article <djat38$20i6$1 digitaldaemon.com>, Bertel Brander says...graham wrote:Do I need a compiler to run the program or can I run it on something else?Please help. I am about to start teaching myself C++. Ths coding is not my problem it is where do I type it. If you can cast your mind back to beginning. What do I need. Can I write my coding on Windows notepad, if so how do I run and view it, do I need other software in order to do C++ writing. Plaes let me know people.Yes, you can use Notepad to edit/write the code, but, It's often better to use a "programmer editor", in which you can: - Configure and run the compiler, and see the output, and jump to the line in which errors occur - Run the program. - Browse functions, classes, etc. and quickly find these. This becomes important when your project gets bigger. There is a list of such editors here: http://texteditors.classichorseman.com/cgi-bin/wiki.pl?EditorIndex I have used Zeus which is on the list, but it is not free. Vi, emacs and versions of these are very powerfull but not easy to learn. On the list you will also find Wain, which I have made, its free, it can also be downloaded from my homepage, see below. With your Mars compiler there is a version of Emacas, I have not used it. -- Absolutely not the best homepage on the net: http://home20.inet.tele.dk/midgaard But it's mine - Bertel
Nov 01 2005
graham wrote:In article <dk5432$suf$1 digitaldaemon.com>, Graham says... Sorry I meant to say editor not compiler. As I mentioned patience is necessary. My questiono is basically can I wrie code in notepad and would this be a compiler if so how do I view or run the progamme I have written. Do I need to by an editor to do this or is there anything contained in Windows or Office that will allow me to run the programme. E.g NOtepad is contained on windows as a kind of compiler is there some kinf of editor I can use? Thanks for your help with this.Neither Windows nor Office provides any program creation tools. Notepad can be used to write and edit your code. To do that you: Open notepad, write your program, e.g.: #include <iostream> int main() { std::cout << "Hello World!" << std::endl; } And you save the program to a file, say hello.cpp. To be more accurate, this is the source code of your program. The you open a command prompt: Start Menu -> Run -> cmd (if NT/2000/XP else command) The rest will be done in this commmand box. Now you change the the active directory of your command prompt to the folder in which you stored the source code, this is done by the cd command, e.g.: cd \myprograms\hello Now you have to compile your program, that is, create an executeable from the source code, this is done by the compiler, you do it by running the command: dmc hello.cpp The compiler will most likely print the slightly odd message: link hello,,,user32+kernel32/noi; If the compiler succeeds, it will have created an program called hello.exe. You can then run your program by typing the command: hello And your program will write: Hello World. -- Absolutely not the best homepage on the net: http://home20.inet.tele.dk/midgaard But it's mine - Bertel
Nov 01 2005
Thank You Bertel In article <dk8djg$l7a$1 digitaldaemon.com>, Bertel Brander says...graham wrote:In article <dk5432$suf$1 digitaldaemon.com>, Graham says... Sorry I meant to say editor not compiler. As I mentioned patience is necessary. My questiono is basically can I wrie code in notepad and would this be a compiler if so how do I view or run the progamme I have written. Do I need to by an editor to do this or is there anything contained in Windows or Office that will allow me to run the programme. E.g NOtepad is contained on windows as a kind of compiler is there some kinf of editor I can use? Thanks for your help with this.Neither Windows nor Office provides any program creation tools. Notepad can be used to write and edit your code. To do that you: Open notepad, write your program, e.g.: #include <iostream> int main() { std::cout << "Hello World!" << std::endl; } And you save the program to a file, say hello.cpp. To be more accurate, this is the source code of your program. The you open a command prompt: Start Menu -> Run -> cmd (if NT/2000/XP else command) The rest will be done in this commmand box. Now you change the the active directory of your command prompt to the folder in which you stored the source code, this is done by the cd command, e.g.: cd \myprograms\hello Now you have to compile your program, that is, create an executeable from the source code, this is done by the compiler, you do it by running the command: dmc hello.cpp The compiler will most likely print the slightly odd message: link hello,,,user32+kernel32/noi; If the compiler succeeds, it will have created an program called hello.exe. You can then run your program by typing the command: hello And your program will write: Hello World. -- Absolutely not the best homepage on the net: http://home20.inet.tele.dk/midgaard But it's mine - Bertel
Nov 02 2005