摘要: // map.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include <iostream>#include <map>using namespace std;typedef pair<int, int> mine;int _tmain(int argc, 阅读全文
posted @ 2017-08-28 19:21 倾耳听 阅读(152) 评论(0) 推荐(0) 编辑
摘要: atoi()函数 int atoi(const char *str ); 功能:把字符串转换成整型数。 str:要进行转换的字符串 返回值:每个函数返回 int 值,此值由将输入字符作为数字解析而生成。 如果该输入无法转换为该类型的值,则atoi的返回值为 0。 说明:当第一个字符不能识别为数字时, 阅读全文
posted @ 2017-08-28 15:52 倾耳听 阅读(1053) 评论(0) 推荐(0) 编辑
摘要: 在TinyXML中,根据XML的各种元素来定义了一些类: TiXmlBase:整个TinyXML模型的基类。 TiXmlAttribute:对应于XML中的元素的属性。 TiXmlNode:对应于DOM结构中的节点。 TiXmlComment:对应于XML中的注释 TiXmlDeclaration: 阅读全文
posted @ 2017-08-28 11:55 倾耳听 阅读(482) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h" 应写在文件的最前面,因为它之前的代码编译器会略过。stdafx的英文全称为:Standard Application Framework Extensions(标准应用程序框架的扩展) stdafx.h是MFC的编译向导自动生成的,对于常见的编译器来说,也就是 阅读全文
posted @ 2017-08-28 09:43 倾耳听 阅读(623) 评论(0) 推荐(0) 编辑