Skip to content

本项目收录了我刚接触计算机时编写的C语言基础程序,涵盖语法、数组、指针等内容,适合初学者入门和练习。

Notifications You must be signed in to change notification settings

StarryCode-Lang/C_ProgramingBasics

Repository files navigation

C Programming Basics

This repository contains a collection of C programming examples organized by learning progression.

Project Structure

  • 01_Introduction/ - Introduction to C programming
  • 02_BasicSyntax/ - Basic syntax, variables, and operations
  • 03_ControlFlow/ - Conditionals and loops
  • 04_Functions/ - Function usage and parameters
  • 05_Arrays/ - Array operations and manipulations
  • 06_Pointers/ - Pointer operations and memory management
  • 07_Strings/ - String manipulation and character arrays
  • 08_Structures/ - Structures and complex data types
  • 09_LinkedLists/ - Linked list implementations
  • 10_Recursion/ - Recursive algorithms and functions
  • 11_FileIO/ - File input/output operations
  • 12_Projects/ - Complete small projects

How to Compile

Individual programs can be compiled using:

gcc -o program_name category/program_name.c

For example:

gcc -o hello_world 01_Introduction/hello_world.c

Or use the provided Makefile:

make

Learning Path

This repository is organized to follow a logical learning progression for C programming:

  1. Introduction: First programs, basic concepts
  2. Basic Syntax: Variables, data types, basic operations
  3. Control Flow: Conditionals, loops, switch statements
  4. Functions: Function definitions, parameters
  5. Arrays: Array manipulation, multi-dimensional arrays
  6. Pointers: Pointer operations, memory management
  7. Strings: String manipulation, character arrays
  8. Structures: Custom data types, unions, enums
  9. Linked Lists: Singly and doubly linked lists
  10. Recursion: Recursive algorithms and functions
  11. File I/O: File operations, reading and writing data
  12. Projects: Complete small projects combining multiple concepts

About

本项目收录了我刚接触计算机时编写的C语言基础程序,涵盖语法、数组、指针等内容,适合初学者入门和练习。

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published