C语言无string型。C++string是类(class),也不是变量类型。C语言字符型用char型.int型转化为char型用sprintf:例如:intx=1234;charstr[35];sprintf("str,"%d",x);。
微信扫码关注公众号
获取更多考试热门资料