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

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

提交不能同過

#include

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; } 不對(duì)嗎,為什么不能通過啊

正在回答

4 回答

好復(fù)雜的問題,以下代碼在我的環(huán)境中直接就通過了,

#include <iostream>

using namespace std;

int main(void)

{

? ? const int count = 3;

? ? const int *const p = &count;

for(int i = 0; i < *p; i++)

{

cout << "Hello imooc" << endl;

}?

return 0;

}

但是在網(wǎng)頁上提交時(shí),還得include一下才行。。。

#include <stdlib.h>


0 回復(fù) 有任何疑惑可以回復(fù)我~

#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; }?

cout是在iostream中定義的

0 回復(fù) 有任何疑惑可以回復(fù)我~

#include后面沒有頭文件

0 回復(fù) 有任何疑惑可以回復(fù)我~

你在試試,你代碼沒有問題

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消
C++遠(yuǎn)征之離港篇
  • 參與學(xué)習(xí)       122681    人
  • 解答問題       488    個(gè)

C++掃清通往面向?qū)ο蟮淖詈笠坏勒系K,將所有知識(shí)點(diǎn)融會(huì)貫通

進(jìn)入課程

提交不能同過

我要回答 關(guān)注問題
微信客服

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

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)