ex:
struct
{
char *temp[500];
int *cnt;
}table;
how to use char *temp[500];
can briefly explain about Structures.
** Edit **




Posted 01 July 2008 - 01:37 AM
struct
{
char *temp[500];
int *cnt;
}table;
Posted 01 July 2008 - 01:42 AM
rajesh_strg, on 1 Jul, 2008 - 02:07 PM, said:
struct
{
char *temp[500];
int *cnt;
}table;
Posted 01 July 2008 - 07:47 AM
#include <iostream>
struct
{
char *temp[500];
int cnt;
}table;
int main() {
table * EXAMPLE;
cout << "How many arrays? ";
cin >> table->cnt;
table->temp=new char[cnt][500]
cout << "Structure Table now contains a multidimensional array with "
<< cnt
<< " arrays and 500 elements in each array, for a total of "
<< (cnt * 500)
<< " total elements. \nPress any key to exit. ";
system(pause>nul);
return 0;
delete[][] table->temp;
}
|
|
Query failed: connection to localhost:3312 failed (errno=111, msg=Connection refused).
|
