Can you help me please with this.
What (char)i exactly do?
I understand it converts integer numbers to equivalent ASCII, but I don't understand how this works. I don't know what the brackets and char inside means.
Can you point me to some description, manual etc?
thanks :)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#include "stdafx.h"
#include <iostream>
int main()
{
for (int i = 97; i < 123; i++)
{
std::cout << (char)i << ", " << i << std::endl;
}
system("pause");
return 0;
}