課程
/后端開發(fā)
/C++
/C++遠(yuǎn)征之封裝篇(上)
一直都這樣啊,怎么辦?
2018-08-12
源自:C++遠(yuǎn)征之封裝篇(上) 5-2
正在回答
截個(gè)圖
這是截圖
慕萊塢3155199
運(yùn)行效果
bad.h的 ? ? ? ? ? ? ? ? ? ? ? ? ? ??
#include "stdafx.h"
#include "bad.h"
#include<iostream>
using namespace std;
#include <string>
bad.cpp的
void bad::QH()
{
cout << "nice" << endl;
}
#pragma once
class bad
public:
void QH();
};
歲月長衣裳薄
qq_西廂墨客_0 提問者 回復(fù) 歲月長衣裳薄
歲月長衣裳薄 回復(fù) qq_西廂墨客_0 提問者
歲月長衣裳薄 回復(fù) 歲月長衣裳薄
舉報(bào)
封裝--面向?qū)ο蟮幕?,本教程力求幫助小伙伴們即學(xué)即會
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號
2018-08-12
截個(gè)圖
2018-08-12
這是截圖
2018-08-12
運(yùn)行效果
2018-08-12
bad.h的 ? ? ? ? ? ? ? ? ? ? ? ? ? ??
#include "stdafx.h"
#include "bad.h"
#include<iostream>
using namespace std;
#include <string>
bad.cpp的
void bad::QH()
{
cout << "nice" << endl;
}
#pragma once
#include<iostream>
#include <string>
using namespace std;
class bad
{
public:
void QH();
};