Is there a way to have a variable store full phrases?

This is a discussion on Is there a way to have a variable store full phrases? within the C++ Programming forums, part of the General Programming Boards category; Like the title says... Is there a way to make a variable store full phrases? I am trying to make ...

  1. #1
    Your imaginary friend
    Join Date
    Jan 2010
    Location
    Canada
    Posts
    75

    Question Is there a way to have a variable store full phrases?

    Like the title says...
    Is there a way to make a variable store full phrases?

    I am trying to make a very simple "post maker" for a home made primitive forum

  2. #2
    and the hat of sweating
    Join Date
    Aug 2007
    Location
    Toronto, ON
    Posts
    3,545
    You mean like:
    Code:
    std::string phrase = "once upon a time...";
    "I am probably the laziest programmer on the planet, a fact with which anyone who has ever seen my code will agree." - esbo, 11/15/2008

    "the internet is a scary place to be thats why i dont use it much." - billet, 03/17/2010

  3. #3
    Your imaginary friend
    Join Date
    Jan 2010
    Location
    Canada
    Posts
    75

    Lightbulb

    I know I had forgoten a variable type!!!
    I tested with the float char variables, thanks for the answer.
    Will try that

    EDIT: Test
    [spoiler]Hello[/spoiler]
    Test to see if this forum has the "spoiler" BBCode enabled

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Extract values and store in new variable
    By cosmiccomputing in forum C Programming
    Replies: 3
    Last Post: 06-01-2008, 01:45 PM
  2. Operator Precedence?
    By cpjust in forum C++ Programming
    Replies: 53
    Last Post: 05-04-2008, 06:43 PM
  3. Question about printing a variable???
    By Hoser83 in forum C++ Programming
    Replies: 2
    Last Post: 03-31-2006, 12:57 PM
  4. Use of variable
    By alice in forum C Programming
    Replies: 8
    Last Post: 06-05-2004, 07:32 AM
  5. Im so lost at . .
    By hermit in forum C Programming
    Replies: 18
    Last Post: 05-15-2002, 01:26 AM

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