摘要: 头文件:itoa --功能:将任意类型的数字转换为字符串。在中与之有相反功能的函数是atoi。atoi----功 能: 将字符串转换成整型数;atoi()会扫描参数nptr字符串,跳过前面的空格字符,直到遇上数字或正负号才开始做转换,而再遇到非数字或字符串时('\0')才结束转化,并将结果返回(返回... 阅读全文
posted @ 2015-04-07 21:34 lazypark 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 头文件:itoa --功能:将任意类型的数字转换为字符串。在中与之有相反功能的函数是atoi。atoi----功 能: 将字符串转换成整型数;atoi()会扫描参数nptr字符串,跳过前面的空格字符,直到遇上数字或正负号才开始做转换,而再遇到非数字或字符串时('\0')才结束转化,并将结果返回(返回... 阅读全文
posted @ 2015-04-07 21:34 lazypark 阅读(709) 评论(0) 推荐(0) 编辑
摘要: C++代码#include#include#include#includeusingnamespacestd;constintMAXN=100;constintINF=0x7FFFFFFF;structedge{intto,weight;};vectoradjmap[MAXN];//邻接表booli... 阅读全文
posted @ 2015-04-07 21:27 lazypark 阅读(155) 评论(0) 推荐(0) 编辑
摘要: C++代码#include#include#include#includeusingnamespacestd;constintMAXN=100;constintINF=0x7FFFFFFF;structedge{intto,weight;};vectoradjmap[MAXN];//邻接表booli... 阅读全文
posted @ 2015-04-07 21:27 lazypark 阅读(112) 评论(0) 推荐(0) 编辑