[ create a new paste ] login | about

Link: http://codepad.org/TRaL5Fdl    [ raw code | output | fork ]

C++, pasted on Jul 13:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <iostream>

int main()
{
	char charASCII = 0;

	while (0 <= charASCII && charASCII <= 127)
	{
		charASCII++;
		std::cout << charASCII << std::endl;
	}

	system("pause");
	return 0;
}


Output:
1
2
3
cc1plus: warnings being treated as errors
In function 'int main()':
Line 7: warning: comparison is always true due to limited range of data type


Create a new paste based on this one


Comments: