I have a private data member say (char *string1).
I wrote the following code.
for (char* temp=string1; *temp!='/0'; ++temp)
When I try to run this code I get an access violation error!
due to this *temp!='/0' part
so how am I suppose to go through a cstring??
Thanks



LinkBack URL
About LinkBacks



yeah yeah yeah... i was just trying to get it written fast... and since he can't figure out how to loop through a string, i'm guessing he's not too worried about speed for now...