AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   simple help c++ (https://forums.alliedmods.net/showthread.php?t=126482)

capostrike93 05-09-2010 18:46

simple help c++
 
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 *= ...// char is = asd asd nmk "a" asf wow

    
bool more false;

    for ( 
030i++ )
    {
            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 

:oops:

I think it is very simple but I can not think how .. I'm new to c++

:oops:

Exolent[jNr] 05-09-2010 19:14

Re: simple help c++
 
This has nothing to do with AMXX Scripting.


All times are GMT -4. The time now is 03:37.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.