JME*_*JME 1 c++ stdout visual-studio-2010
我有一个简单的示例代码
#include <string>
#include <stdio.h>
#include <iostream>
int main ()
{
std::cout << "Connecting to hello world server…" << std::endl;
printf ("Connecting to hello world server...\n");
while(true)
{
}
}
Run Code Online (Sandbox Code Playgroud)
在控制台窗口中,第一行将椭圆打印为"a"字符,其上方有一个波浪号,第二行按预期打印.
有人可以解释为什么会这样吗?
第一行没有"..."一个字符"…"
更改:
std::cout << "Connecting to hello world server…" << std::endl;
Run Code Online (Sandbox Code Playgroud)
至
std::cout << "Connecting to hello world server..." << std::endl;
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
143 次 |
| 最近记录: |