Help pausing problem

I am having problems pausing the following program

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
  #include <iostream>
using namespace std; 
void func1(); 
void func2(); 
int main() 
{ 
int num;

cout << "Enter 1 or 2: "; 
cin >> num; 
cout << endl;

cout << "Take ";

if (num == 1) 
func1(); 
else if (num == 2) 
func2(); 
else 
cout << "Invalid input. You must enter a 1 or 2" << endl; 
return 0; 
}

void func1() 
{ 
cout << "Programming I." <<endl;
}

void func2() 
{ 
cout << "Programming II." <<endl;
}
See the following sticky thread:
http://www.cplusplus.com/forum/beginner/1988/
Topic archived. No new replies allowed.