原创 Public 原來可以這樣寫

#include <iostream> #include <iomanip> using namespace std; class date { int year,month,day; public:void set(int y

原创 結構控制語句與函數的調用

C++的結構控制語句和函數調用, 與 PHP 沒有多大的差別,    

原创 function should return a value; 'void' return type assumed

#include<iostream> using namespace std; void sphere(); int main() { sphere(); //return 0; } void sphere() { double r