mdsk.net
当前位置:首页 >> 求C语言大神解答!!在线等!!急!!!谢谢了!!... >>

求C语言大神解答!!在线等!!急!!!谢谢了!!...

#include #include void invert(char str[]);int main(void){ char str[100],*p=str; printf("输入字符串:"); gets(p); printf("逆序字符串:"); invert(p); printf("\n"); return 0;}void invert(char str[]){ int i,length=strlen(str); for(...

#include "stdio.h"int sum(int n){if(n>1)return n+sum(n-1);elsereturn 1;}int main(){int n;scanf("%d",&n);printf("%d\n",sum(n));}

#includevoid BubbleSort(int a[],int n){ int i,j,r;for(i=0;i=1;j--){if(a[j]

#include char *delete(char *p, int i);char a;int main(){char a[40], *b;int i;printf("请输入字符串\n");scanf("%s", a);printf("请输入你要删除第几个字符\n");scanf("%d", &i);b = delete( a, i);if(b == NULL){printf(" 删除失败\n");}el...

#include int main() { int n,m,i,j,flag,good; double sum1,sum2,b[20],c[5],a[20][5]; while(scanf("%d%d",&n,&m)!=EOF)//学生数 课程数 { for(i=0;i

#includeint main(){int i,j=0,t,a[20]; for(i=0;ia[j])j=i; } t=a[j];a[j]=a[0];a[0]=t; for(i=0;i

#includeint main(void){int a, b;char c;printf("请输入两个数:");scanf("%d %d", &a, &b);getchar();printf("请输入你需要的运算法则:");scanf("%c",&c);switch (c){case '+':printf("%d+%d = %d", a, b, a+b);break;case '-':printf("%d-%d ...

#include"stdio.h"#include"string.h"int main(){ int x=0,i=0,j=0,k=0,m=0,n=0; char a[30]; printf("input string:"); while((a[x]=getchar())!='\n') { { if(a[x]>='A'&&a[x]='a'&&a[x]='0'&&a[x]

add(int*a,int*b) { int sum; sum=*a+*b return sum; }

max = mark; i=0;i

网站首页 | 网站地图
All rights reserved Powered by www.mdsk.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com