i created a scanner code using flex++
but when i compile that code it give me lots of error like:

In member function `void yyFlexLexer::yy_load_buffer_state()':
In member function `void yyFlexLexer::yy_init_buffer(yy_buffer_state*, std::istream*)':
In member function `virtual int yyFlexLexer::yylex()':
and others

please help me out

These messages are useless, what are the "error" messages? the "in member.." just tells you where the erroneous code was called from. You should have later on some messages saying "error" and giving the file and line, e.g. "my_header.h(42)" for an error in my_header.h at line 42.

Generally, you should literally copy-paste the error messages and Google them, and you will find solutions for your problems.

flex++ is not a c++ compiler. So anything you post in this forum about flex++ is useuess.

The errors were caused by the C++ code that the original poster wrote, which is intermingled inside the output of flex++, so C++ would still be the appropriate forum.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.