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; }
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