line of strings

Hi,
I'd like to ask about this program, it seems to work in windows 7 but doesn't work on my windows 8..

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
33

#include <iostream>
#include <cstring>

using namespace std;

char phrase[1000];
char ltr;


int main()
{
	cout << "Enter line of strings: ";
	cin >> phrase;

	cout << "Given line of strings: " << phrase;
	cout << "\nChange strings: ";
	for (int i = 0; i < strlen(phrase); i++){
		if (islower(phrase[i])){
			ltr = toupper(phrase[i]);
			cout << ltr;
		}
		else if (isupper(phrase[i])){
			ltr = tolower(phrase[i]);
			cout << ltr;
		}
	}
	
//	system("pause>0");
	
	return 0;
}


I tried to disable system("pause>0") because that runs the program, but on the output there is a message below that says, "process exited with return value 0. Press any key to continue..."

how will i be able to run this without this message showing up on windows 8? Thanks...
Topic archived. No new replies allowed.