| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 402 人关注过本帖
标题:关于stirng 的错误
只看楼主 加入收藏
maguic
Rank: 1
等 级:新手上路
帖 子:26
专家分:0
注 册:2007-6-3
收藏
 问题点数:0 回复次数:3 
关于stirng 的错误
#include <string>



string answer("nu");//这里有什么错误?
搜索更多相关主题的帖子: stirng 
2007-11-06 16:55
maguic
Rank: 1
等 级:新手上路
帖 子:26
专家分:0
注 册:2007-6-3
收藏
得分:0 
#include <iostream.h>
#include <stdio.h>
#include <string>
#include <stdlib.h>
struct storage
{
int upper;
int lower;
storage *next;
};
struct request
{
int count;
request *right;
storage *next;
};
storage *base;
storage *pnext;
storage *pchange;
/*string analysis(int count)
{
return "YES";
}*/
void halls()
{
int count,request;
cin>>count;
cout<<endl;
string answer("nu");
for(int i=0;i<count;i++)
{
cin>>request;
// answer =analysis(request);
cout<<answer;
}
}
void main()
{
halls();
}

未来的C++高手!哈哈哈
2007-11-06 16:56
zhouxiang
Rank: 1
等 级:新手上路
帖 子:22
专家分:0
注 册:2007-10-16
收藏
得分:0 

头文件要有.h或者用
#include<cstring>
using namespace std;

2007-11-06 19:33
gaoamining
Rank: 1
等 级:新手上路
帖 子:38
专家分:0
注 册:2007-10-17
收藏
得分:0 
头文件要有.h或者用
#include<string>
using namespace std;


2007-11-07 12:10
快速回复:关于stirng 的错误
数据加载中...
 
   



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

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