Hey guys, (I'm french so I'm sorry for my bad english)
I'm trying to do a loop that will display the characters for the ASCII codes 0 through 127. My problem is not with the loop, I understand how it works. I just need to know how to convert a number (my variable being incremented) into its ASCII character to display it on the screen.
I found it easy to do character -> number but now I need to display the characters and I need to do number -> character.
Just convert the number to a character, either by storing it in a char variable or by using a cast, e.g.: for (int i=0;i<=127;i++)cout << static_cast<char>(i);