ClangStudy/README.md
2022-04-22 20:22:28 +09:00

39 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# C言語学習
### 構造体とポインタ
構造体とポインタについての学習
2022/04/09
#### 処理内容
1. 生徒配列を定義する
2. 生徒の各科目の点数を初期化する
3. ランダムに点数を生成する
4. 科目ごとの平均点、最大点、最低点を標準出力する
### クイックソート
数値配列のクイックソートを行う
2022/04/22
#### 処理内容
1. 配列と、左端(0)、右端(配列の長さ)を渡す
2. 左端が右端以上であるならピボットを取得する
3. ピボット左端のデータより小さければiをすすめる
4. ピボットのデータより大きければjを戻す
5. 中央値まで求めたらそのデータを比較し、入れ替える
6. i が j 以下であればループを行う
7. ピボットとjを入れ替える
8. ピボットより小さいデータをクイックソートする
9. ピボットより大きいデータをクイックソートする
# Copyright
Copyright (c) 2022 kema All Rights Reserved.