array and string

c++ array and string

Page 1 of 1

3 Replies - 988 Views - Last Post: 12 May 2009 - 03:28 AM Rate Topic: -----

#1 fasi  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 11-May 09

array and string

Post icon  Posted 11 May 2009 - 07:04 AM

hi any one can help me to learn c++.
i don't know too much about it ,but i m trying i have problem in array and string .

what is difference between string and array.and how to use them .

i will wait your answer ,
ok
Is This A Good Question/Topic? 0
  • +

Replies To: array and string

#2 Ostralis  Icon User is offline

  • #include <greeter>
  • member icon

Reputation: 9
  • View blog
  • Posts: 559
  • Joined: 13-December 08

Re: array and string

Posted 11 May 2009 - 09:14 AM

Whoops, looks like you've got the wrong forum. Either way, welcome to Dream.In.Code! I hope you enjoy your stay here and solve your problem. There are lots of knowledgeable experts in the field of C++, and they'll be willing to help you out. Good luck and see you around!
Was This Post Helpful? 0
  • +
  • -

#3 RBSprogram101  Icon User is offline

  • New D.I.C Head

Reputation: 3
  • View blog
  • Posts: 38
  • Joined: 28-March 09

Re: array and string

Posted 11 May 2009 - 05:46 PM

View Postfasi, on 11 May, 2009 - 06:04 AM, said:

hi any one can help me to learn c++.
i don't know too much about it ,but i m trying i have problem in array and string .

what is difference between string and array.and how to use them .

i will wait your answer ,
ok



what do mean?

like char str[20] and string name.

str is a C-string and name is a string object.
Was This Post Helpful? 0
  • +
  • -

#4 janotte  Icon User is offline

  • code > sword
  • member icon

Reputation: 988
  • View blog
  • Posts: 5,135
  • Joined: 28-September 06

Re: array and string

Posted 12 May 2009 - 03:28 AM

A C++ string is an object of the string class
http://www.cplusplus...rial/variables/

A C-style string is an array of characters.
http://www.cprogramm...al/lesson9.html
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1