一:std::的使用
使用方法 1:
#include<iostream>
int main()
{
std::cout<<"hello world";
return 0;
}
2:
#include<iostream>
using namespace std;
int main()
{
cout<<"hello world";
return 0;
}.
二:虚拟函数声明后不要忘了定义。否则会出现“无法解析的外部符号……”错误。
一:std::的使用
使用方法 1:
#include<iostream>
int main()
{
std::cout<<"hello world";
return 0;
}
2:
#include<iostream>
using namespace std;
int main()
{
cout<<"hello world";
return 0;
}.
二:虚拟函数声明后不要忘了定义。否则会出现“无法解析的外部符号……”错误。