自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Dream Catcher

程序

  • 博客(11)
  • 收藏
  • 关注

原创 对于“水仙花”的几种写法及定义

/*水仙花数*///首先我先简单的介绍什么是水仙花:他指的是一个有n位的x数等于各个位数的数字的n次方相加;//公式 ==    x =pow(个位数子的数,n)+pow(十位数子的数,n)+..../*先写简单的三位数中的水仙花数*///#include<stdio.h>//#include<stdlib.h>////int main()//{// int i,j,k,m...

2018-03-29 00:38:48 687

原创 简单程序 Dream Cather 第十天

/*编写一个程序,它从标准输入读取c源代码并验证所有花括号都正确成对出现*///这个程序不在意输入的其他字节,只在意‘{’‘}’;//要考虑到输入各种情况:如  '{}{}}'或'}'或‘{}’;#include<stdio.h>#include<stdlib.h>int main(){ int ch = 0; int count = 0; while ((ch = get...

2018-03-29 00:04:56 139

原创 简单程序 Dream Cather 第九天

/*水仙花数*///重点在于写出一个三位数如何分别输出每一位的数字//#include<stdio.h>//#include<stdlib.h>////int main()//{// int i,j,k,m;//// for (i = 100; i < 1000; i++)// {// j = (i / 100); //百位数字// k = (i%100 / 10...

2018-03-27 23:47:38 91

原创 简单程序 菱形 Dream Cather 第八天

#include<stdio.h>#include<stdlib.h>/*半个菱形*///int main()//{// int i;// for (i = 1; i < 14; i++)// {// if (i % 2 == 1)// {// int j;// for (j = 0; j < i; j++)// printf("*");// ...

2018-03-27 00:23:27 142

原创 时钟芯片 Dream Cather 第七天

//关于23时59分50秒的时钟程序;#include<STC15F2K60S2.H>#include<intrins.h>#define uchar unsigned char #define uint unsigned int sbit CE=P1^3;sbit IO=P2^3;sbit SCLK=P1^7;uchar code ds[]={50,59,23,10,1...

2018-03-25 23:35:54 170

原创 简单程序 Dream Cather 第六天

/*将两相等数组元素交换*/可以想成是两数交换,数组中的每项一一对应;#include<stdio.h>#include<stdlib.h>int main(){ int i = 0; int arr_a[8] = { 0,3,4,5,6,7,8,9 }; int arr_b[8] = { 9,8,7,6,5,4,3,0 }; for (i = 0; i < siz...

2018-03-24 21:43:46 871

原创 15单片机温度DS18b20温度模块 Dream Cather 第五天

/*DS18b20温度模块的特征:a>通过单总线协议进行通信。b>每个器件有唯一的64位的序列号存储在内部存储器中。c>多点分布式测温应用。d>通过数据线供电,供电范围为3.0 ~ 5.5 V。e>测温范围为-55 ~ +125℃,其中在-10 ~ +85℃范围内精确度为 ±5 ℃。f>温度计分辨率可以被使用者选择为 9 ~ 12位。g>最多在750 ms...

2018-03-24 00:06:22 456

原创 简单程序3 Dream Cather 第四天

/*两整形交换,引进临时变量*/////#include<stdio.h>//#include<stdlib.h>////int main()//{// int a = 10;// int b = 20;// int temp = 0;//// temp = a;// a = b;// b = temp;// printf("a=%d b=%d\n ", a, b);// ...

2018-03-22 23:55:23 125

原创 改进简单程序 Dream Cather 第三天

/*100-200之间的素数*//*#include<stdio.h>#include<math.h>#include<stdlib.h>int main(){ int i = 0; int count = 0; for (i = 101; i <= 200; i += 2) { int j = 0; for (j = 2; j <= sqrt(...

2018-03-21 23:05:46 119

原创 简单的程序 Dream Cather 第二天

/*#include<stdio.h>#include<stdlib.h>int main(){ printf("hello word!\n"); system("pause"); return 0;}*//*打印100-200之间的素数*//*#include<stdio.h>#include<stdlib.h>int main(){ int i,...

2018-03-20 23:59:18 117

原创 Dream Catcher 第一天

     我叫冯雯安,从今天起加入CSDN的大家庭中,希望与你们共同进步。     回顾大学前半期间,过得也是忙碌而又充实,不仅参加了许多社会活动,也参加举办过许多大型活动,上过许多的主持舞台。而我本人对于机械结构,电子软件又十分感兴趣,一直在学习很多的机械制图并也自我尝试设计了一些小机械,但越往深学习就会发现自己所掌握的知识越来越少,要学习的真是好比繁星令人想要但又无法全数得到,曾经的我总是好高...

2018-03-19 22:20:39 105

空空如也

空空如也

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

TA关注的人

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