am doing a project, in which the am loading cpp program into richtext box, one thing i want to do, when am loading the cpp program , if the program contain any type of comments, that shouldn't read into the richtextbox
comments like
1) //
2) /* asdasd
asfasf
*/
3)/*asfasfasf*/
so how to resolve this problem
thnks.
Avoid command line
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Zoran HorvatRank #792 · 2.9K reputationPosted Nov 28, 2010, 10:28 AM EST
Another (more general) option is to make a grammar and create parser for that grammar. That would require more knowledge and more work in this case.