intro33.cpp

来自「hello everybody. good lucky to you」· C++ 代码 · 共 19 行

CPP
19
字号
//INTRO33.CPP--Example from Chapter 3, "An Introduction to C++"

#include <iostream.h>

int main()
{
   int intvar = 10;
   int *intptr;
   intptr = &intvar;

	cout << "\nLocation of intvar: " << &intvar;
	cout << "\nContents of intvar: " << intvar;
	cout << "\nLocation of intptr: " << &intptr;
	cout << "\nContents of intptr: " << intptr;
	cout << "\nThe value that intptr points to: " << *intptr;

   return 0;
} 

⌨️ 快捷键说明

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