1. 定义字符串变量 和其他类型变量一样,字符串变量必须先定义后使用,定义字符串变量要用类名string。如 string string1; //定义string1为字符串变量 string string2=″China″; //定义string2同时对其初始化