Barbara -
Here is how to get started with console programming in Dev C++.
1) To build the program
- create the directory where you will be working (say it "c:\bar")
- open Dev C++
- choose "File - New Project"
- choose console application and C Project
- give a name to your project, say: "hw"
- select the place where you want your project to be saved (of course this
will be "c:\bar")
- you should know see: the project manager to the left and the file
"untitled" opened in the edit window.
- fill the file "untitled" with your program (say: printf("hello world!\n");)
- save the file by: "File - Save Unit", lets say that you name it "hello"
(hello.c will be created).
- To build your project use either: "Execute - Compile" or "Ctrl + F9"
(this will create the file hw.exe in c:\bar)
2) To execute the program (I assume you are using Windows)
- Open a DOS box
- move to "c:\bar"
- launch: "hw"
If you wish, you can execute the program from Dev C++ IDE (like you usually
do with Turbo C), in this case:
- add, just before the return statement, the following line : getchar();
- now compile the program again, so that the executable file is updated (in
other words: press Ctrl + F9)
- Execute by "Execute - Run" or by pressing F9.
- Your program should now pause and let you read the screen.
- press any key (for example q) and then press return to end the execution
Have fun ...
P.S. If you want me to answer in your language then let me know.
At 17.36 21/07/01 +0200, you wrote:
>I've downloaded DEV C++.
>I've started to programme and I'm quite helpless.
>I can't see the window I generally have in Turbo-C when I do ALT F5 or
>Window/userscreen.
>You know I'm quite helpless and I have just few notions of programming.
>Besides I'm not english mother-tongue (I'm italian).
>Please, if someone may.... explain me in a really simple way step by step.
>
>Thanks.
>
>Barbara.
>
>
>
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
--
gisan
gi...@li...
|