📄 constag.cpp
字号:
//: C08:Constag.cpp
// From Thinking in C++, 2nd Edition
// Available at http://www.BruceEckel.com
// (c) Bruce Eckel 2000
// Copyright notice in Copyright.txt
// Constants and aggregates
#include <iostream>
using namespace std;
const int i[] = { 1, 2, 3, 4 };
cout<<i[0];
float f[i[3]]; // Illegal
struct S
{
int i, j;
};
const S s[] = { { 1, 2 }, { 3, 4 } };
//! double d[s[1].j]; // Illegal
void main()
{
const int i=10;
int array[i];
} ///:~
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -