C语言教程

  • C语言100道经典题目66

      C 语言经典100例题目:输入3个数a,b,c,按大小顺序输出。程序分析:利用指针方法。实例# include void swap(int *, int *);int main(void){ i...

    15天前 86
  • C语言100道经典题目65

      C 语言经典100例题目:一个最优美的图案(在TC中实现)。程序分析:无。程序源代码:实例 #include "graphics.h"#include "math.h"#include "dos.h"...

    15天前 180
  • C语言100道经典题目64

      C 语言经典100例题目:利用ellipse and rectangle 画图(在TC中实现)。程序分析:无。程序源代码://#include "stdio.h"#include "graphics....

    15天前 127
  • C语言100道经典题目63

      C 语言经典100例题目:画椭圆ellipse(在TC中实现)。程序分析:无。程序源代码://#include "stdio.h"#include "graphics.h"#include "coni...

    15天前 162
  • C语言100道经典题目62

      C 语言经典100例题目:学习putpixel画点,(在TC中实现)。程序分析:无。程序源代码://#include "stdio.h"#include "graphics.h"int main(){...

    15天前 71
  • C语言100道经典题目61-杨辉三角形

      C 语言经典100例题目:打印出杨辉三角形(要求打印出10行)。程序分析:结构如下所示:11 11 2 11 3 3 11 4 6 4 1 ...

    15天前 143
  • C语言100道经典题目60

      C 语言经典100例题目:画图,综合例子2。(在TC中实现)。程序分析:无。 程序源代码://#include "graphics.h"#define LEFT 0#define TOP 0#defi...

    15天前 126
  • C语言100道经典题目59

      C 语言经典100例题目:画图,综合例子。(在TC中实现)。程序分析:无。 程序源代码://# define PAI 3.1415926# define B 0.809# include "graph...

    15天前 92
  • C语言100道经典题目58

      C 语言经典100例题目:学用rectangle画方形。(在TC中实现)。程序分析:无。 程序源代码://#include "graphics.h"int main(){ int x0,y0,y...

    15天前 135
  • C语言100道经典题目57

      C 语言经典100例题目:画图,学用line画直线(在TC中实现)。程序分析:无。 程序源代码://#include "graphics.h"int main(){ int driver,mod...

    15天前 56
  • C语言100道经典题目56

      C 语言经典100例题目:画图,学用circle画圆形。程序分析:无。 // Copyright ? 2015年 IT教学网. All rights reserved.//实例#include /...

    15天前 160
  • C语言100道经典题目55

      C 语言经典100例题目:学习使用按位取反~。程序分析:~0=-1; ~1=-2; 程序源代码:实例 //#include int main int a,b; a=234; b=~a; pr...

    15天前 172
  • C语言100道经典题目54

      C 语言经典100例题目:取一个整数 a 从右端开始的 4~7 位。程序分析:可以这样考虑: (1)先使 a 右移 4 位。(2)设置一个低 4 位全为 1,其余全为 0 的数,可用~(~0(3)将上...

    16天前 166
  • C语言100道经典题目53

      C 语言经典100例题目:学习使用按位异或 ^。程序分析:0^0=0; 0^1=1; 1^0=1; 1^1=0 。程序源代码://#include int main(){ int a,b; ...

    16天前 131
  • C语言100道经典题目52

      C 语言经典100例题目:学习使用按位或 |。程序分析:0|0=0; 0|1=1; 1|0=1; 1|1=1 。程序源代码://#includeint main(){ int a,b; a...

    16天前 160

联系我们

在线咨询:点击这里给我发消息

咨询电话:400-998-2681

工作时间:7*24小时无休