会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
u329089
博客园
首页
新随笔
联系
订阅
管理
2025年10月
实验1 现代C++编程初体验
摘要: 实验任务一 #include <iostream> #include <string> #include <vector> #include <algorithm> template<typename T> void output(const T &c); void test1(); void te
阅读全文
posted @ 2025-10-17 23:41 晚夕惋惜婉西
阅读(5)
评论(1)
推荐(0)
2023年12月
实验七
摘要: #include<stdio.h> #define N 2 int main(){ char *x[N]={"0123456789-0123456789", "nuist2023 - nuist2024" }; int i; FILE *fp; fp=fopen("data4.txt","w");
阅读全文
posted @ 2023-12-21 21:26 晚夕惋惜婉西
阅读(18)
评论(0)
推荐(0)
实验五
摘要: #include <stdio.h> #define N 80 void replace(char *str, char old_char, char new_char); int main() { char text[N] = "c programming is difficult or not,
阅读全文
posted @ 2023-12-03 23:28 晚夕惋惜婉西
阅读(12)
评论(0)
推荐(0)
2023年11月
实验四
摘要: #include<stdio.h> #define N 80 int count(char x[]); int main() { char words[N+1]; int n; while(gets(words) != NULL) { n = count(words); printf("单词数: %
阅读全文
posted @ 2023-11-19 14:23 晚夕惋惜婉西
阅读(20)
评论(0)
推荐(0)
实验二
摘要: #include<stdio.h> #include<stdlib.h> #include<time.h> #define N 5 #define N1 374 #define N2 465 int main() { int number; int i; srand(time(0)); for(i=
阅读全文
posted @ 2023-11-05 16:23 晚夕惋惜婉西
阅读(3)
评论(0)
推荐(0)
实验三
摘要: #include<stdio.h> int func(int n,int m); int main() { int n,m; while(scanf("%d%d",&n,&m)!= EOF) printf("n=%d,m=%d,ans=%d\n",n,m,func(n,m)); return 0;
阅读全文
posted @ 2023-11-03 10:54 晚夕惋惜婉西
阅读(6)
评论(0)
推荐(0)
2023年10月
实验1
摘要: #include <stdio.h> int main() { char ans1, ans2; // 用于保存用户输入的答案 printf("每次课前认真预习、课后及时复习了没? (输入y或Y表示有,输入n或N表示没有) : "); ans1 = getchar(); // 从键盘输入一个字符,赋
阅读全文
posted @ 2023-10-08 23:07 晚夕惋惜婉西
阅读(32)
评论(0)
推荐(0)
公告