Firstly, i made the following program that's supposed to convert an int to a char and back to an int. Why does it output a negative number?
And secondly, why is it, on windows XP (not sure about vista) that the following program forces the computer to make a beeping sound?Code:#include <iostream> using namespace std; int main() { cout<<(int)((char)177); cin.get(); }
ThanksCode:#include <iostream> using namespace std; int main() { cout<<(char)7; cin.get(); }