2014年11月28日 星期五

2014年11月26日 星期三

P1選CPP

範例試題檔 four.cpp /*  four四個運算  輸入一串字: a op b a,b是整數、   -1000<a,b<1000 op 是右列四個運算子  +  -  *  ^ 其中 ^ 是a加b後的2次方 (a+b)乘上(a+b)  */   #include <iostream> using namespace std; int main() {     int a , b;     char op;   // 一個字元 A~Z,a~z,0~9,符號,中文不行   while( cin >> a)   {     cin  >>...