Raised This Month: $ Target: $400
 0% 

simple help c++


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 


Thread Tools
Display Modes

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