(资料图片仅供参考)
1、char数组声明有问题。
2、将大括号改成中括号。
3、将charname{20};改为charname[20];整个程序为:#include"iostream"#include"cmath"#include"cstring"usingnamespacestd;intmain(void){charname[20];cout<<"Pleaseenteryourname"< 本文为大家分享到这里,希望小伙伴们有帮助。
(资料图片仅供参考)
1、char数组声明有问题。
2、将大括号改成中括号。
3、将charname{20};改为charname[20];整个程序为:#include"iostream"#include"cmath"#include"cstring"usingnamespacestd;intmain(void){charname[20];cout<<"Pleaseenteryourname"< 本文为大家分享到这里,希望小伙伴们有帮助。