int main()
{
stringstream out;
ofstream outFile;
outFile.open("ascii.txt");
string con = "";
char symbol = 128;
for(int x = 128; x < 267; x++)
{
outFile<<x<<"= "<<symbol++<<endl;
cout<<x<<"= "<<symbol++<<endl;
}
outFile.close();
system("pause");
return 0;
}
Can anyone explain why the output in the command line window is different from the .txt file.
I am getting:
128 = ü// in command prompt
128 = €// in text file
129 = â//in command prompt
129 = ,//in text file
131 = ç//int command prompt
131 = †//in text file

New Topic/Question
Reply




MultiQuote








|