passing

Basic question on passing references of HashMaps

Hi ! I have defined a HashMap which uses a double type key and another HashMap as value as shown HashMap<Double, HashMap<Double, String>> HM1 = new HashMap<Double, HashMap<Double, String>>(); Now for each entry of this HashMap I have a reference to a different HashMap; the name of which is derived from the key value of that entry in t...

Incompatible Pointer Type Error

Hey everyone, I am getting a compile error in my code, and I cannot figure out what to do. Here's the block: #include <stdio.h> #include <string.h> /* * Function to return index at which team ID input is stored */ int getIndex(char* id, char* idList[][50]) { int k; for (k=0; k<50; k++) { if (strcmp(id,idList[k])==0...