愛寓交友自動貼文軟體facebook貼版軟體facebook貼版軟體部落格流量自動點擊流量軟體

1.
#include<iostream>
using namespace std;
int sum(int );
int main(){
int n = 10*11/2;
cout << "總共執行" << sum(n) << "次" << endl;
return 0;}
int sum(int n){
static int total = 0, times = 0;//等於直接在main函式宣告
if( n == total )
return times;
else{
total += ++times;// times = times +1; total = total + times;
return sum(n);
}
}

2.
#include<iostream>
using namespace std;
class person{
private:
int weight, age;
double height;
public:
person(int w, double h, int age){
weight = ( w > 0 )? w : 0;
this->age = ( age > 0 )?age : 0;
height = ( h >= 1.0 )?h : 0.0;
}
void runTempo(){
cout << "速度為" << height*100/weight << endl;
}
void BMI(){
cout << "BMI = " << weight/height << endl;
}
};

int main(){
person people(50, 1.7, 20);
people.runTempo();
people.BMI();
return 0;}
3.
#include<iostream>
#include<cstdlib>
#include<ctime>
using namespace std;

int main(){
srand((unsigned)time(NULL));
int loto[7];
for(int index = 0 ; index < 7 ; ++ index ){
loto[index] = 1 + rand()%49;
for(int i = 0 ; i < index ; ++ i)
if( loto[i] == loto[index] ){
-- index;
i = index;//break;
}
}
return 0;}

參考資料 自己
本篇文章引用自此: http://tw.knowledge.yahoo.com/question/question?qid=1612060603395SEO關鍵字點擊軟體惡意點擊廣告軟體部落格流量自動點擊流量軟體網路創業廣告行銷軟體規劃
arrow
arrow
    全站熱搜

    胡明杰 發表在 痞客邦 留言(0) 人氣()