Testing Forum

Would you like to react to this message? Create an account in a few clicks or log in to continue.

3 posters

    someone, help me!!

    lousykoi
    lousykoi
    Moderator
    Moderator


    Posts : 134
    Join date : 2008-04-02
    Age : 37
    Location : ...

    Character sheet
    Score:
    someone, help me!! Left_bar_bleue51/100someone, help me!! Empty_bar_bleue  (51/100)

    someone, help me!! Empty someone, help me!!

    Post by lousykoi Fri Apr 04, 2008 11:50 pm

    anyone to help me on how to use a vector???
    in my assignment, i am required to use vector instead of array to store the information about my input file stream...
    anyone????
    GeneratoR
    GeneratoR
    Administrator
    Administrator


    Posts : 103
    Join date : 2008-04-02
    Age : 39
    Location : Away for Final Exam

    Character sheet
    Score:
    someone, help me!! Left_bar_bleue100/100someone, help me!! Empty_bar_bleue  (100/100)

    someone, help me!! Empty Re: someone, help me!!

    Post by GeneratoR Sat Apr 05, 2008 12:33 am

    lousykoi wrote:anyone to help me on how to use a vector???
    in my assignment, i am required to use vector instead of array to store the information about my input file stream...
    anyone????

    Declaration (e.g int):
    int anArray[5]; //array
    vector aVector; //vector


    Value Assignment:
    //for Array
    anArray[0] = 10;
    anArray[1] = 20;
    //for vector
    aVector.push_back(10);
    aVactor.push_back(20);


    Value Access for Print in screen (basically is the same):
    cout << anArray[0]; //for array
    cout << aVector[0] //for vector



    those are simple theory about vector compare with array...
    you can read and understand more from here :
    http://www.cplusplus.com/reference/stl/vector/
    lousykoi
    lousykoi
    Moderator
    Moderator


    Posts : 134
    Join date : 2008-04-02
    Age : 37
    Location : ...

    Character sheet
    Score:
    someone, help me!! Left_bar_bleue51/100someone, help me!! Empty_bar_bleue  (51/100)

    someone, help me!! Empty Re: someone, help me!!

    Post by lousykoi Sat Apr 05, 2008 11:32 pm

    woaaa....
    dun understand...nvm, i'll gather de MSD students on tuesday 2 help me in de assignment...coz have 2 submit on thursday eee...n i haven touched at all...DYING! Crying or Very sad
    Cruella_DeVille
    Cruella_DeVille
    Moderator
    Moderator


    Posts : 48
    Join date : 2008-04-02
    Age : 37
    Location : Somewhere over the rainbow

    someone, help me!! Empty Re: someone, help me!!

    Post by Cruella_DeVille Sun Apr 06, 2008 1:13 am

    bulak! tongue
    lousykoi
    lousykoi
    Moderator
    Moderator


    Posts : 134
    Join date : 2008-04-02
    Age : 37
    Location : ...

    Character sheet
    Score:
    someone, help me!! Left_bar_bleue51/100someone, help me!! Empty_bar_bleue  (51/100)

    someone, help me!! Empty Re: someone, help me!!

    Post by lousykoi Sun Apr 06, 2008 1:54 pm

    =.=""" Neutral
    GeneratoR
    GeneratoR
    Administrator
    Administrator


    Posts : 103
    Join date : 2008-04-02
    Age : 39
    Location : Away for Final Exam

    Character sheet
    Score:
    someone, help me!! Left_bar_bleue100/100someone, help me!! Empty_bar_bleue  (100/100)

    someone, help me!! Empty Re: someone, help me!!

    Post by GeneratoR Sun Apr 06, 2008 4:25 pm

    so sad that not helping you...
    lousykoi
    lousykoi
    Moderator
    Moderator


    Posts : 134
    Join date : 2008-04-02
    Age : 37
    Location : ...

    Character sheet
    Score:
    someone, help me!! Left_bar_bleue51/100someone, help me!! Empty_bar_bleue  (51/100)

    someone, help me!! Empty Re: someone, help me!!

    Post by lousykoi Sun Apr 06, 2008 9:49 pm

    nvm...u can help me on tuesday.. Laughing Cool

    Sponsored content


    someone, help me!! Empty Re: someone, help me!!

    Post by Sponsored content


      Current date/time is Fri Nov 01, 2024 9:31 am