Error screenshot.
我正在测试一个程序来打印C++中的表情符号。我的编码环境是Dev C++。但是执行时,它会显示一个问号,而不是所需的表情符号。
任何有用的建议来解决我的问题,将不胜感激。
这是我的代码:
#include <iostream>
#include <conio.h>
#include <stdlib.h>
using namespace std;
int main(void)
{
system("cls");
int sml = 1, i, limit;
char ch = sml;
cout << "How many smiley face you want to print ? ";
cin >> limit;
for (i = 0; i < limit; i++)
{
cout << ch << ' ';
}
return 0;
}
最佳答案
关于c++ - 我的表情符号程序在C++中显示带有问号的框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62726760/