Help with a very simple program
Hello,
I am a student just starting out with C++. I'm using the DevC++ compiler. I've written this program. Its syntax is correct, and when I compile I get no errors. When I run the program, an output window opens for a split second and closes before I can read anything. Do you have any ideas as to why this might be happening?
Code:
/* first.cpp
* This is my first C Program!
* This program will display the statement "This is
* my first C program" on the output screen
*/
#include <stdio.h>
main ()
{
printf ("This is/n");
printf ("my first C program/n");
}
/* Computer...end program */