#25010: [請益]a002. 簡易加法


2016105email (C++C)

學校 : 國立竹南高級中學
編號 : 151876
來源 : [220.141.108.206]
最後登入時間 :
2021-04-18 19:48:13
a020. 身分證檢驗 | From: [1.160.177.4] | 發表日期 : 2021-04-12 21:22

各位高手大大門 您好:

請問程式碼有錯誤嗎??

謝謝

 

#include <stdafx.h>

#include <iostream>

 

using namespace std;

 

int main(array<System::String ^> ^args)

{

    int  a ;

int  b ;

    int c ;

cout << "a= ";

cin >> a  ;

cout << "b= ";

cin >> b  ;

c=a+b ;

cout << "c= "<< a+b;

cout << endl ;

 

system("pause");

    return 0;

}

 
#25011: Re:[請益]a002. 簡易加法


asnewchien@gmail.com (david)

學校 : 不指定學校
編號 : 68108
來源 : [1.168.27.116]
最後登入時間 :
2024-03-31 17:58:15
a020. 身分證檢驗 | From: [61.223.42.129] | 發表日期 : 2021-04-12 21:33

各位高手大大門 您好:

請問程式碼有錯誤嗎??

謝謝

 

#include

#include

 

using namespace std;

 

int main(array ^args)

{

    int  a ;

int  b ;

    int c ;

cout << "a= ";    < ------  X

cin >> a  ;

cout << "b= ";   < ------  X

cin >> b  ;

c=a+b ;

cout << "c= "   < ------  X

<< a+b;

cout << endl ;

 

system("pause");    < ------  X

    return 0;

}

打叉的地方

 
ZeroJudge Forum