I'm doing something in c + +, and I did this code in one part ..
the problem is that I am somewhat confused as check whether a character is equal to "
PHP Code:
int i;
static char string[30];
char *a = ...// char is = asd asd nmk "a" asf wow
bool more = false;
for ( i = 0; i < 30; i++ )
{
if(more)
{
if *a is " // ??
{
string[i] = 0;
break;
}
}
if *a is " // ??
{
string[i] = *++a;
*a++;
more = true;
}
else string[i] = *a++;
}
return &string[0]; // return = a
I think it is very simple but I can not think how .. I'm new to c++
__________________