天下一家·MJ

博客园 首页 新随笔 联系 订阅 管理

12 2014 档案

摘要:#include "stdio.h"#include "math.h"long Prime(long);long PrimeCount(long,long);int main(){ int a,curPrime,cfCount; int v; int tPrime=0; sc... 阅读全文
posted @ 2014-12-07 19:39 天下一家·MJ 阅读(448) 评论(0) 推荐(0)

摘要:#include "stdio.h"#include "malloc.h"#include "math.h"int *getinput(int len);double calc(int *data,int len);int main(){ int len=0; int *data; ... 阅读全文
posted @ 2014-12-07 16:34 天下一家·MJ 阅读(541) 评论(0) 推荐(0)

摘要:#include "stdio.h"#include "malloc.h"#include "math.h"void calc(int num,int N,long *data);int main(){ int N,num; long *result; scanf("%d",&nu... 阅读全文
posted @ 2014-12-07 16:33 天下一家·MJ 阅读(145) 评论(0) 推荐(0)

摘要:输出整型的数值就不说了,显示浮点型:printf("%.2f",3.33); //保留两位小数显示,数字前面没有空格填充显示的时候,设计到0-1之间的数的时候:printf("%.2f",0.33);printf("%.2f",.33);//以上两种情况显示的效果一致。自动补零而不是补空格:pri... 阅读全文
posted @ 2014-12-07 12:42 天下一家·MJ 阅读(257) 评论(0) 推荐(0)

友情链接Tkin的技术博客
点击右上角即可分享
微信分享提示