#include <iostream>
using namespace std;
int main(void)
{
cout<<"老師講課棒棒噠!"<<endl;
return 0;
}
using namespace std;
int main(void)
{
cout<<"老師講課棒棒噠!"<<endl;
return 0;
}
2017-05-14
#include <iostream>
using namespace std;
int main(void)
{
//定義常量count
const int count = 3;
const int *const p = &count;
//打印count次字符串Hello C++
for(int i = 0; i < count; i++)
{
cout << "Hello imooc" << endl;
}
return 0;
}
system(”pause“)
using namespace std;
int main(void)
{
//定義常量count
const int count = 3;
const int *const p = &count;
//打印count次字符串Hello C++
for(int i = 0; i < count; i++)
{
cout << "Hello imooc" << endl;
}
return 0;
}
system(”pause“)
l良心的課程??!不用錢!質(zhì)量也是棒棒的??!希望您能出一下關(guān)于C++進(jìn)階的視頻,比如鏈表操作、算法、數(shù)據(jù)結(jié)構(gòu)、游戲開發(fā)!要錢不要緊!重要您講得好!言簡(jiǎn)意賅!
網(wǎng)上說(shuō)要加#include<stdlib.h> 和system("pause");避免閃退。然而在VC++ 中不加這兩句,運(yùn)行程序,并不會(huì)閃退。。。。
int const = const int 兩者等價(jià)
int *const p 可以修改地址的值,但不可以再更改引用到其他地址
int const *p 可以更改到其他應(yīng)用的值,但不可以再修改當(dāng)前引用的值
int *const p 可以修改地址的值,但不可以再更改引用到其他地址
int const *p 可以更改到其他應(yīng)用的值,但不可以再修改當(dāng)前引用的值
2017-04-24