返回引用的函数:将函数用于赋值的左边
void类型指针:可以指向任一类型的C++对象,避免设计指针类型匹配的错误。将void类型的指针置给其它类型的指针时,必须使用强制类型转换。
指针和const关键字:
const int *p; int const *p
类型定义: typedef 类型名 新名(如:typedef int INTEGER)
串: 以’\0’结尾的字符数组。
可以声明为数组或者指针:
char * str = “new string”; char[] str = “new string”;
字符串操作函数:string.h
char *strcat( char *strDestination, const char *strSource );
char *strcpy( char *strDestination, const char *strSource );
int strcmp( const char *string1, const char *string2 );