C#语言的高手帮忙改下题

来源:百度知道 编辑:UC知道 时间:2024/05/12 18:16:19
#include<iostream.h>
int main()
{int*p,a;
*p=9;
cout<<the valueout p:<<*p
}

#include<iostream.h>
using namespace std;//这
int main()
{int*p,a;
*p=9;
cout<<"the valueout p:"<<*p ;//这缺分号,双引号
return 0;//既然返回值是int,就要return
}

倒数第二行少了个分号“;”

#include<iostream.h>
int main()
{int*p,a;
*p=9;
cout<<the valueout p:<<*p

return a;

}

这不是C#问题,是C++,主要问题存在于cout<<the valueout p:<<*p ,请改为:
cout<<"the valueout p:"<<*p ;