求大佬帮忙修改代码c语言基础

陈明明

C语言求大佬写代码

求大佬帮忙修改代码c语言基础

#include <stdio.h> int main(){ char ch; scanf("%c",&ch); if("ch>='A'&&ch<='Z'") printf("%c",&ch+32);;if("ch>='a'&&ch<='z'") printf("%c %d",ch-32,ch-32); else printf("%d",ch); }

C语言编程求大神帮忙修改一下

用结构体,创建一个 类型,包含 一个字符串 和 一个long数据, 用新类型数组,存放全部数据, 然后比较 根据每个元素的long进行排序

编程C语言,求大佬帮忙

int main() { int h1,h2,m1,m2; printf("Input time one(hour,minute):"); scanf("%d,%d",&h1,&m1); printf("Input time two(hour,minute):"); scanf("%d,%d",&h2,&m2); int s1,s2; s1=h1*60+m1; s2=h2*60+m2; int d=abs(s1-s2); printf("%d hour %d minutes",d/60,d%60); return 0; }

求大神帮忙改改C语言程序

简化后源程序如下: #include<stdio.h>char *trimfrnt(char *a);void main(){char *p=" Hello World!"; printf("%s\n",trimfrnt(p)); } char *trimfrnt(char *a){char *p=a; while(*p==' ')p++;return p;}

在线急等,c语言,求大佬给个代码

#include<stdio.h>int fun(char *s) { int a; a=0; while ( *s ) { a*=10; a+=(*s)-'0'; s++; } return a; }void main() { char str[80]; int a; scanf("%s",str); a=fun(str); printf("%d\n",a); }

求c语言大佬 编个代码

#include<stdio.h>fun(){ int a[3][3],i,j,m,m1,m2; while(1){ printf("请输入3*3矩阵元素:\n"); for(i=0;i<3;i++) for(j=0;j<3;j++){ scanf("%d",&a[i][j]); if(i==0&&j==0) {m=a[0][0];m1=0;m2=0;} else{ if(m<a[i][j]) {m=a[i][j];m1=i;m2=j;} }} printf("%d行%d列%d最大\n",m1+1,m2+1,m); }}main(){ fun();}如图所示,望采纳..

c语言大佬帮帮我!这个编程怎么写,求详细过程,谢谢!

思路是这样的,m为结果的高位,n为结果的低位,如果n共有x位,则结果为高位乘10的x次方加低位,写成代码为:#include<stdio.h>#include<math.h> int main(){ int m,n,result; scanf("%d%d",&m,&n); //计算n的位数 countint x = n; int count=0; while(x !=0){ x /= 10; count++; } //结果=m*10的count次方+nresult = m * pow(10,count) + n; printf("%d",result); }

c语言程序题求大佬帮忙

#include int main(){int n,i,j,s=0; struct stud{ char id[10]; char name[10]; int score;}stu[10]; scanf("%d",&n); for(i=j=0;istu[j].score)j=i; } printf("The average score=%.2f\n",(float)s/n); printf("The student who has the highest score is:%s %s %d",stu[j].id,stu[j].name,stu[j].score); return 0;}

求大佬给一段源代码,用c语言编译的,要求能显示出,你是一条傻狗.

#includeint main(void){printf("%s\n","你是一条傻狗");return 0;}

帮帮修改C语言程序的代码

代码及效果图如下: #include"stdio.h" main() { int i; for(i=800;i>%d\n",i); getch(); } 不过“近一千人”也要有一个合适范围(我只写800到1000,你可改!) 希望对你有帮助!