I'm having some problems with this map I set-up. I'm checking "data" for any matches against the strings in mymap. The map in a seperate header which is called from another header. In any case I'm getting these errors. on the "mymap" line I get "this declaration has no storage class or type specifier. On the "map"portion I get initialization with'{,,,}' exprcted for aggregate object. And finally on the "for" I get "expected a declration". I'm using Visual Studio 2010 and Windows 7. Here is the code......
#include <stdio.h>
#include <iostream>
#include <map>
using namespace std;
void printContent(int)
map <int,string> mymap;
int i;
mymap [1]="audio/basic";
mymap [2]="audio/x-aiff";
mymap [3]="audio/x-wav";
mymap [4]="audio/x-mpeg";
mymap [5]="audio/x-mpeg-2";
for i=0 to map.count-1
  {
      char s= strstr(data, map[i])
      if s != NULL; // you found a match
      {
          return 1;
      }
      {
      else // keep looping
      }    
      return 0;
  }
 
     
     
    