一曲离殇醉 IP属地:安徽

文章 关注 粉丝 访问 贡献
 
共 15 篇文章
显示摘要每页显示  条
【程序91】题目:时间函数举例11.程序分析:2.程序源代码:#include "stdio.h"#include "time.h"void main(){ time_t lt; /*define a longint time varible*/lt=time(NULL);/*system time and date*/printf(ctime(<)); /*english format output*/printf(asctime(localtime(<)));/*tranfer to tm*/printf(asctime(gmt...
【程序91】题目:时间函数举例11.程序分析:2.程序源代码:#include "stdio.h"#include "time.h"void main(){ time_t lt; /*define a longint time varible*/lt=time(NULL);/*system time and date*/printf(ctime(<)); /*english format output*/printf(asctime(localtime(<)));/*tranfer to tm*/printf(asctime(gmt...
1.程序分析:2.程序源代码:output(long b,long i){ printf("\n%ld/%ld=809*%ld+%ld",b,i,i,b%i);}1.程序分析:2.程序源代码:#include "stdio.h"#include "math.h"main()-----------------------------------------------------------------------------【程序86】题目:两个字符串连接程序1.程序分析:2.程序...
1.程序分析:            2.程序源代码:#include "stdio.h"#include "graphics.h"main()1.程序分析:2.程序源代码:#include "graphics.h"#include "math.h"#include "dos.h"#include "conio.h"#include "stdlib.h"#include "stdio.h"#include ...
1.程序分析:            2.程序源代码:#include "stdio.h"#include "graphics.h"main()1.程序分析:2.程序源代码:#include "graphics.h"#include "math.h"#include "dos.h"#include "conio.h"#include "stdlib.h"#include "stdio.h"#include ...
经典C语言程序设计100例41-50经典C语言程序设计100例51-601.程序分析:0&0=0; 0&1=0; 1&0=0; 1&1=12.程序源代码:#include "stdio.h"main()printf("\40: The a &b(decimal) is %d \n",b);1.程序分析:0|0=0; 0|1=1; 1|0=1; 1|1=1            2.程序源代码:#include "stdio.h"m...
-----------------------------------------------------------------------------【程序48】题目:宏#define命令练习(3)   1.程序分析:2.程序源代码:#define LAG >#define SMA <#define EQ ==#include "stdio.h"void main(){ int i=10;int j=20;if(i LAG j)printf("\40: %d larger than %d \n",i,j);else if(i...
printf("please input the first letter of someday\n");-----------------------------------------------------------------------------【程序32】题目:Press any key to change color, do you want to try it. Please hurry up!1.程序分析:            2.程序源代码:#include <conio.h>void main(void){/*i...
【程序11】题目:古典问题:有一对兔子,从出生后第3个月起每个月都生一对兔子,小兔子长到第三个月    后每个月又生一对兔子,假如兔子都不死,问每个月的兔子总数为多少?int a,b,num1,num2,temp;if(num1<num2) { temp=num1;num1=num2;num2=temp;printf("gongbeishu:%d\n",num1*num2/a);printf("a+aa+...=%ld\n&quo...
printf("\n");int bonus1,bonus2,bonus4,bonus6,bonus10,bonus;else if(i<=200000) bonus=bonus1+(i-100000)*0.075;else if(i<=400000) bonus=bonus2+(i-200000)*0.05;else if(i<=600000) bonus=bonus4+(i-400000)*0.03;else if(i<=1000000) ...
帮助 | 留言交流 | 联系我们 | 服务条款 | 下载网文摘手 | 下载手机客户端
北京六智信息技术股份有限公司 Copyright© 2005-2024 360doc.com , All Rights Reserved
京ICP证090625号 京ICP备05038915号 京网文[2016]6433-853号 京公网安备11010502030377号
返回
顶部