搜索
编程论坛
→
开发语言
→
C++论坛
→
『 C++教室 』
→ .h,和using namespace std
标题:
.h,和using namespace std
只看楼主
布头儿
等 级:
新手上路
帖 子:20
专家分:0
注 册:2007-6-15
楼主
问题点数:0 回复次数:3
.h,和using namespace std
这两个有什么区别啊,各有什么优点啊,
我在我的书上没有找到,请帮忙解释一下
搜索更多相关主题的帖子:
std
using
namespace
2007-06-22 10:16
HJin
等 级:
贵宾
威 望:
27
帖 子:401
专家分:0
注 册:2007-6-9
第
2
楼
得分:0
#include <iostream.h>
does not work for modern compliers, e.g., VS 2005. It may work for VS6, or older compilers.
The standard way is
#include <iostream>
using namespace std;
I am working on a system which has no Chinese input. Please don\'t blame me for typing English.
2007-06-22 10:19
布头儿
等 级:
新手上路
帖 子:20
专家分:0
注 册:2007-6-15
第
3
楼
得分:0
HJin Think you very much
2007-06-22 12:27
yuyunliuhen
等 级:
贵宾
威 望:
20
帖 子:1435
专家分:0
注 册:2005-12-12
第
4
楼
得分:0
only two different standard;
iostream.h is the old one;
#include <iostream>
using namespace std;
is the new one;
Go confidently in the directions of your dreams,live the life you have imagined!Just do it!
It is no use learning without thinking!
2007-06-22 12:58
4
1/1页
1
参与讨论请移步原网站贴子:
https://bbs.bccn.net/thread-149428-1-1.html
关于我们
|
广告合作
|
编程中国
|
清除Cookies
|
TOP
|
手机版
编程中国
版权所有,并保留所有权利。
Powered by
Discuz
, Processed in 0.021077 second(s), 7 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved