Re: [問題] help C++無法執行
看板NTUEE107HW作者Parhelia (Macroprocessing)時間22年前 (2003/09/28 22:27)推噓6(6推 0噓 0→)留言6則, 4人參與討論串4/6 (看更多)
※ 引述《smarttb1 (呵呵)》之銘言:
: ※ 引述《phylin (神之領域)》之銘言:
: : 我compile你寫的沒有問題...
: : 我把美化版的程式碼放下面...
: : #include <iostream>
: : #include <stdio.h>
: ^^^^^^^^^^^^^^^^^^^^這個不需要吧
加這個VC++好像看不懂.....
用#include <cstdio>吧?
: : 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.216.13.75
推
推140.112.239.155 09/28, , 1F
推140.112.239.155 09/28, 1F
推
推140.112.239.155 09/28, , 2F
推140.112.239.155 09/28, 2F
推
推 61.216.13.75 09/28, , 3F
推 61.216.13.75 09/28, 3F
推
推140.112.239.155 09/28, , 4F
推140.112.239.155 09/28, 4F
推
推 140.112.18.71 09/28, , 5F
推 140.112.18.71 09/28, 5F
推
推 61.59.121.131 09/28, , 6F
推 61.59.121.131 09/28, 6F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 4 之 6 篇):