我刚从py跑来学C++的时候,曾经因为py写多了,写了个十分睿智的代码
#include<iostream> using namespace std; int main():{ cout<<"hello world"; }
然后在电脑上搞了一个多小时,C++都卸载重装了好几遍,结果还是没发现 int main() 不应该加 :
下节上课后才知道C++不用加":"
我痛恨冒号