08 2017 档案
摘要:继承了父类,就一定要调用父类的构造函数 构造函数的执行顺序和析构函数的执行顺序刚好完全相反#include "stdafx.h"#include <iostream>#include <time.h>using namespace std;class B1{public: B1(int i) { c
阅读全文
摘要:// map.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include <iostream>#include <map>using namespace std;typedef pair<string, int> mine;struct MyStruct{ i
阅读全文
摘要:// map.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include <iostream>#include <map>using namespace std;typedef pair<int, int> mine;int _tmain(int argc,
阅读全文
摘要:atoi()函数 int atoi(const char *str ); 功能:把字符串转换成整型数。 str:要进行转换的字符串 返回值:每个函数返回 int 值,此值由将输入字符作为数字解析而生成。 如果该输入无法转换为该类型的值,则atoi的返回值为 0。 说明:当第一个字符不能识别为数字时,
阅读全文
摘要:在TinyXML中,根据XML的各种元素来定义了一些类: TiXmlBase:整个TinyXML模型的基类。 TiXmlAttribute:对应于XML中的元素的属性。 TiXmlNode:对应于DOM结构中的节点。 TiXmlComment:对应于XML中的注释 TiXmlDeclaration:
阅读全文
摘要:#include "stdafx.h" 应写在文件的最前面,因为它之前的代码编译器会略过。stdafx的英文全称为:Standard Application Framework Extensions(标准应用程序框架的扩展) stdafx.h是MFC的编译向导自动生成的,对于常见的编译器来说,也就是
阅读全文
摘要:1、用const修饰函数的参数const只能修饰输入参数,不能修饰输出参数如果输入参数采用“指针传递”,那么加const修饰可以防止意外地改动该指针,起到保护作用。2、用const修饰函数的返回值函数返回值(即指针)的内容不能被修改,该返回值只能被赋给加const修饰的同类型指针。例如函数const
阅读全文
摘要:一、non-Unicode character set is deprecated 根据提示网址,下载vc_mbcsmfc.ext插件
阅读全文

浙公网安备 33010602011771号