+ 4
what is string😯
11 Answers
+ 7
MI NO Your question is a string
character - a letter or symbol ex: ' c '
string - a word or array of characters ex: ' example '
+ 10
Example:
Character = 'a', 'B', 'z', 'x', 'o'
String = "Hello, nice to meet you"
So character is using ' ' and string using " "
+ 8
Strings
A string is an ordered sequence of characters, enclosed in double quotation marks.
It is part of the Standard Library.
You need to include the <string> library to use the string data type. Alternatively, you can use a library that includes the string library.
SOURCE;:
https://www.sololearn.com/learn/CPlusPlus/1623/
Good luck 💚😉👍
+ 4
MI NO You're welcome!
+ 3
so if we talk about an string than it simply say that the string is a collection of homogeneous data type of character it is similar to an array but the array is a collection of integers data type and the string is collection of character data type for example if we write a my name
.
string =" my name is Kapil ."
+ 2
thank's
+ 2
Hi MI NO
For details on string Read this carefully
http://www.learncpp.com/cpp-tutorial/4-4b-an-introduction-to-stdstring/
+ 2
hi @saurabh Sharma it's not a compulsion that you should start 'c'before C ++ you can directly start C ++ because every language has a specific and its unique features they work with .. so it is not necessary to start 'c'before c++
+ 1
A way or library to treat with characters
+ 1
guys if I want learn c++ .. than I should learn c language?
0
string - объявляет переменную литературного типа, переменная может содержать символьное значение, чтобы придать такой переменной значение, нужно взять его в ковычки, например string a="123abc"; (при вводе через cin, ковычки ставить не нужно)