Jump to content


Photo

Chars in c++


  • Please log in to reply
3 replies to this topic

#1 liveman

liveman

    Young Padawan

  • Members
  • Pip
  • 246 posts
  • Location:New Jersey

Posted 29 September 2005 - 05:42 AM

I am really new to c++, however I am playing with it and would like to no how do I make a variable so it can be text. Like I know 'int' means whole number, but what is Character?

#2 PSgirl

PSgirl

    P2L Staff

  • P2L Staff
  • PipPipPipPip
  • 2,056 posts
  • Gender:Female

Posted 29 September 2005 - 06:12 AM

I think you could use an string variable, or a char vector.
If u use the string, don't forget the #include <string>
Hope it helps :D

#3 liveman

liveman

    Young Padawan

  • Members
  • Pip
  • 246 posts
  • Location:New Jersey

Posted 30 September 2005 - 01:05 PM

Yeah, thanks it worked great! Now I just gotta create the visuals and I will have my first c++ program done..even though its crappy :popcorn:

#4 PSgirl

PSgirl

    P2L Staff

  • P2L Staff
  • PipPipPipPip
  • 2,056 posts
  • Gender:Female

Posted 01 October 2005 - 03:27 PM

Glad to help :)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users