自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(3)
  • 收藏
  • 关注

转载 计算Fibonacci数列中 //第一个大于10000的元素及n值。

//Fibonacci数列定义如下: 试编写程序,计算Fibonacci数列中//第一个大于10000的元素及n值。 int Fib(int Num){ if(Num<=2) return 1; return Fib(Num-1)+Fib(Num-2);}void main(){ int n,Num=0; for(n=0;Num<10000;n++) { Num=Fib(n); }...

2018-06-03 19:48:45 6327

转载 线性表的顺序表示——创建 插入 删除 逆置)(C语言完整版)

#include<stdio.h>#include<malloc.h>#include<stdlib.h>#define LIST_INIT_SIZE 100#define LISTINCREMENT 10typedef struct{ int *elem; int length; int listsize;}SqList;SqList InitList(){ ...

2018-06-02 23:24:15 1401

原创 带头节点单链表的插入(元素) 操作(C语言完整版)

#include <stdio.h>#include <malloc.h>#define N 5typedef struct node{ char name[20]; float score; struct node *next;}stud;stud *creat(int n){ stud *p, *h, *s; int i; if((h=(stud*)malloc(siz...

2018-06-01 09:33:28 5132

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除