|
Free Educational Resource Center for teachers and students. Includes Interviews, Sourcecode, Free Software, Research Papers, Articles, Tutorials and much more.. |
R E S E A R C H A C T I V I T Y . C O M
Our Fellow Research Center for Ph.D Schollars |
|
| Home About Submit & Earn | Archives: C And C + + Programming » Dev Packages » Interviews » Php Mysql Programming » Windows Programming | |
|
C And C Plus Plus Programming > implementing associative arrays in c plus plus
Implementing associative arrays in C/C++ This article demonstrates using string/char* indexes in regular C array, e.g. myArray["age"]=10; We usually use numaric indexes in arrays with C and C++. But there can be another way of using C / C++ arrays like in PHP, e.g.
Isn’t it great ? I hope you would say offcourse! To do this we will be using C++ tempaltes programming.
A sample program would be:
|