Console Application doesn't do anything

Hello, I recently bought the C++ for dummies 2009 edition, and it came with Code::blocks to write the code. However, whenever I make a program and try to run it, it'll first say "it appears this project has not been built yet. Would you like to build it now?" even though I have built it several times... and then, I have to try to run it again, and click "no" to actually have it open the console, where it displays... nothing. for example...

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <iostream>
#include <cstdio>
#include <cstdlib>
using namespace std;

int main(int nNumberofArgs, char* pszArgs[])
{
    int nLoopCount;
    cout << "Enter loop count: ";
    cin >> nLoopCount;

    for (int i = 1; i <= nLoopCount; i++)
    {
        cout << "We've finished " << i << " loops" << endl;
    }
    system("PAUSE");
    return 0;
    
}


When I run the program, all it says is
"Process returned 2130567168 (0x7EFDE000) execution time: 0.001 s
press any key to continue"

I've tried several different programs, and it just does the same thing.

Can anyone help me out? I'm trying to learn how to do this before I start school for computer science in September but this is hampering my progress.

Thanks in advance!

Last edited on
lines 15-16 should not be inside the loop -check the example thoroughly
Last edited on
woops, stupid mistake. Nevertheless, the problem remains the same after fixing...
Show us your updated code.
edited
Topic archived. No new replies allowed.