- 博客(17)
- 收藏
- 关注
转载 FUSE相关资料
1.http://www.voidcn.com/article/p-tvbeqqlm-nw.html2.https://blog.csdn.net/yeruby/article/details/419781993.https://github.com/promovicz/rtos/blob/master/fat/fat16.c4.https://github.com/COSI-Lab/CS4...
2019-06-08 10:33:35 465
转载 2.2棋盘
#include<stdio.h>#include<math.h>int main(){ int cases; char begin[3],end[3]; scanf("%d",&cases); int x,y; while(cases--){ scanf("%s%s",begin,end); ...
2018-07-18 16:23:56 235
转载 小金库—有密码,添账,列单,按日期、ID查询,删除的功能(初始密码为123456,可更改)
#include#include #include //问题:清除小金库进入不了函数,删除记录,新小金库// #includelong size;struct LogData{ long logid;char logdate[11];char lognote[15];double charge; double balance; };
2018-01-24 10:18:18 489
转载 矩阵乘法——可变矩阵
#includeint main(){ int m,s,n,i,j,z; printf("输入3个参数:"); scanf("%d%d%d",&m,&s,&n); int A[100][100]={0},B[100][100]={0},C[100][100]={0}; printf("输入A矩阵数:"); for(i=0;im;i++)
2018-01-24 10:11:20 483
原创 计时——运用循环语句
#include #include #include int main() { clock_t start_t,end_t; start_t=clock(); int hour,minute,second; while(1) { if(getch()==' ') { end_t=clock();
2018-01-24 10:08:42 505
转载 计时——运用goto
#include#include#include#includeint main(){ int hour,minute,second; clock_t startTime,endTime; printf("start\n"); a:startTime=clock(); if(getch( )==' ') { endTime=
2018-01-24 10:06:40 260
转载 寻找100到200的素数
#include #includeint main(){ int m,i,k,h=0,leap=1; printf("\n"); for(m=101;m201;m++) { k=sqrt(m+1); for(i=2;i<=k;i++) { if(m%i==0)leap=0;break;
2018-01-24 10:03:33 275
转载 数字字符串转为相应的浮点数
#include #includedouble atof(char s[]){ double sum,power; int i,sign; for(i=0;isspace(s[i]);i++); sign=(s[i]=='-')?1:-1; if(s[i]=='+'||s[i]=='-')i++; for(sum=0;isdigit(s[i])
2018-01-24 10:00:22 1823
转载 将数字作为字符串打印
#includevoid printed(int n){ if(n0){ putchar('-'); n=-n;} if(n/10)printed(n/10); else putchar(n%10+'0');}int main(){ int n; scanf("%d",&n); printed(n); return
2018-01-20 11:55:04 704 1
转载 结构体输出链表
includeincludedefine LEN sizeof(struct Student)struct Student { long num; float score; struct Student *next; }; int n; struct Student *creat(void) { struct Student *head
2018-01-20 11:40:14 716
转载 结构体指针做函数参数
includeincludedefine N 3int main() { struct Student stu[N]; struct Student *p=stu; void input(struct Student stu[]); struct Student max(struct Student stu[]); void prin
2018-01-20 11:39:34 1491
转载 编写可变参数的函数
#include#includevoid minprintf(char *fmt,...){ va_list ap; char *p,*sval; int ival; double dval; va_start(ap,fmt); for(p=fmt;*p;p++) { if(*p!='%'){
2018-01-20 11:38:41 288
转载 删除文章中的注释
#include int state; int c1,c2; void change_state(int c); int main(int argc, const char * argv[]) { int c; state = 0; c1 = 0; c2 = 0; while ((c=getchar())!=EO
2018-01-20 11:37:27 310
转载 水仙花数
#includeint main(){ int i,j,k,n; printf("water flower numbers are:\n"); for(n=100;n1000;n++) { i=n/100; j=(n/10)%10; k=n%10; if(n==i*i*i+j*j*j+k*k*k)
2018-01-20 11:36:40 198
转载 自己写的有关字符串的库函数
#include #include#includevoid strcpy(char *s,char *t){ while(*s++=*t++); } int strcmp(char *s,char *t){ for(;*s==*t;s++,t++) { if(*s=='\0')return 0; } return *s-*t
2018-01-20 11:36:04 362
转载 c++文件练习1
#include#include#include#includeusing namespace std;int main(){ fstream iofile("seq_data.txt",ios_base::in|ios_base::app); ofstream outfile("seq_base.txt",ios_base::app); int num_tri
2018-01-20 11:33:57 275
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人