A
Allen Maki
Hi everybody,
Thanks for your suppoty.
//Why I got the following error message? for the 4th line:
// error C2440: '=' : cannot convert from
//'long (*)[3]' to 'long *' Types pointed
//to are unrelated; conversion requires
// reinterpret_cast, C-style cast or
//function-style cast
#include <iostream>
using namespace std;
int main()
{
const int max = 4; //(1)
const int max2 = 3; //(2)
long *pprime; //(3)
pprime = new long[max][max2]; //(4)
return 0;
}
Thanks for your suppoty.
//Why I got the following error message? for the 4th line:
// error C2440: '=' : cannot convert from
//'long (*)[3]' to 'long *' Types pointed
//to are unrelated; conversion requires
// reinterpret_cast, C-style cast or
//function-style cast
#include <iostream>
using namespace std;
int main()
{
const int max = 4; //(1)
const int max2 = 3; //(2)
long *pprime; //(3)
pprime = new long[max][max2]; //(4)
return 0;
}