| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 590 人关注过本帖
标题:提示遇到问题需要关闭是什么意思啊
只看楼主 加入收藏
crazyc
Rank: 1
等 级:新手上路
帖 子:28
专家分:0
注 册:2006-8-5
收藏
 问题点数:0 回复次数:2 
提示遇到问题需要关闭是什么意思啊

#pragma warning(disable:4876)
#include<iostream>
#include<string>
#include<map>
using namespace std;
typedef map<int ,string , less<int> > INT2STRING;
void main()
{
INT2STRING theMap;
INT2STRING::iterator theIterator;
string theString="";
int index;
theMap.insert(INT2STRING::value_type(0,"zero"));
theMap.insert(INT2STRING::value_type(1,"one"));
theMap.insert(INT2STRING::value_type(2,"two"));
theMap.insert(INT2STRING::value_type(3,"three"));
theMap.insert(INT2STRING::value_type(4,"four"));
theMap.insert(INT2STRING::value_type(5,"five"));
theMap.insert(INT2STRING::value_type(6,"six"));
theMap.insert(INT2STRING::value_type(7,"seven"));
theMap.insert(INT2STRING::value_type(8,"eight"));
theMap.insert(INT2STRING::value_type(9,"nine"));
for( ; ;)
{
cout<<"Enter \"q\" to quit,or enter a Number:";
cin>>theString;
if(theString=="q")
break;
for(index=0;index<theString.length ();index++)
{
theIterator!=theMap.find(theString[index]-'0');
if(theIterator!=theMap.end())
cout<<(*theIterator).second<<" ";
else
cout<<"[err]";

}
cout<<endl;

}
}

提示遇到问题需要关闭是什么意思啊

搜索更多相关主题的帖子: 提示 
2007-03-18 08:13
Arcticanimal
Rank: 3Rank: 3
等 级:论坛游民
威 望:7
帖 子:341
专家分:20
注 册:2007-3-17
收藏
得分:0 
程序崩溃了

try new catch
2007-03-24 20:04
yuyunliuhen
Rank: 6Rank: 6
等 级:贵宾
威 望:20
帖 子:1435
专家分:0
注 册:2005-12-12
收藏
得分:0 
运行的时候进程都被死锁了?

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-03-24 20:30
快速回复:提示遇到问题需要关闭是什么意思啊
数据加载中...
 
   



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

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