I used code to create that littl box for the code to go into, but if it doesnt work then ill try again



Ive used both cin.get() and system("pause") to let the program run while keeping the window open. In both cases the program runs one line and then stops. I dont understand why their stopping the program. Im using a dev compiler.

thanks

Code: cpp
#include<iostream>
using namespace std;
int main()
{
    int counter;
    for(counter=1; counter < 101; counter++);
    cout << "is this working" <<endl;
cin.get();
return 0;
}