array *meep*

This is a discussion on array *meep* within the C++ Programming forums, part of the General Programming Boards category; How do i make an array like this: {"help","me","i","can","only","program","in","qbas ic"};...

  1. #1
    Mmm. Purple.
    Join Date
    May 2002
    Posts
    154

    array *meep*

    How do i make an array like this:
    {"help","me","i","can","only","program","in","qbas ic"};

  2. #2
    S Sang-drax's Avatar
    Join Date
    May 2002
    Location
    Göteborg, Sweden
    Posts
    2,072

    Re: array *meep*

    Originally posted by krappykoder
    How do i make an array like this:
    {"help","me","i","can","only","program","in","qbas ic"};
    string arr[] = {"help","me","i","can","only","program","in","c++" };
    Last edited by Sang-drax : Tomorrow at 02:21 AM. Reason: Time travelling

  3. #3
    Skunkmeister Stoned_Coder's Avatar
    Join Date
    Aug 2001
    Posts
    2,572
    std::string WordArray[] = {"help","me","I","can","only","program","in","qbas ic"};
    Free the weed!! Class B to class C is not good enough!!
    And the FAQ is here :- http://faq.cprogramming.com/cgi-bin/smartfaq.cgi

  4. #4
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    Code:
    const char* Words[] = {"help","me","i","can","only","program","in","c++"};
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 16
    Last Post: 05-29-2009, 07:25 PM
  2. Replies: 6
    Last Post: 11-09-2006, 02:28 AM
  3. [question]Analyzing data in a two-dimensional array
    By burbose in forum C Programming
    Replies: 2
    Last Post: 06-13-2005, 07:31 AM
  4. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  5. Quick question about SIGSEGV
    By Cikotic in forum C Programming
    Replies: 30
    Last Post: 07-01-2004, 07:48 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21