C语言
文章平均质量分 91
宇希啊
这个作者很懒,什么都没留下…
展开
-
学生信息管理系统
1.一个简单的学生信息管理系统的源代码示例:#include <stdio.h>#include <stdlib.h>// 定义学生结构体typedef struct { int id; char name[50]; int age;} Student;// 定义学生信息管理系统typedef struct { Student* students; int count;} StudentManagementSystem;原创 2023-06-15 09:18:23 · 91 阅读 · 0 评论 -
C语言实例
1:输出 "Hello, World!"使用printf() 输出 "Hello, World!"。#include <stdio.h>int main(){ // printf() 中字符串需要引号 printf("Hello, World!"); return 0;}输出:Hello, World!2:输出整数使用printf() 与 %d格式化输出整数。#include <stdio.h>int main(){ int nu原创 2020-11-15 02:57:31 · 1526 阅读 · 0 评论 -
C语言98
内联代码片#include <stdio.h> int main(){ /* 我的第一个 C 程序 */ printf("Hello, World! \n"); return 0;}// A code blockvar foo = 'bar';原创 2020-11-14 15:17:05 · 2303 阅读 · 1 评论