摘要: #include #include#include #include using namespace std;istream &f(istream &in){ string v; while (in >> v, !in.eof()) { if (in.... 阅读全文
posted @ 2015-11-02 04:06 齐庆 阅读(657) 评论(0) 推荐(0) 编辑
摘要: xml基础知识代码 Everyday Italian Giada De Laurentiis 2005 30.00 Harry Potter J K. Rowling 2005 29.99 Learning XML Erik T. Ray 2... 阅读全文
posted @ 2015-10-30 03:01 齐庆 阅读(272) 评论(0) 推荐(0) 编辑
摘要: 友元函数再造分为友元类和友元函数,关键字为friend。具体特性见代码实例#ifndef SALAS_DATE#define SALAS_DATE#include #include class Screen;class Window_mgr{public: using Scre... 阅读全文
posted @ 2015-10-29 03:03 齐庆 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 类的基础定义 -类的基本思想是数据抽象和封装,数据抽象依赖于接口和实现分离的编程技术。类的接口包括用户所能执行的操作;类的实现则包括的数据成员、负责接口实现体以及定义类所需的各种私有函数;主函数 int main() { Sales_date first("... 阅读全文
posted @ 2015-10-25 20:20 齐庆 阅读(217) 评论(0) 推荐(0) 编辑
摘要: #include#include #include #include #includeusing namespace std;typedef int arrT[10];//类型别名using arrT = int[10];//等价声明arrT* funlc(int i);//数组指针... 阅读全文
posted @ 2015-10-25 02:32 齐庆 阅读(319) 评论(0) 推荐(0) 编辑
摘要: (译者注:帕斯雀(Pastrami)是这一种肉的专有名称,熏牛肉的一种,一般取牛肩部的肉来制作。国内的批发商普遍称之为胡椒熏牛肉火腿。)曾经走在一个公共场所,比如机场的出入口通道或公园,突然一群狂徒冲你而来,想要说服你、或者威胁你、或者攻击你的无知。跟他们当中的任何一个人谈话,逻辑和... 阅读全文
posted @ 2015-10-21 21:08 齐庆 阅读(1316) 评论(0) 推荐(0) 编辑
摘要: 数据结构之线性表--单链表(自带首尾转换)SingleList.h 简单的头文件其中Status 我在后面没有用,只是用状态描述了一番#ifndef SINGLELIST#define SINGLELISTtypedef int ElemType;typedef int Statu... 阅读全文
posted @ 2015-10-21 12:18 齐庆 阅读(284) 评论(0) 推荐(0) 编辑
摘要: Sequence.h/* 线性表的动态分配顺序存储结构 */#define LIST_INIT_SIZE 10 /* 线性表存储空间的初始分配量 */#define LIST_INCREMENT 2 /* 线性表存储空间的分配增量 */typedef struct{ int ... 阅读全文
posted @ 2015-10-18 23:37 齐庆 阅读(229) 评论(0) 推荐(0) 编辑
摘要: makefile简介makefile文件主要包含了五部分内容,显示规则、隐式规则 、变量定义、文件指示和注释。 - 显示规则。 显示规则说明了如何生成一个或者多个目标文件。这是由makefile文件的创作者指出,包括要生成的文件、文件的依赖文件和生成的命令。 - 隐式规则。由于m... 阅读全文
posted @ 2015-10-17 23:01 齐庆 阅读(214) 评论(0) 推荐(0) 编辑
摘要: C语言百例之读写字符串字符串大小写转换#include#includeint main(int argc, char const *argv[]){ char ar; printf("please input some char \n"); do { // ... 阅读全文
posted @ 2015-10-17 22:15 齐庆 阅读(185) 评论(0) 推荐(0) 编辑