All pastes #620974 Raw Edit

Array Error

public cpp v1 · immutable
·published 2007-07-15 21:15 UTC
rendered paste body
char* data [15];data = {"a", "x", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k"};//Error	1	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int//Error	2	error C2040: 'data' : 'int' differs in levels of indirection from 'char *[15]'//Error	3	error C2440: 'initializing' : cannot convert from 'const char [10]' to 'int'//Error	4	error C2078: too many initializersstd::string data2[15];data2[0] = "ERROR Array Index = 0";//Error	5	error C2466: cannot allocate an array of constant size 0//Error	6	error C4430: missing type specifier - int assumed. Note: C++ does not support default-int//Error	7	error C2371: 'data2' : redefinition; different basic types//Error	8	error C2440: 'initializing' : cannot convert from 'const char [22]' to 'int []'