C++一天一个程序(二)

#include
#define NUMBER 4
int main()
{
std::cout << NUMBER << std::endl;
}
或者
#include
using namespaces std;
int main()
{
cout << 4<< endl;
}
注意:
第一段中NUMBER已经被定义,不可以在程序中再次赋值。建议不要用#define定义全局变量。
std::,::定义域的应用

发布了3 篇原创文章 · 获赞 0 · 访问量 60

猜你喜欢

转载自blog.csdn.net/weixin_41210618/article/details/104668031
今日推荐