写一函数,将两个字符串连接 摘要:#include<stdio.h>#include<string.h>int main(){char str1[100],str2[100];gets(str1);gets(str2);strcat(…… 文章列表 2018年04月10日 3 点赞 0 评论 1494 浏览 评分:0.0
写一函数,使输入的一个字符串按反序存放,在主函数中输入输出反序后的字符串。 摘要:#include<stdio.h>#include<string.h>int main(){char a[1000],l,i;scanf("%s",&a);l=strlen(a);for(i=l-1;…… 文章列表 2018年04月10日 14 点赞 0 评论 4486 浏览 评分:6.8
1116 摘要:1116#include<stdio.h>#include<stdlib.h>#include<string.h>int check(char x[]){ int i,j=0,k=0; c…… 文章列表 2018年04月08日 11 点赞 0 评论 905 浏览 评分:0.0
问题1095:3n + 1问题(解决一直提交不上问题) 摘要:首先就是先把这个题给读懂,否则就不要去敲代码,否则就是浪费时间, 问题描述和分析:该题就是你输入两个数,然后找其中的数,如果%2==0,就/2,否则就是*3+1,一直持续到该数为1结束, …… 文章列表 2018年04月07日 3 点赞 0 评论 1033 浏览 评分:0.0
C++学习笔记 摘要:1.endl等对于cout来说有特殊含义的特殊符号被称为控制符;2.面向对象编程(OOP);3.一些关键字:autobreakcase char const continuedefaultdodoub…… 文章列表 2018年04月06日 13 点赞 4 评论 960 浏览 评分:0.0
1002 摘要:#include<stdio.h> int main() { int a,b, c; scanf("%d%d%d",&a,&b,&c); if(a>b) { if(a>…… 文章列表 2018年04月01日 0 点赞 0 评论 870 浏览 评分:0.0
1022 摘要:#include<stdio.h> int main() { int a,b, c,N; scanf("%d",&N); for(c=2;c<=N;c++) { b=0; …… 文章列表 2018年04月01日 0 点赞 0 评论 1055 浏览 评分:0.0
让我来告诉你们错在哪里 摘要:一开始我的代码是这样的:#include<stdio.h>int main(){ int n,i; int s=1,sn=0; scanf("%d",&n); if(n>0&&n<=20) { for…… 文章列表 2018年03月31日 0 点赞 0 评论 1187 浏览 评分:0.0
求1!+2!...N!,请各位大神帮我看看我这个代码哪里错了? 摘要:#include<stdio.h>int x=1;int main(){ long fab(int a); int a; long sum; scanf("%d",&a); …… 文章列表 2018年03月30日 1 点赞 5 评论 298 浏览 评分:0.0
问题 1476: 蓝桥杯基础练习VIP-龟兔赛跑预测//答案错误,不知道错在哪里 摘要:#include <iostream>using namespace std;int main(){ int v1,v2,s,t,l; cin>>v1>>v2>>s>>t>>l; i…… 文章列表 2018年03月30日 0 点赞 0 评论 1243 浏览 评分:0.0