第一次写,结果被这个示错堵了很久好像改哪里都不行……
零基础大学编程未入门,求诸位赐教!感激不尽!
示错:1> 试图匹配参数列表“(std::istream, const char [9])”时
#include <iostream>
using namespace std;
int main()
{
int x1,x2;
unsigned y;
char c1,c2;
x1=65535;x2=x1+5;
c1=97;c2='A';
c2=c2+31;
y=y+15;
cin>>"enter y:">>y;
cout<<"x1="<<x1;
cout<<"x2="<<x2;
cout<<"y="<<y;
cout<<"c1="<<c1;
cout<<"c2="<<c2;
return 0;
}
零基础大学编程未入门,求诸位赐教!感激不尽!
示错:1> 试图匹配参数列表“(std::istream, const char [9])”时
#include <iostream>
using namespace std;
int main()
{
int x1,x2;
unsigned y;
char c1,c2;
x1=65535;x2=x1+5;
c1=97;c2='A';
c2=c2+31;
y=y+15;
cin>>"enter y:">>y;
cout<<"x1="<<x1;
cout<<"x2="<<x2;
cout<<"y="<<y;
cout<<"c1="<<c1;
cout<<"c2="<<c2;
return 0;
}