看板 Programming 關於我們 聯絡資訊
#include<iostream> #include<cmath> using namespace std; void is_square(int num); int main() { int num; cout << "請輸入一個數字"; cin >> num; cout << num << " is "; is_square(num); system("PAUSE"); return 0; } void is_square(int num) { int m; m=sqrt(num); if(m * m == num) cout<<"是平方數"<<endl; else cout<<"不是平方數"<<endl; } 請問我這樣寫 語法上哪裡有錯呢 謝謝 -- ┌─────KKCITY─────┐  找歌最方便 KKBOX 歌詞搜尋!! bbs.kkcity.com.tw \^_^ / http://www.kkbox.com.tw └──From:218.169.118.107 ──┘   唱片公司授權,音樂盡情下載 --