2_2.cpp
来自「C++语言编的关于C++的数据抽象小程序」· C++ 代码 · 共 20 行
CPP
20 行
// 2_2.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
//size of struct
#include <stdio.h>
struct A
{
int i[100];
};
struct B
{
void x();
};
void main(void)
{
printf("size of struct A is %d\n", sizeof(A));
printf("size of struct B is %d\n", sizeof(B));
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?