会员
商店
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
tangGaPb
博客园
首页
新随笔
联系
订阅
管理
2024年12月26日
作业五
摘要: 作者:tANGjIAqIAN 题目1 #include <stdio.h> // 结构体 struct Student { char id[12]; char name[11]; int mathScore; int englishScore; int programmingScore; }; //
阅读全文
posted @ 2024-12-26 17:21 GaPb
阅读(15)
评论(0)
推荐(0)
编辑
2024年12月2日
中文字符的处理问题
摘要: 谁都有问题,谁都没问题 一番操作之后,dev界面的中文变成了乱码,不知道发生了什么 但中文能够正常识别了 但在vscode中又把中文识别成了大写字母 直接使用编译后的exe又正常了 究竟发生了什么事情 就因为我开启了这个? 不管了,力不能及 还是先重装dev吧
阅读全文
posted @ 2024-12-02 14:34 GaPb
阅读(7)
评论(0)
推荐(0)
编辑
2024年12月1日
作业四
摘要: 作者:tANGjIAqIAN 题目1 #include <stdio.h> long P(long n, long x) { if (n == 0) { return 1; //情况1 } else if (n == 1) { return x; //情况2 } else { return ((2
阅读全文
posted @ 2024-12-01 23:20 GaPb
阅读(20)
评论(0)
推荐(0)
编辑
2024年11月10日
作业三
摘要: 作者:tANGjIAqIAN 题目1 for循环 #include <stdio.h> int main() { int n, i; long long nnn = 1; // 使用long long以存储较大的阶乘结果 scanf("%d", &n); for (i = 1; i <= n; i+
阅读全文
posted @ 2024-11-10 11:52 GaPb
阅读(15)
评论(0)
推荐(0)
编辑
2024年10月26日
作业二
摘要: 作者:tANGjIAqIAN 题目1 答案:D 原因:输入的实际上是 123 45 678,而scanf 函数会按照以下步骤读取数据: 1.%3d 格式说明符会读取前三个数字 123 并将其赋值给 int x。由于 %3d 限制了最多读取三个数字,scanf会在读取三个数字后停止对x的赋值。 2.读
阅读全文
posted @ 2024-10-26 22:12 GaPb
阅读(16)
评论(0)
推荐(0)
编辑
2024年10月12日
作业一
摘要: 作者:tangjiaqian 题目1: #include<stdio.h> int main() { printf("hello world\n"); return 0; } 题目2: #include<stdio.h> int main() { int a = 10 ; float b = 4.5
阅读全文
posted @ 2024-10-12 22:48 GaPb
阅读(26)
评论(0)
推荐(0)
编辑
点击右上角即可分享