在VC++6.0中,怎样编写一个程序,实现输入多个汉字,输出其编码,求源代码

2025-05-21 13:11:40
推荐回答(4个)
回答1:

#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教你。

回答2:

#include
#include
using namespace std;
void main()
{
string a;
cin>>a;
cout<}

你那个编译器啊?vc中没问题

回答3:

#include
#include
using namespace std;
void main()
{
string a;
cin>>a;
}

回答4:

如何支持unicode