anonymous
2011-03-20 12:52:25 UTC
This is a piece from my program...
i got an error when i want to declare Special array with integer data type...
* Message Error :
1. Non-Constant expression as array bound
2. '=' cannot convert from 'int [*][1]' to 'int'
#include
#include
#include
char *Entry, Letter, Choice[2];
int Ascii, len, Binary[8], Total;
void Convert();
int j = 0;
int Special;
void main()
{
Convert();
//return 0;
}
void Convert()
{
Entry = new char[501];
cout << "Enter Text To Convert(Up To 500 Chars): ";
cin.getline(Entry, 500);
len = strlen(Entry);
Special = new int[8][len];
}