光立方程序详解_C ++程序使用宏查找数字的立方

光立方程序详解

Also Read: C++ program to swap two numbers using macros
Also Read: C++ Program to find cube of a number using function

#include<iostream.h>
#include<conio.h>

#define CUBE(x) (x*x*x)

void main()
{
clrscr();
int n,cube;
cout<<“Enter a number:”;
cin>>n;

cube=CUBE(n);
cout<<“Cube=”<<cube;
getch();
}

Also Read: C++ program to swap two numbers using macros
Also Read: C++ Program to find cube of a number using function

#include<iostream.h>
#include<conio.h>

#define CUBE (x) (x*x*x)

void main()
{
clrscr();
int n,cube;
cout<<“Enter a number:”;
cin>>n;

cube=CUBE(n);
cout<<“Cube=”<<cube;
getch();
}

翻译自: https://www.thecrazyprogrammer.com/2013/06/c-program-to-find-cube-of-number-using.html

光立方程序详解

很好用光立方程序#include"3d8.h" #include<reg52.h> #include<intrins.h> #define CHAR_NUM 34 uchar code table[CHAR_NUM][8] = {{0xA1,0x3E,0x01,0x81,0x85,0xBD,0xC1,0x01}, //1 辽 {0x04,0x44,0x44,0x7C,0x44,0x44,0x04,0x00}, //2 工 {0x22,0x24,0x28,0xF0,0x28,0x24,0x22,0x02}, //3 大 {0x00,0xFE,0x92,0x92,0x92,0x82,0x82,0x00}, //4 E {0x00,0x00,0x63,0x85,0x89,0x91,0x63,0x00}, //5 2 {0x00,0x10,0x10,0x10,0x10,0x10,0x10,0x00}, //6 - {0x00,0x0C,0x34,0x44,0xFF,0x04,0x04,0x00}, //7 4 {0x00,0x7E,0x81,0x81,0x81,0x81,0x7E,0x00}, //8 0 {0x00,0x81,0x91,0x91,0x91,0x91,0x7E,0x00}, //9 3 {0x11,0x52,0x54,0x78,0x54,0x52,0x11,0x01}, //10 天 {0x11,0x52,0x54,0x78,0x54,0x52,0x11,0x01}, //11 天 {0x11,0x52,0x7C,0x50,0x7F,0x50,0x10,0x00}, //12 开 {0x38,0x7C,0x3E,0x3F,0x3E,0x7C,0x38,0x00}, //13 心 {0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}, //14 {0x00,0x7E,0x81,0x81,0x81,0x89,0x4E,0x08}, //15 G {0x00,0x7E,0x81,0x81,0x81,0x81,0x7E,0x00}, //16 O {0x00,0x7E,0x81,0x81,0x81,0x81,0x7E,0x00}, //17 O {0x00,0xFF,0x81,0x81,0x81,0x42,0x3C,0x00}, //18 D {0x00,0x10,0x10,0x10,0x10,0x10,0x10,0x00}, //19 - {0x00,0xFF,0x01,0x01,0x01,0x01,0x01,0x00}, //20 L {0x00,0xFE,0x01,0x01,0x01,0x01,0xFE,0x00}, //21 U {0x00,0x7E,0x81,0x81,0x81,0x42,0x00,0x00}, //22 C {0x00,0xFF,0x10,0x28,0x44,0x82,0x00,0x00}, //23 K {0x00,0x00,0x70,0xFD,0x70,0x00,0x00,0x00}, //24 ! {0x00,0xFF,0x01,0x01,0x01,0x01,0x01,0x00}, //25 L {0x00,0xFF,0x91,0x91,0x91,0x91,0x81,0x00}, //26 E {0x00,0xFF,0x81,0x81,0x81,0x42,0x3C,0x00}, //27 D {0x00,0x10,0x10,0x10,0x10,0x10,0x10,0x00}, //28 - {0x00,0x62,0x91,0x89,0x89,0x46,0x00,0x00}, //29 S {0x00,0x7E,0x81,0x81,0x81,0x42,0x00,0x00}, //30 C {0x00,0x7F,0x88,0x88,0x8C,0x72,0x01,0x00}, //31 R {0x00,0xFF,0x91,0x91,0x91,0x91,0x81,0x00}, //32 E {0x00,0xFF,0x91,0x91,0x91,0x91,0x81,0x00}, //33 E {0x00,0xFF,0x40,0x30,0x0C,0x02,0xFF,0x00}};//34 N uchar code num_table[10][8] = { {0x00,0x7E,0x81,0x81,0x81,0x81,0x7E,0x00}, ///0 {0x00,0x01,0x41,0xFF,0xFF,0x01,0x01,0x00}, ///1 {0x00,0x00,0x63,0x85,0x89,0x91,0x63,0x00}, ///2 {0x00,0x81,0x91,0x91,0x91,0x91,0x7E,0x00}, ///3 {0x00,0x0C,0x34,0x44,0xFF,0x04,0x04,0x00}, ///4 {0x00,0xE2,0x91,0x91,0x91,0x91,0x8E,0x00}, ///5 {0x00,0x7E,0x91,0x91,0x91,0x91,0x4E,0x00}, ///6 {0x00,0xC0,0x80,0x8F,0x90,0xA0,0xC0,0x00}, ///7 {0x00,0x6E,0x91,0x91,0x91,0x91,0x6E,0x00}, ///8 {0x00,0x72,0x89,0x89,0x89,0x89,0x7E,0x00} ///9 }; uchar code love_table[4][8]= { {0x00,0xFF,0x01,0x01,0x01,0x01,0x01,0x00},//L {0x38,0x44,0x42,0x21,0x42,0x44,0x38,0x00},//O {0x00,0x7C,0x02,0x01,0x01,0x02,0x7C,0x00},//V {0x00,0xFF,0x91,0x91,0x91,0x91,0x81,0x00},//E }; uchar code heart_table[2][8]= { {0x38,0x7C,0x3E,0x3F,0x3E,0x7C,0x38,0x00}, {0x00,0x18,0x3C,0x1E,0x3C,0x18,0x00,0x00},//心形码
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值