C语言
屌丝必逆袭
这个作者很懒,什么都没留下…
展开
-
C语言里的五种循环
一般说到 C 语言里有多少种循环? 大多数人都会觉得无非就是 while do-while for 这三种,而往往遗漏了 goto 和 递归。所以总的来说,C语言里面包含了五种循环,只是在大多数领域里, 后两种不怎么提倡使用,但这并不等于它们不好,相反,这两种循环是非常重要的。下面用五种循环来求1-100的累加和:#include <stdio.h>#include <process.h>int原创 2016-10-12 13:18:09 · 1590 阅读 · 0 评论 -
贪吃蛇小游戏
VS2012 + Easy X 做的一个贪吃蛇小游戏一个简单的小游戏, 只要实现逻辑。Game.h#pragma once#include <stdio.h>#include <graphics.h>#include <conio.h>#include <stdlib.h>#include <time.h>#pragma comment(lib, "winmm.lib")#define W原创 2017-03-20 16:48:24 · 581 阅读 · 0 评论