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.