Raised This Month: $ Target: $400
 0% 

simple help c++


Post New Thread Closed Thread   
 
Thread Tools Display Modes
Author Message
capostrike93
Veteran Member
Join Date: Feb 2009
Location: adios y??
Old 05-09-2010 , 18:46   simple help c++
#1

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 


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

__________________

Last edited by capostrike93; 05-09-2010 at 18:52.
capostrike93 is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 05-09-2010 , 19:14   Re: simple help c++
#2

This has nothing to do with AMXX Scripting.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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