数据结构-字符串连接 (C++代码)----momoc 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main () { string a ,b; for(…… 题解列表 2019年05月23日 1 点赞 0 评论 899 浏览 评分:0.0
蓝桥杯算法训练VIP-字符删除 (C语言代码) 摘要:解题思路:主要考察对数组的运用,再就是基础注意事项:注意格式不要写错参考代码:# include <stdio.h>int main(){char str[21],str2[21],ch;gets(s…… 题解列表 2019年05月23日 0 点赞 0 评论 830 浏览 评分:0.0
蓝桥杯算法训练VIP-完数 (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int n,i,temp,sum=0;scanf("%d",&n);temp=n;for(i=1;i<n;i++)…… 题解列表 2019年05月23日 0 点赞 0 评论 769 浏览 评分:0.0
蓝桥杯算法训练VIP-最长字符串 (C语言代码)数组和指针的灵活运用,相互切换! 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){char str1[102],str2[102],str3[102],str4…… 题解列表 2019年05月23日 0 点赞 0 评论 832 浏览 评分:0.0
[编程入门]自定义函数之字符串连接 (C++代码)用C++的输入输出就行 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){char a[999],b[999];while(cin>>a>>b)c…… 题解列表 2019年05月24日 0 点赞 0 评论 750 浏览 评分:0.0
2004年秋浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>double fact(double n);double mypow(double x,double n…… 题解列表 2019年05月24日 0 点赞 0 评论 816 浏览 评分:0.0
2005年春浙江省计算机等级考试二级C 编程题(1) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h> int main(){ double x,y; scanf("%lf",&x); if(x<0)…… 题解列表 2019年05月24日 0 点赞 0 评论 641 浏览 评分:0.0
2005年春浙江省计算机等级考试二级C 编程题(2) (C语言代码) 摘要:解题思路:注意事项:参考代码#include<stdio.h>double ctof(double c,double f);int main(){ double c,f; for(c=-100;c<=…… 题解列表 2019年05月24日 0 点赞 0 评论 770 浏览 评分:0.0
2005年春浙江省计算机等级考试二级C 编程题(3) (C语言代码) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int n, i,j,row,col; int max; int a[10][1…… 题解列表 2019年05月24日 0 点赞 0 评论 854 浏览 评分:0.0
C语言训练-素数问题 (C语言代码)。嘛耶。。被大佬盯上了(萌新瑟瑟发抖)。赶紧水题破镜(200?) 摘要:解题思路:一个大于1的自然数,除了1和它本身之外没有其他的因数,该数就是素数!注意事项:注意负数情况。。。(测试数据不一定有,但是为了严谨!!)参考代码:#include<stdio.h>int ma…… 题解列表 2019年05月24日 0 点赞 0 评论 554 浏览 评分:0.0