: Group
:
: Using C++, is there a way to write code so that you can store a string of characters in a multi-dimensional array taken from the user? I recall a string copy function in C, but I can't figure out how to do this in C++.
:
: Sounds like a simple problem, but I want to store a name and a grade within this array. The trick I'm trying to do, is make one of the dimensions open to flex to the number of characters within the given name inputting by the user. (ie. name[5][*]) Total of five names, and the length is determined by the name.
:
: The complier is not letting me define an array like such, but they has to be a way. Any ideas?
:
: -=The Best Has Yet To Come=-
:
now i might be wrong here but it is not the rule that only
first dimension of the array can be left open. by that i mean
name[][3];//is right but
name[5][];// is wrong
to my knowledge these are the ways to define array
int *name;//is right
int *name[];//is rigt
int name[];//is right
int name[][3];//is right
int name[][3][3][3];//is right
int name[10][];//worng
int name[][20][];//wrong
int name[][][][10];//wrong
int name[][][][];wrong
int name[can be left empty][must be filled][must be filled][must be filled][everydimension after me must be filled also].....;