| Okay, here's what I am doing. I copied a small piece of sample code from a tutorial for the sole purpose of getting familiar with the mechanics. That way I can copy larger pieces of code, and see results when I make changes to it. The code I copied first was-
// my first program in C++
#include <iostream.h>
int main ()
{
cout <<"Hello World!";
return 0;
}
I then pressed the "compile and run" button on the Dev-C++ tool bar. The screen flashed, then a message appeared in the compiler at the bottom of the screen stating that prog1.cpp was compiled successfully, but no other results.
I originally entered the program in crimson editor, but after realizing I needed a separate compiler I downloaded Dev-C++ and opened the file in that, I don't think that makes a difference, but I am trying to be specific here.
I apologize if these questions are incredibly simple, but I don't really know anyone to ask. So far (not that I am that far along) I am having no problem understanding the structure and logic of the code itself (which I expected... which is why I am trying this!), it is just the programs I am using to write and compile it! |