自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 循环笑脸迷宫

需要的可以借鉴

2016-03-11 01:54:02 342

原创 一直报错 求出身年月 天数 年数 月数

// ConsoleApplication7.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include int is_leap_year(int year){int leap;if (year % 4 == 0 && year % 100 != 0 || year % 400 == 0) leap = 1;e

2015-11-03 08:42:53 304

原创 俄罗斯方块 编程代码

#include "StdAfx.h"#include "Game.h"#include #include #include #include /* 1. 画墙 2. 显示一个新方块 3. 控制方块 4. 到底部后,固定方块 5. 消行 6. 重复2-5*/#define WALL_ROW 15#define WALL_C

2015-10-31 14:41:34 1647

原创 程序判断一个数是否为偶数 一个数是否为奇数

(判断一个数为偶数)#incliudevoid main(){       int n;       printf("input n");       scanf ("%d",&n)       if (n%2==0)        printf("%d是偶数\n",n);       else        printf("%d是奇数\n",n);}

2015-10-29 01:19:20 3305

原创 程序计算3+6+9++。。。。

(计算从加3的值)/// 9 + 12 + 15 + 18 + 21 + 24int iTotal = 0; ///int iAddTo = 9; ///while (iAddTo {iTotal += iAddTo;iAddTo += 3;}printf("iTotal = %d\n", iTotal);return 0;

2015-10-29 01:18:34 2579

原创 程序 短路表

(短路表)// testvc6.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include #include void fnTest();int mul_n_subtract_1(int iInput); ///int

2015-10-29 01:17:15 382

原创 怎样解决无线死循环

#include int main(){int iCntMax = 0;int iIndex = 0;loop:if (iIndex > 3)//加上循环条件goto loop_1;if (iIndex++ {   printf("iIndex = %d\n", iIndex);}goto  loop;

2015-10-29 01:16:07 398

原创 用C语言输出一个菱形

#include "stdafx.h"int main(int argc, char* argv[]){int i,j;    for(i=1;i    {      for(j=1;j        printf(" ");      for(j=1;j {printf("%c", (1 == j) ? '*' : ' '); }

2015-10-29 01:12:45 538

转载 100-100000以内的阶乘

#define MAXLEN 100000/*假设做的是300的阶乘,自己可修改*/ #define MAXSUM 100000/*用来存放阶乘结果的数组最大长度*/ #include  #include  main() {  int i,j,k,n,sum,s;  int a[MAXSUM];  for(i=0;i {  a[i]=0;  }//数组赋

2015-10-29 01:11:01 704

原创 编程笑脸迷宫

/// 迷宫笑脸走一发#include #include #include "fun.h"char szMaze[][15]={"111111111111111","101111010011011","101000000000011","101011101101011","101000101101011","100000100101@

2015-10-29 01:02:16 399

原创 7克砝码和2克砝码分盐问题 自创总结

1,首先我们把140克盐分成70-70使天平两边平衡  每边70克         2.我们把7克砝码和2克砝码放入任意一个70克盘中    取出放入砝码一盘的9克  使两端平衡        3.然后我们在一边放入上边(70-9 )=61的   一遍放入9克盐加上一个两克的砝码  取出61克中的50克  是天平两端平衡            4.固然我们得出50克的盐   剩下的就是

2015-10-19 22:47:43 1234

空空如也

空空如也

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

TA关注的人

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