|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
Can anyone tell me the equivalant of the c++ equivalant to the cgi dynamic arrays like: $my_array = ( 'my_key' => "$my_value", 'another' => "$two" ); (Yes, i know c++ doesn't use the dollar sign), but this would be extremely useful. (vector.h?) thanks
|
|
|
|
Joined: Aug 2000
Posts: 874
Moderator / Developer
|
Moderator / Developer
Joined: Aug 2000
Posts: 874 |
hashtable. been a while, but that what it is in most languages.
|
|
|
|
Joined: May 2001
Posts: 1,042 Likes: 7
Moderator
|
Moderator
Joined: May 2001
Posts: 1,042 Likes: 7 |
Could you give an example please? I've tried everything. I keep getting syntax or not an lvalue errors when i try everyway i could. The best i came up with was this:
float *my_array[] = {1,2,3,4};
But i need those values to equal a value.
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 70
Joined: January 2007
|
|
Forums63
Topics37,573
Posts293,925
Members13,849
|
Most Online5,166 Sep 15th, 2019
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|