Hey I was wondering if anybody could help me with what is probably a very simple problem.
I am trying to read thru an array that i read from a file XXXXX.cpp
and I'm trying to remove anything that is a comment
and I have removed // comments but i cant remove * comments.
if (array[i+1] =='*')
while (array[i] != '*' && array[i+m1] != '')
array[i] = ' ';
this is a small part of my function where it removes the comment by deleting everything between * and *.
and i get a problem where the '' brings about a unterminated character constant i was wondering if anybody new either a way around this or a better way of doing this.