Thread overview | |||||||||
---|---|---|---|---|---|---|---|---|---|
|
October 21, 2005 please help, patience appreciated. | ||||
---|---|---|---|---|
| ||||
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. |
October 21, 2005 Re: please help, patience appreciated. | ||||
---|---|---|---|---|
| ||||
Posted in reply to graham | 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 |
October 31, 2005 Re: please help, patience appreciated. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bertel Brander | In article <djat38$20i6$1@digitaldaemon.com>, Bertel Brander says... > >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 Do I need a compiler to run the program or can I run it on something else? |
October 31, 2005 Re: please help, patience appreciated. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Graham | 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 |
November 01, 2005 Re: please help, patience appreciated. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Graham | 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: >>> 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 > >Do I need a compiler to run the program or can I run it on something else? |
November 01, 2005 Re: please help, patience appreciated. | ||||
---|---|---|---|---|
| ||||
Posted in reply to graham | 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 |
November 02, 2005 Re: please help, patience appreciated. | ||||
---|---|---|---|---|
| ||||
Posted in reply to Bertel Brander | 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 |
Copyright © 1999-2021 by the D Language Foundation