#include
using namespace std;
int getHighest(int[], int); //最高分
int main()
{
const int NUM_STU= 5;
int array[NUM_STU],
max;
cout<< "请输入5个整数: \n";
for(int i=0; i < NUM_STU; i++)
{
cin>> array[i];
}
max= getHighest(array, NUM_STU);
cout<< "最大值是: "<
return 0;
}
int getHighest(int array[], int size)
{
int highest;
highest= array[0];
for(int count=1; count< size; count++)
{
if(array[count] > highest)
highest= array[count];
}
return highest;
}
我可以帮助你,你先设置我最佳答案后,我百度Hii教你。
#include
#include
using namespace std;
void main()
{
string a;
cin>>a;
cout<}
你那个编译器啊?vc中没问题
#include
#include
using namespace std;
void main()
{
string a;
cin>>a;
}
如何支持unicode