[an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive] (none) [an error occurred while processing this directive] [an error occurred while processing this directive] [an error occurred while processing this directive][an error occurred while processing this directive]
 
[an error occurred while processing this directive] [an error occurred while processing this directive]
Skåne Sjælland Linux User Group - http://www.sslug.dk Home   Subscribe   Mail Archive   Forum   Calendar   Search
MhonArc Date: [Date Prev] [Date Index] [Date Next]   Thread: [Date Prev] [Thread Index] [Date Next]   MhonArc
 

Re: [CPROG] Hash tabel - erklæring og initialisering ??



At 14:08 06-11-00 +0100, I wrote:
>At 18:39 05-11-00 +0100, Lamer wrote:
[snip]

Jeg glemte at skrive hvordan man arbejdede med ordbøger (maps) i C++. Jeg
antager her at du vil lave et map, som indeholder strenge:

	#include <string>
	#include <map>
	#include <iostream>

	int main(int argc, char **argv) {
		map<string> stringMap;
		stringMap ["navn"] = new string("Per Vognsen");
		stringMap ["job"] = new string("systemudvikler");
		cout << "Navn: " << stringMap ["navn"] << endl;
		cout << "Job: " << stringMap ["job"] << endl;
		return 0;
	}

Med venlig hilsen
Per Vognsen



 
Home   Subscribe   Mail Archive   Index   Calendar   Search

 
 
Questions about the web-pages to <www_admin>. Last modified 2005-08-10, 20:08 CEST [an error occurred while processing this directive]
This page is maintained by [an error occurred while processing this directive]MHonArc [an error occurred while processing this directive] # [an error occurred while processing this directive] *