std::map<char*,std::set><char*>> nfa; Is this declaration of map wrong.

Hi all,

#include <set>

#include <map>

using namespace std;

void main()

{

std::map<char*,std::set><char*>> nfa;

}

on compling this file VC++ IDE i am getting the following errors

error C2146: syntax error : missing ',' before identifier 'nfa'

error C2065: 'nfa' : undeclared identifier

error C2143: syntax error : missing '>' before ';'

can anyone plz clariify on this. its very urgent

thanks

[516 byte] By [get_to_know] at [2007-11-26 9:55:36]
# 1

> Hi all,

> #include <set>

> #include <map>

> using namespace std;

> void main()

> {

>

> std::map<char*,std::set><char*>> nfa;

> }

>

> on compling this file VC++ IDE i am getting the

> following errors

>

> error C2146: syntax error : missing ',' before

> identifier 'nfa'

> error C2065: 'nfa' : undeclared identifier

> error C2143: syntax error : missing '>' before ';'

>

> can anyone plz clariify on this. its very urgent

>

> thanks

hey sorry the

get_to_know at 2007-7-7 1:16:36 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2
You need a space between the two >> characters.
clamage45 at 2007-7-7 1:16:36 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 3
Until Sun C++ implements the next C++ standard (or at least N1757): http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2005/n1757.html
sebor@roguewavecom at 2007-7-7 1:16:36 > top of Java-index,Development Tools,Solaris and Linux Development Tools...