为什么用c++代码编写的普通URI可以工作?

Why does a plain URI written in c++ code work?

本文关键字:URI 工作 c++ 代码 为什么      更新时间:2023-10-16

我把URI放在代码中,编译器不会抛出任何错误,为什么(请解释)

#include <iostream>
using namespace std;
int main()
{
    http://stackoverflow.com/
    cout << "Hello World!" << endl;
    return 0;
}

标识符后面跟:在c++中变成标签。任何跟在//后面的都是注释。