第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
//const
#include <iostream>
using namespace std;
int main(void)
{
//定義常量count
const int count = 3;
const int *p = &count;
//打印count次字符串Hello C++
for(int i = 0; i <*p; i++)
{
cout << "Hello imooc" << endl;
}
return 0;
}
//const
#include <iostream>
using namespace std;
int main(void)
{
//定義常量count
int count = 3;
const int *p =&count;
//打印count次字符串Hello C++
for (int i = 0; i <count ; i++)
{
cout << "Hello imooc" << endl;
}
return 0;
}
windows下面兒好磕磣!。。。。
#include <iostream>
using namespace std;
int main(void)
{
int x = 3;
//定義引用,y是x的引用
int &y=x;
//打印x和y的值
cout<<x<<","<<y<<endl;
//修改y的值
y = 20;
//再次打印x和y的值
cout<<x<<","<<y<<endl;
return 0;
}
老師講的非常nice啊,頂頂頂
我表示 直接提交都可以直接過。。。。
#include <iostream>
using namespace std;
int main(void)

{

//在堆中申請100個char類型的內(nèi)存

char *str = new char[100];

//拷貝Hello C++字符串到分配的堆中的內(nèi)存中

strcpy(str, "Hello imooc");
for(int i=0;i<100;i++){
cout<<str[i];
}
delete []str;
str=NULL:
return 0;
int *p = new int[20];
delete p;
p=NULL:
老師講的實在是生動形象,感覺C++好像變得沒那么難了,,,
int const a=3;

//const int const *p=&a;
//const int *p=&a;
//int const *p=&a;
這三種情況都可以
int const a=3;
const int const *p=&a;
A選項的正確形式
不得不說:好
#include <iostream>
using namespace std;
int main(void)
{
int x = 3;
//定義引用,y是x的引用
int &y=x;
//打印x和y的值
cout<<x<<endl;
cout<<y<<endl;
//修改y的值
y = 5;
//再次打印x和y的值
cout<<x<<endl;
cout<<y<<endl;
return 0;
}
老師講的很好
用權限來解釋很清楚
課程須知
本課程是C++初級課程 熟練掌握C語言開發(fā)語言基礎語法
老師告訴你能學到什么?
1、C++語言引用的魅力 2、C++語言const的用法 3、C++語言函數(shù)默認值及函數(shù)重載 4、C++語言內(nèi)存管理

微信掃碼,參與3人拼團

微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網(wǎng)微信公眾號

友情提示:

您好,此課程屬于遷移課程,您已購買該課程,無需重復購買,感謝您對慕課網(wǎng)的支持!

本次提問將花費2個積分

你的積分不足,無法發(fā)表

為什么扣積分?

本次提問將花費2個積分

繼續(xù)發(fā)表請點擊 "確定"

為什么扣積分?

舉報

0/150
提交
取消