C语言读文件fgets函数的用法 fgets是与gets类似,是接收字符串的意思,不同的是,fgets是从文件或者屏幕终端获取内容,其原型如下:char*fgets(char*str,intnum,FILE*stream)三个参数意思分别为:获取字符内容存储的地址,获取字符的数量,要获取的文件指针或来源数据流。其返回值为接到字符串地址即str,若失败则返回NU C语言文件操作 2025年03月21日 4 点赞 0 评论 1187 浏览
一笔画问题(dfs) 摘要:#include<bits/stdc++.h>using namespace std;int n, m, c;const int N = 1e3 + 5;int mapp[N][N], s…… 题解列表 2025年03月21日 0 点赞 0 评论 1422 浏览
C++ : 类和两种访问权限的练习 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std ;const int n=3 ;class MAX{&nb…… 题解列表 2025年03月21日 1 点赞 0 评论 2008 浏览
C++ : 类和两种访问权限的练习 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std ;class sum{ priva…… 题解列表 2025年03月21日 1 点赞 0 评论 1409 浏览
幸运儿(约瑟夫环-模拟+ Vector) 摘要:解题思路:模拟 + Vector注意事项:参考代码:#include<iostream>#include<vector>usingn…… 题解列表 2025年03月20日 1 点赞 0 评论 1236 浏览
蓝桥杯2024年第十五届省赛真题-好数,c语言包一清二楚 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,k=0,x;  …… 题解列表 2025年03月20日 4 点赞 0 评论 1448 浏览
并查集(本题输入会超时要关闭输入流) 摘要:#include<bits/stdc++.h>using namespace std;const int N = 1e5 + 5;int fa[N], rk[N];int n, m;voi…… 题解列表 2025年03月20日 0 点赞 0 评论 423 浏览
换一种思路来写用set中upper_bound()函数 摘要:解题思路:注意事项:参考代码:#include <iostream>#include <set>using namespace std;typedef long long ll…… 题解列表 2025年03月20日 1 点赞 0 评论 520 浏览
最大值和最小值的差,包清楚的c语言。 摘要:…… 题解列表 2025年03月20日 2 点赞 0 评论 270 浏览