Setup tips for DevCpp
Kadena and Okinawa students: The install file is also available in the Kadena lab if you want to
avoid a web download. Use Windows
Explorer to go to \\kadenix\public, copy the devcpp.exe file and burn
it to a CD or copy it to a USB memory stick.
DE students: if your home Internet connection crawls or is
non-existent you could go to a UMUC computer lab (most have decently
fast Internet connection), download the Dev install file from the web
site specified here, and copy it to a USB memory stick or burn it to a CD.
- DevCpp is free and open source. It's a 12 MB download.
Dev-C++
- DevCpp doesn't produce the "droppings" files and folder that VC++
creates and nags you about and clutters up your system with. It only
produces an .exe file.
- DevCpp seems easier to use than VC++.
- Accept all the defaults for the install.
- When a program is run from within the IDE, a DOS box pops up to
run the program in. When the program ends, the DOS box terminates.
To keep the DOS box from automatically terminating, put
system("pause");
as the last statement of the program (or before return 0;, if there is
one).
- 102 and 140 don't have anything to do with Projects. Don't select
New Project, select New Source File instead, always.
-
You can simplify life by making sure the
New Source File default code includes the system("pause");
and other standard incantations by doing Tools--Editor options--Code--Default source.
Look at this file.
- Editor options--Display can change the font size and turn on line
numbers.
- If a program is running (i.e. the "DOS box" exists) you can't
recompile the program, so terminate the running program.
- Dev's accessing of empty A: drive is caused by its history
mechanism. This can be removed by editing devcpp.ini to wipe out
the files from A: drive. It can also be removed by Clear History in
the file menu.
- View--Toolbars: The only toolbars you really need are Main, Edit,
and Compile and Run. You can uncheck the others and move
the three remaining into one line of toolbars. The Project/Class
browser is useless for 102 and 140. Status bar is useful.
- Printing the "DOS box" contents:
Can paste the text contents of the DOS box into any editor such as
Notepad, PFE, Word or Dev itself. Click the Mark icon of the DOS box, highlight
the text with the mouse, click the copy icon, then paste into editor
and print from there.