Bit、Byte、M、G (比特和字节 重点)
认识电脑中的计算器 calc
字与字节的关系
区位码、国标码、机内码
点阵及点阵屏(胸牌)
16*16点阵汉字输出
ASCII
实例(如何判断字符是数字,字母,大写字母还是小写字母)
void shiftleft()
{
int a = 10;
int b = a << 0;
cout << "a =" << a << endl;
cout << "a << 0=" << b << endl;
b = a << 1;
cout << "a << 1=" << b << endl;
b = a << 2;
cout << "a << 2=" << b << endl;
b = a << 3;
cout << "a << 3=" << b << endl;
b = a << 4;
cout << "a << 4=" << b << endl;
b = a << 5;
cout << "a << 5=" << b << endl;
b = a << 6;
cout << "a << 6=" << b << endl;
}
void testbool()
{
int a1 = 765; //int a1=765,b1=78;
int b1 = 78;
bool hu = (a1 > b1);
if (hu)
{
cout << "对" << endl;
}
else
{
cout << "错" << endl;
}
}
void oliver(void); //向前申明 或者 说明
int threeIntAdd(int a, int b,int c )
{
int sum = a + b ;
return sum;
}
int main()
{
testbool();
shiftleft();
oliver();
int a1, b, c;
int b2,c2;
cin >> a1;
cin >> b;
cin >> c;
int sum = threeIntAdd(a1, b, c);
cout << "sum: " << sum << endl;
return 0;
}
void oliver(void)
{
int q = 1024;
int w = q >> 10;
cout << w << endl;
}
页面更新:2024-04-14
本站资料均由网友自行发布提供,仅用于学习交流。如有版权问题,请与我联系,QQ:4156828
© CopyRight 2020-2024 All Rights Reserved. Powered By 71396.com 闽ICP备11008920号-4
闽公网安备35020302034903号