0
How to check either user enter a keyword or not in c\c++
How to know in c\c++ that user entered a keyword in other words a reserved word
3 Answers
+ 2
you would have to look up every reserved word and list of commands - enter it in an array and then have to let the user enter words randomly comparing them against the array ... if the word or command is there ok... otherwise flag as operational keyword not allowed or operational command not allowed...
0
BroFarOps How many total keywords are there in c++
0
This is a short list
https://en.cppreference.com/w/cpp/keyword