Running Dev-C++
blreichenau

For programming assignments that include one file (e.g. prog1.cpp):

  1. Start Dev-C++.
  2. Open a new source file.
  3. Type in your source code.

    Note:
    Older versions of Dev C++ open a new source file with the 'basic' program source code already included. If you have an older version of Dev C++ installed which automatically generates new file source code using the older style of C++ code as shown below, you need to make several changes in the code before typing in the rest of your program.


                       

  4. Save the file.
      • If you are using a shared lab machine, you are only able to save your program in the My Documents folder. Before logging off the lab machine, be sure that you have saved or copied the program to an auxiliary storage device, such as a floppy disk or memory key. I recommend that you transfer your files to either your VMS account using WS-FTP or to your Linux account using the Secure Shell File Transfer Client.
  5. Compiling the program.
  6. A window will open displaying any syntax errors found.
  7. Click the Close button.
  8. Now that your program is error and warning free, run the program. (You could use the Compile command followed by the Run command, or you can use the Compile & Run command if you are confident your code is compilation error free.)

                                  
  9. Printing your work/results.
    • To print screen output from within WordPad:
             When the user output screen is displayed, strike Alt+Print Screen.
             Open Word Pad, and paste.
             File/Print…on the equivalent of CS_Letter laser printer
    • To print source code from within Dev-C++:
              File/Print Setup…Choose CS_Letter. (or the equivalent)
                    Print

Note: If the line that distinguishes the right margin is faint or not visable at all, do the following:

Tools
         Editor Options (Choose a darker color for the right margin.)