function qualityPoints_ how to pause the output display from disappearing fast.

well I am new to c++ and don't know if I am doing the right thing here.
My problem is I want the output display to pause so I can view the output and see what is happening. Below is what I have done so far can anyone help me with this please.

#include <iostream> // iostream header file
using namespace std; // using namesapce standard directive

int main() // function main begins program execution here
{
int average;
int qualityPoints(int average);

if ( average >=90 && average <=100 )
return 4;
else if ( average >=80 && average <90 )
return 3;
else if ( average >=70 && average < 80 )
return 2;
else if ( average >=60 && average <70)
return 1;
else
return 0;

system("pause");// pause the output display from disappearing
return o;
}
Last edited on
Try looking at this and see if it helps:
http://www.cplusplus.com/forum/articles/7312/
It looks like an o instead of an 0 in the last line.
Topic archived. No new replies allowed.