Cプログラミング
printfからポインタ、メモリ、データ構造まで — ブラウザで書き込み、当社のサーバー上でコンパイルして実行してください。
- c
- 23 レッスン
- 23 videos
- ブラウザ内で動作
このデバイス: 0 / 23 課題完了
全レッスンはブラウザ内で実行され、実際のコードを記述し、「実行」ボタンを押すだけでタスクが自己確認を行う。無料であり、アカウント不要。翻訳付きメモが英語とペアになっている。
このコースのレッスン
表示されたlesson のうち 27 件中 27 件
一致するレッスンが見つかりません。検索をクリアするか、別のフィルターを選択してください。
- C基礎: main, printf, 関数 Cはコンパイル言語です · Cの骨子 · printfと型 Lesson 1 · 3必須タスク · ★ 動画
- Variables, types, and arithmetic Every value has a type · Doing arithmetic · Integers divide differently · Reading input Lesson 2 · 3必須タスク · ★ 動画
- Booleans and selection: if, else, switch True and false in C · Comparing and combining · if / else if / else · switch: choosing among many values Lesson 3 · 3必須タスク · ★★ 動画
- Loops: while, for, and accumulation Repeating work · while loops · for loops · Accumulation and counting Lesson 4 · 3必須タスク · ★★ 動画
- Functions, parameters, and return values Why functions · Parameters and return values · void functions, and building big from small · C copies your arguments Lesson 5 · 3必須タスク · ★★ 動画
- Nested loops and patterns A loop inside a loop · Rows and columns · Building a line, then a block · Counting with nested loops Lesson 6 · 3必須タスク · ★★★ 動画
- 1-D arrays: store, index, and traverse A row of boxes · Indexing from 0 · Traversing with a loop · Arrays don't know their own length Lesson 7 · 3必須タスク · ★★ 動画
- Pointers: &, *, and pass-by-pointer A problem from last lesson · Every variable has an address · A pointer holds an address · Out-pointers: giving back more than one answer Lesson 8 · 3必須タスク · ★★★ 動画
- Strings: char arrays and the null terminator Text is an array of chars · The invisible terminator '\0' · Walking a string · The <string.h> toolbox Lesson 9 · 3必須タスク · ★★★ 動画
- Array algorithms: max, count, search, average Four classic array jobs · Finding the maximum · Counting with a condition · Linear search Lesson 10 · 4必須タスク · ★★★ 動画
- 2-D arrays: working with a grid A grid of boxes · Rows then columns (row-major) · Passing a 2-D array · Working one row at a time Lesson 11 · 3必須タスク · ★★★ 動画
- Searching: linear and binary Two ways to search · Linear search · Why sorting enables binary search · low, high, mid Lesson 12 · 3必須タスク · ★★★ 動画
- Sorting: bubble, selection, and insertion Putting an array in order · Swapping two elements · Bubble sort · Insertion sort Lesson 13 · 3必須タスク · ★★★★ 動画
- Recursion: base case and recursive case A function that calls itself · The base case · The recursive case · Recursion over an array Lesson 14 · 3必須タスク · ★★★★ 動画
- Structs and typedef: . vs -> Grouping related data · struct and typedef · Member access with . · Through a pointer with -> Lesson 15 · 3必須タスク · ★★★ 動画
- Dynamic memory: malloc, free, and realloc Stack memory vs heap memory · malloc and sizeof · free and memory leaks · Growing an array with realloc Lesson 16 · 3必須タスク · ★★★★ 動画
- リンクドリスト Nodes joined by pointers · A self-referential struct · head and the NULL end · Adding a node at the front Lesson 17 · 3必須タスク · ★★★★★ 動画
- Stacks and queues (array-backed) Two ways to hold items · A stack is LIFO · Array-backed stack · A queue is FIFO Lesson 18 · 3必須タスク · ★★★★ 動画
- Text files: write then read Files keep data after the program ends · Opening and closing · Writing with fprintf · Reading with fscanf and fgets Lesson 19 · 3必須タスク · ★★★ 動画
- エラーハンドリングと戻りコード C has no try/except · Return a status code · Reporting the answer through an out-pointer · Sentinels for "no value" Lesson 20 · 3必須タスク · ★★★ 動画
- Bits, binary, and bitwise operators Numbers are bits · Place value and powers of two · Reading a bit with >> and & 1 · The bitwise operators Lesson 21 · 3必須タスク · ★★★ 動画
- Run-length encoding (compression) Squeezing repeated data · What a "run" is · Counting a run · Building the encoded string Lesson 22 · 3必須タスク · ★★★★ 動画
- Preprocessor, const, static, and enum What runs before the compiler · #include and #define · const vs #define · static and enum Lesson 23 · 3必須タスク · ★★★ 動画
読書とリソース
- Cの簡易な歴史 Where C came from · Close to the machine · The famous book · C today 読書とリソース
- Cがどのような用途に使われているか What people build with C · Operating systems · Tiny computers everywhere · Databases and other languages 読書とリソース
- さらに学ぶ場所 遊びながら学ぶ · 読み物・リファレンス · このサイトについて · ポイント 読書とリソース
- コンピュータをセットアップする Run C on your own computer · Step 1 — Install a compiler · Step 2 — Install VS Code · Step 3 — Add the C/C++ extension 読書とリソース
Open the C reference
Every topic in one place, with short examples you can run.
さらに学ぶ場所
- Learn-C.org ブラウザ内で実行する、無料のHands-on C lessons
- Exercism — Cトレック 親切なメンターによるフィードバック付き的小型課題
- HackerRank — C 易しいものから難しいものまで、演習問題
- cppreference — C すべてのC関数に対応した、丁寧で無料のリファレンス
- The C Programming Language (K&R) Cの生み出し者による古典的書籍
- Visual Studio Code 自身のコンピュータ上でCを記述するための無料エディタ
- C演習問題(このサイト) ご自身の実力を試すための追加Cチャレンジ
- AP CS A(このサイト) Cの親族であるJavaを学ぶ