看板 NTUEE107HW 關於我們 聯絡資訊
※ 引述《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
smarttb1:對啊C++已經改了 推140.112.239.155 09/28
smarttb1:不過加這個浪費空間吧 推140.112.239.155 09/28
Parhelia:反正才幾位元 XD 推 61.216.13.75 09/28
smarttb1:啊我看成是cstdlib了XDXD 推140.112.239.155 09/28
timrau:可是不是應該#include <cstdlib>嗎? 推 140.112.18.71 09/28
phylin:我錯了...持續亂入中... 推 61.59.121.131 09/28