CPP学习笔记
cm2004
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
类的申明,以及成员函数的两种表达方式~
//类的声明形式class 类名称{public: 共有成员(外部接口)private: 私有成员protected: 保护型成员};成员函数的两种表达式NO1class Clock{public: void settime(int hour,int min,int sec) { int Newhour,Newmin,Newsec; Newhour=hour; Newmin=min;原创 2006-03-29 15:21:00 · 1074 阅读 · 0 评论 -
for循环次数
//循环4次int main(){ int x(0),y(0); for(;(y!=123)&&(x cout return 0;}//循环0次int main(){ int x(0),y(123); for(;(y!=123)&&(x cout return 0;}//循环1次int main(){ int x(0),y(0); for(;(y!=123)&&(x y=12原创 2006-03-31 07:53:00 · 1903 阅读 · 1 评论 -
学习初期写的一些代码,请勿见笑
#include "stdafx.h"//#include #include //#include"stdlib.h"using namespace std; ////hello wold//int _tmain(int argc, _TCHAR* argv[])//{//char *x="hello coolc";//cout////MessageBox(0, L"coolc",L原创 2006-03-29 08:39:00 · 984 阅读 · 0 评论 -
华为软件编程规范和范例
[ 华为软件编程规范和范例 ] 〔一〕=====[排版] ]=======〔二〕======[注释]=======. 〔三〕=====[标识符命名]=======. 〔四〕=====[可读性]======. 〔五〕=====[变量、结构]=====. 〔六〕=====[函数、过程]======. 〔七〕=====[可测性]=====. 〔八〕=====[程序效转载 2006-04-23 21:48:00 · 1561 阅读 · 0 评论 -
C/C++头文件一览
C/C++头文件一览C、传统 C++#include //设定插入点#include //字符处理#include //定义错误码#include //浮点数处理#include //文件输入/输出#include //参数化输入/输出#include //数据流输入/输出#include //定义各种数据类型最值常量#i转载 2006-04-17 17:59:00 · 935 阅读 · 0 评论 -
static用法小结
static关键字是C, C++中都存在的关键字, 它主要有三种使用方式, 其中前两种只指在C语言中使用, 第三种在C++中使用(C,C++中具体细微操作不尽相同, 本文以C++为准).(1)局部静态变量(2)外部静态变量/函数(3)静态数据成员/成员函数下面就这三种使用方式及注意事项分别说明一、局部静态变量在C/C++中, 局部变量按照存储形式可分为三种auto, static, reg转载 2006-04-16 23:16:00 · 957 阅读 · 0 评论
分享