| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 575 人关注过本帖
标题:.h,和using namespace std
只看楼主 加入收藏
布头儿
Rank: 1
等 级:新手上路
帖 子:20
专家分:0
注 册:2007-6-15
收藏
 问题点数:0 回复次数:3 
.h,和using namespace std

这两个有什么区别啊,各有什么优点啊,
我在我的书上没有找到,请帮忙解释一下

搜索更多相关主题的帖子: std using namespace 
2007-06-22 10:16
HJin
Rank: 6Rank: 6
等 级:贵宾
威 望:27
帖 子:401
专家分:0
注 册:2007-6-9
收藏
得分: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
布头儿
Rank: 1
等 级:新手上路
帖 子:20
专家分:0
注 册:2007-6-15
收藏
得分:0 

HJin Think you very much

2007-06-22 12:27
yuyunliuhen
Rank: 6Rank: 6
等 级:贵宾
威 望:20
帖 子:1435
专家分:0
注 册:2005-12-12
收藏
得分: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
快速回复:.h,和using namespace std
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.014891 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved