高手们都进一下,来看一下我的itoa
#include <iostream>#include <stdlib.h>
using namespace std;
int main()
{
int i[50],t[50],j;
char a[50];
cout << "请输入50个以内的数字,每输入完一个后按回车:\n";
for(j=0;j<=49;j++)
{
cin >> i[j];
char*itoa(i[j],char*a[j],2);
}
return 0;
}
--------------------Configuration: ten2two - Win32 Debug--------------------
Compiling...
ten2two.cpp
E:\Program Files\Microsoft Visual Studio\MyProjects\CPP02\ten2two\ten2two.cpp(14) : error C2061: syntax error : identifier 'i'
Error executing cl.exe.
ten2two.exe - 1 error(s), 0 warning(s)
你们看看怎么写啊