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

26th Aug 2019, 4:18 AM
Nouman Bin Sami
Nouman Bin Sami - avatar
3 Respuestas
+ 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...
26th Aug 2019, 4:56 AM
BroFar
BroFar - avatar
0
BroFarOps How many total keywords are there in c++
26th Aug 2019, 10:50 AM
Nouman Bin Sami
Nouman Bin Sami - avatar
26th Aug 2019, 1:43 PM
BroFar
BroFar - avatar