Eukleides project

from http://d.hatena.ne.jp/u5_h/

2006-06-01から1ヶ月間の記事一覧

線形探索リスト(動作可、関数の参考程度に)

番兵を用いた整列リストに昇順のデータを入力する。 /*list (LINIER SEARCH) */ #include struct cell{ int data; struct cell *next; };struct cell *header; struct cell *sentinel;/*線形探索関数*/ void lin_serch(int x) { sentinel->data=x;/*targetの…

FIFOリスト待ち行列(動作わざと不可、関数の参考程度に)

/*list queue(FIFO) buffer*/ #include struct cell{ double data; struct cell *next; };struct cell *qhead; struct cell *qtail; /*待ち行列end関数*/ void end(void) { qhead ='\0'; exit(1); } /*待ち行列enq関数*/ void enq(double x) { struct cell *…

LIFOリスト(動作わざと不可、関数の参考程度に)

/*list stack(LIFO) buffer*/ #include struct cell{ double data; struct cell *next; };struct cell *stack='\0'; /*リストend関数*/ void end(void) { stack ='\0'; exit(1); } /*リストpush関数*/ void push(double x) { struct cell *p; p=(struct cell…

プログラムを書くぞ宣言

基本言語:C スクリプト言語:perl オブジェクト指向言語:small talk をメインにやってみたい 特に ・ネットワークプログラミング ・データ構造(字句、構文解析、ハッシュを含む) ・低レベル演算 ・字句、構文解析 をメインに取り扱い ネットワーク関係…

UDPportscan BSD仕様

#include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(void) { struct sockaddr_in addr; struct icmp *icmp; struct ip *ip; struct ip *ip2; struct timeval t; str…

ヘッダーとパケット

TCP/IPの通信の基本を覚える上で大事な5つのプロトコルを簡略して紹介します。 ******************************************************************************** Ethernet データリンク間の物理的な通信で機械固有のMACアドレスを使用する。 ***********…

早速(Networkprogramiing関連)

朝からいろんなツールを探しました. 主にアタッカー用のツールばかりDL. コード読み読み・・・。 今回は自作の超簡単なTCPローカルテスト用コード クライアント側 #include #include #include #include #include #include #include int main(void) { struct s…