|
Understanding the Different Types of Variables/
Learn the Basics
Data
Types (variables)
The
Terminology
Declaring
Data Types and Using the Various Operators
Rules
for Naming Data Types
C++
Libraries
Rules for
Naming Data Types
Rules for Naming Variables
(Identifiers) in C++:
Must begin with an alphabetic character
May not contain spaces
Case sensitive (unlike VB)
Must contain only digits, letters and underscores
Cannot be a C++ reserved keywords. These are names that C++ uses for
certain commands and functions in C++. Here is a list of all the ISO
Standard C++ keywords:
| asm |
do |
if |
return |
typedef |
| auto |
double |
inline |
short |
dypeid |
| bool |
dynamic_cast |
int |
signed |
typename |
| break |
else |
long |
sizeof |
union |
| case |
enum |
mutable |
static |
unsigned |
| char |
explicit |
namespace |
static_cast |
using |
| catch |
export |
new |
struct |
virtual |
| class |
extern |
operator |
switch |
void |
| const |
false |
private |
template |
volatile |
| const_cast |
float |
protected |
this |
wchar_t |
| continue |
for |
public |
throw |
while |
| default |
friend |
register |
true |
|
| delete |
goto |
reinterpret_cast |
try |
|
{Go Back To C++ Lessons Page}
|