Thursday, April 16, 2009

4 16

C++
* http://wisdom.sakura.ne.jp/programming/cpp/index.html

main.chh

#include "stdafx.h"
#include
#include "def.h"
using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
HUMAN x;
cout<< "height(cm)=";
cin >> x.height;
cout << "weight(kg)=";
cin >> x.weight;
x.calBmi(); // メンバ関数の呼び出し
cout << "bmi=" << class="blsp-spelling-error" id="SPELLING_ERROR_12">bmi << "\n";
if (x.bmi>25.0) {
cout << "too fat" << endl;
} else if (x.bmi > 18.5) {
cout << "normal" << endl;
} else {
cout << "too slim" << endl;
}
return 0;
}

Def.h
struct HUMAN {
float height;
float weight;
float bmi;
void calBmi();
};

void HUMAN::calBmi() {
bmi = weight/(height*height)*10000.0;
}
**********************************************************************************************
SQL
SQLの教科書
http://wisdom.sakura.ne.jp/database/sql/index.html

簡単なsql
select * from masuda where country='中国' and address like '東京都%'
select * from masuda where age=19 or age=20
select * from masuda where age>=19 and age<=20
select * from masuda where length(name)=8
select * from masuda order by age;
select * from masuda order by age desc;
select avg(age) from masuda;
select max(age) from masuda;
select min(age) from masuda;
select count(name) from masuda;
select * from masuda group by country;
update masuda set age=25 where name='アミリト';

返信

2009年4月15日

Mistakenly entered in the powerpoint class in the section B and then took my second class of ccna
.
CCNA:
Host ,Mask ,Broadcast, Router ,Switch ,2進数 ,Class A ~D