Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>c snippetNew to Visual Studio Code? Get it now.
c snippet

c snippet

morningstart

|
226 installs
| (0) | Free
可以快速生成c语言代码片段,适合初学者使用
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

c-snippet

c 语言提示

关键字

常用库

  • stdio 标准输入输出库
  • stdbool 布尔类型库
  • math 数学库
  • ctype 字符类型库
  • string 字符串类型库
  • stdlib 标准库
  • time 时间库

函数

  • main 主函数
  • func_void 返回值为空的函数
  • func_int 返回值为整数的函数
  • func_float 返回值为浮点数的函数
  • func_string 返回值为字符串的函数
  • func_bool 返回值为布尔值的函数
  • func_char 返回值为字符的函数
  • func 返回值为任意类型的函数

结构体

  • for for 循环
  • forr 从尾部的 for 循环
  • while while 循环
  • do-while do-while 循环
  • goto goto 语句

数组函数

  • print_arr 打印数组函数
  • len 数组长度语句
  • copy_arr 复制数组函数
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft