wap to find given string is a keyword or identifier

Recommended Answers

wap??? huh? speak engligh please

Jump to Post

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 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.