原创 【第四章】C++ Primer plus 的編程練習題(選取部分)

/*********************************** 2017年9月30日15:06:09 Athor:xiyuan255 Course:C++ Contain:review4.cpp Reference:

原创 C的常用模板函數接口2 --字符串操作、排序等

/* 以下代碼是測試動態庫libxiyuan.so或靜態庫xiyuanlib.a的容器 操作的testVessel.c源代碼。 其中:(該版本加入容器屬性) 1.加入容器屬性,VAssemble_t類型的容器,可以接收任何

原创 【c語言基礎】關於指針和變量的思考

/**! 2018年1月30日14:18:00 Author: xiyuan255 Purpose: c語言基礎 */ /**(1) 函數類型強制轉換示例代碼***start***/ void SelectMainFr

原创 【第十四章】C++ Primer plus 的編程練習題

// winec.h -- class Wine definition #ifndef __WINEC_H__ #define __WINEC_H__ #include <string> #include <valarray> #incl

原创 一個快速排序的模板函數

/**! * 2018年1月29日10:28:50 * Author: xiyuan255 * 快速排序的模板代碼 */ #define __STATIC_INLINE static inline typedef

原创 一個多功能的打印函數

/* ------------------------------------------- * DateCode: 2018年1月23日10:11:17 * Athor: xiyuan255 * Version: V1

原创 【第四課】面向對象編程---構造函數

/************************************************** * Time:2016年11月15日11:38:27 * Purpose:構造函數 * Author:ZJY * Summar

原创 【第七課】面向對象編程---抽象類

/************************************************** * Time:2016年11月18日 20:34:45 * Purpose:抽象類 * Author:ZJY * Summar

原创 【第十三章】C++ Primer plus 的編程練習題

// classic.h -- Cd class for declaration #ifndef __CLASSIC_H__ #define __CLASSIC_H__ // base class class Cd // represe

原创 【第十二章】C++ Primer plus 的編程練習題

// cow.h -- class Cow definition #ifndef __COW_H__ #define __COW_H__ class Cow { private: char name[20]; char * hob

原创 【第十章】C++ Primer plus 的編程練習題

// bankaccount.h -- class BankAccount declaration #ifndef __BANKACCOUNT_H__ #define __BANKACCOUNT_H__ // class definit

原创 【第十七章】C++ Primer plus 的編程練習題

/*********************************** 2017年12月26日10:42:09 Athor:xiyuan255 Course:C++ Contain:pe17-1.cpp Reference:

原创 【第六課】面向對象編程---多態的基礎

/********************************************* * Time:2016年11月16日 21:27:11 * Purpose:多態的基礎_1 * Author:ZJY * Summary

原创 【第十八章】C++ Primer plus 的編程練習題

/*********************************** 2017年12月28日13:59:12 Athor:xiyuan255 Course:C++ Contain:pe18-1.cpp Reference:

原创 【第九章】C++ Primer plus 的編程練習題

#ifndef __GOLF_H__ #define __GOLF_H__ // golf.h -- for pe9-1.cpp const int Len = 40; struct golf { char fullname[Len