wap to find given string is a keyword or identifier

Recommended Answers

All 3 Replies

wap??? huh? speak engligh please

commented: Erm pot kettle black? ;p +7

Assuming you mean a C++ keyword, the list is short. Just store all of them in an array and do a lookup comparison.

store all the keywords in an chararray and the simply compare..........

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.