test.cpp

来自「a program that generates a pulse-width m」· C++ 代码 · 共 14 行

CPP
14
字号
// What size are common types in 32-bit console mode applications?
#include <iostream.h>
#include <stdlib.h>
#include <conio.h>

void main(void)
	{
   cout << "int " << sizeof(int) << " long " << sizeof(long) <<
   	" short " << sizeof(short) << " float " << sizeof(float) <<
      " double " << sizeof(double) << "\n";
   cout << "Hit any key to exit.\n";
   while(!kbhit()) ;  // Wait to exit
   }
   

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?