IT入门 > 实战案例 > C语言实例 >
  • 学习使用按位取反~。 日期:2022-06-22 点击:1530 C语言精选100例

    C 练习实例55 题目: 学习使用按位取反~。 程序分析: ~0=-1; ~1=-2; 程序源代码: 实例 // Created by www.runoob.com on 15/11/9. // Copyright © 2015年 菜鸟教程. All rights reserved. // #include stdio.h int main...

  • 取一个整数 a 从右端开始的 4~7 位。 日期:2022-06-22 点击:1550 C语言精选100例

    C 练习实例 54 题目: 取一个整数 a 从右端开始的 4~7 位。 程序分析: 可以这样考虑: (1)先使 a 右移 4 位。 (2)设置一个低 4 位全为 1,其余全为 0 的数,可用~(~04) (3)将上面二者进行...

  • 画图,学用circle画圆形。 日期:2022-06-22 点击:1602 C语言精选100例

    C 练习实例56 题目: 画图,学用circle画圆形。 程序分析: 无。 // Created by www.runoob.com on 15/11/9.// Copyright © 2015年 菜鸟教程. All rights reserved.// 实例 #include graphics.h //VC6.0中是不能运行的,...

  • 画图,学用line画直线(在TC中实现)。 日期:2022-06-22 点击:1194 C语言精选100例

    C 练习实例57 题目: 画图,学用line画直线(在TC中实现)。 程序分析: 无。 程序源代码: // Created by www.runoob.com on 15/11/9.// Copyright © 2015年 菜鸟教程. All rights reserved.//#include "graphics....

  • 学用rectangle画方形。(在TC中实现)。 日期:2022-06-22 点击:735 C语言精选100例

    C 练习实例58 题目: 学用rectangle画方形。(在TC中实现)。 程序分析: 无。 程序源代码: // Created by www.runoob.com on 15/11/9.// Copyright © 2015年 菜鸟教程. All rights reserved.//#include "graphics.h...

  • 画图,综合例子。(在TC中实现)。 日期:2022-06-22 点击:1339 C语言精选100例

    C 练习实例59 题目: 画图,综合例子。(在TC中实现)。 程序分析: 无。 程序源代码: // Created by www.runoob.com on 15/11/9.// Copyright © 2015年 菜鸟教程. All rights reserved.//# define PAI 3.1415926#...

  • 画图,综合例子2。(在TC中实现)。 日期:2022-06-22 点击:912 C语言精选100例

    C 练习实例60 题目: 画图,综合例子2。(在TC中实现)。 程序分析: 无。 程序源代码: // Created by www.runoob.com on 15/11/9.// Copyright © 2015年 菜鸟教程. All rights reserved.//#include "graphics.h"#...

  • 打印出杨辉三角形(要求打印出10行)。 日期:2022-06-22 点击:1289 C语言精选100例

    C 练习实例61 - 杨辉三角形 题目: 打印出杨辉三角形(要求打印出10行)。 程序分析: 结构如下所示: 11 11 2 11 3 3 11 4 6 4 1 实例 // Created by www.dida100.com on 15/11/9.// Copyright © 2015年 滴答编...

  • 学习putpixel画点,(在TC中实现)。 日期:2022-06-22 点击:529 C语言精选100例

    C 练习实例62 题目: 学习putpixel画点,(在TC中实现)。 程序分析: 无。 程序源代码: // Created by www.runoob.com on 15/11/9.// Copyright © 2015年 菜鸟教程. All rights reserved.//#include "stdio.h"#inclu...

  • 利用ellipse and rectangle 画图(在TC中实现)。 日期:2022-06-22 点击:1374 C语言精选100例

    C 练习实例64 题目: 利用ellipse and rectangle 画图(在TC中实现)。 程序分析: 无。 程序源代码: // Created by www.runoob.com on 15/11/9.// Copyright © 2015年 菜鸟教程. All rights reserved.//#include "std...