亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

怎么存儲下面的程序,用c++編程。

怎么存儲下面的程序,用c++編程。

C
慕碼人2483693 2022-07-08 18:07:42
#ifndef _ _HELLO_H_ _#define _ _HELLO_H_ _void Hello(void);#endif#include<iostream>using namespace std;#include"hello.h"void Hello(void){cout<<"Hello,world!"<<end;}#include<stdlib.h>#include"hello.h"int main(){Hello();system("PAUSE");return 0;}
查看完整描述

3 回答

?
浮云間

TA貢獻1829條經驗 獲得超4個贊

//建立文件 hello.h
#ifndef _ _HELLO_H_ _
#define _ _HELLO_H_ _
void Hello(void);
#endif

//建立文件 hello.cpp

#include<iostream>
using namespace std;
#include"hello.h"
void Hello(void)

{
cout<<"Hello,world!"<<end;
}

//建立文件 main.cpp
#include<stdlib.h>
#include"hello.h"
int main()
{
Hello();
system("PAUSE");
return 0;
}


查看完整回答
反對 回復 2022-07-11
?
交互式愛情

TA貢獻1712條經驗 獲得超3個贊

#include <stdio.h>
#include <stdlib.h>
int main(int argc, char *argv[])
{
printf("Hello World\n");
return 0;
}

查看完整回答
反對 回復 2022-07-11
?
喵喔喔

TA貢獻1735條經驗 獲得超5個贊

#ifndef _ _HELLO_H_ _
#define _ _HELLO_H_ _
void Hello(void);
#endif
//這些 放在一個頭文件里 名字改為hello.h
//********************************************************************************************
#include<iostream>
using namespace std;
#include"hello.h"
void Hello(void)

{
cout<<"Hello,world!"<<end;
}

//這些放在一個cpp文件里 名字改為hello.cpp

//**************************************************************************************

#include<stdlib.h>
#include"hello.h"
int main()
{
Hello();
system("PAUSE");
return 0;
}

//這些放在一個cpp文件里 名字任意


查看完整回答
反對 回復 2022-07-11
  • 3 回答
  • 0 關注
  • 145 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號