IT入门 > 实战案例 >
  • 宏#define命令练习3。 日期:2022-06-22 点击:1370 C语言精选100例

    C 练习实例48 题目: 宏#define命令练习3。 程序分析: 无。 程序源代码: // Created by www.runoob.com on 15/11/9.// Copyright © 2015年 菜鸟教程. All rights reserved.//#define LAG #define SMA #define EQ ==#includ...

  • #if #ifdef和#ifndef的综合应用。 日期:2022-06-22 点击:1358 C语言精选100例

    C 练习实例49 题目: #if #ifdef和#ifndef的综合应用。 程序分析: 无。 程序源代码: // Created by www.runoob.com on 15/11/9.// Copyright © 2015年 菜鸟教程. All rights reserved.//#includestdio.h#define MAX#defin...

  • 学习使用按位与 &。 日期:2022-06-22 点击:966 C语言精选100例

    C 练习实例51 题目: 学习使用按位与 。 程序分析: 00=0; 01=0; 10=0; 11=1 。 程序源代码: // Created by www.runoob.com on 15/11/9.// Copyright © 2015年 菜鸟教程. All rights reserved.//#include stdio.hint main(...

  • 学习使用按位或 |。 日期:2022-06-22 点击:850 C语言精选100例

    C 练习实例52 题目: 学习使用按位或 |。 程序分析: 0|0=0; 0|1=1; 1|0=1; 1|1=1 。 程序源代码: // Created by www.runoob.com on 15/11/9.// Copyright © 2015年 菜鸟教程. All rights reserved.//#includestdio.hint m...

  • 学习使用按位异或 ^。 日期:2022-06-22 点击:1278 C语言精选100例

    C 练习实例53 题目: 学习使用按位异或 ^。 程序分析: 0^0=0; 0^1=1; 1^0=1; 1^1=0 。 程序源代码: // Created by www.runoob.com on 15/11/9.// Copyright © 2015年 菜鸟教程. All rights reserved.//#include stdio.hi...

  • 学习使用按位取反~。 日期: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 点击:1601 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 点击:1193 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 点击:733 C语言精选100例

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