Re: [問題] help C++無法執行
我compile你寫的沒有問題...
我把美化版的程式碼放下面...
#include <iostream>
#include <stdio.h>
using std::cin;
using std::cout;
using std::endl;
int main()
{
int Integer1;
int Integer2;
int Sum;
cout << "Enter first integer: \n";
cin >> Integer1;
cout << "Enter second integer: \n";
cin >> Integer2;
Sum = Integer1 + Integer2;
cout<<"Sum is : "<< Sum << endl;
system ("PAUSE");
return 0;
}
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 61.59.121.131
※ 編輯: phylin 來自: 61.59.121.131 (09/28 22:24)
討論串 (同標題文章)
以下文章回應了本文 (最舊先):
完整討論串 (本文為第 2 之 6 篇):