本月博客排行
-
第1名
wy_19921005 -
第2名
mft8899 -
第3名
java-007 - Anmin
- benladeng5225
年度博客排行
-
第1名
龙儿筝 -
第2名
宏天软件 -
第3名
benladeng5225 - wy_19921005
- vipbooks
- kaizi1992
- 青否云后端云
- e_e
- tanling8334
- sam123456gz
- arpenker
- zysnba
- fantaxy025025
- xiangjie88
- wallimn
- lemonhandsome
- jh108020
- ganxueyun
- Xeden
- xyuma
- zhanjia
- wangchen.ily
- johnsmith9th
- zxq_2017
- forestqqqq
- jbosscn
- daizj
- ajinn
- xpenxpen
- 喧嚣求静
- kingwell.leng
- lchb139128
- kristy_yy
- jveqi
- javashop
- lzyfn123
- sunj
- yeluowuhen
- lerf
- silverend
- chenqisdfx
- xiaoxinye
- flashsing123
- bosschen
- lyndon.lin
- zhangjijun
- sunnylocus
- lyj86
- paulwong
- sgqt
最新文章列表
C++基础知识
第一天 C++基础班 ************************************=============================================
1.封装,继承,多态。
2.作用域运算符(::)
:: 前面不写东 ...
C++自学1-通过Hello World来初步认识C++
剖析如下:
// my first program in C++
这是注释行
# include < iostream>
以#标志开始的句子是预处理器的指示语句。它们不是可执行代码,只是对编译器作出指示。在本例中这个句子# include < iostream> 告诉编译器的预处理器将输入输出流的标准头文件(iostream)包括在本程序中。这个头文件 ...
C++基础:helloworld程序详解
概述:一旦你掌握了C++的基本知识,使用C++编程将会是一件非常简单的事情。当你开始学习C++编程时,你会碰到教你编程的很多基本项目,这其中“Hello World!”程序是最为大家所知的。
如何实现C++的第一个程序,“Hello World!”。有以下步骤:
1.首先确保你有一个使用起来得心应手的C++编译器或者编程环境(比如微软的Visual c++ )
2. ...
const对象与const成员函数
const对象只能调用const成员函数:
#include<iostream>
using namespace std;
class A
{
public:
void fun()const
{
cout<<"const 成员函数!"<<endl;
}
void fun()
{
cout<<& ...
const对象与const成员函数
const对象只能调用const成员函数:
#include<iostream>
using namespace std;
class A
{
public:
void fun()const
{
cout<<"const 成员函数!"<<endl;
}
void fun()
{
cout<<& ...