A Question About String In C++ - Programming - Nairaland
Nairaland Forum › Science/Technology › Programming › A Question About String In C++ (1299 Views)
| A Question About String In C++ by TheCongo2(op): 5:57pm On Mar 17, 2019*. Modified: 6:28pm On Mar 17, 2019 |
Hello, My question is as follow: When writing s[8] in c++, does this represent a string or array of size 8 or does it represent the 8th character on the string or array called s? |
| Re: A Question About String In C++ by pointblank247(m): 6:09pm On Mar 17, 2019 |
Why should this man be speaking Greek language to English readers ? |
| Re: A Question About String In C++ by ogunjobiolaide: 7:31pm On Mar 17, 2019 |
Array with 8 items starting from 0 to 7, but the declaration is incomplete. |
| Re: A Question About String In C++ by asalimpo(m): 2:54am On Mar 18, 2019 |
What book r u using to learn? A good book would make this thread u created unnecessary? |
| Re: A Question About String In C++ by TheCongo2(op): 5:31am On Mar 18, 2019 |
asalimpo:And what is your answer given that you have read a good book? |
| Re: A Question About String In C++ by asalimpo(m): 11:18am On Mar 18, 2019 |
TheCongo2:keep it up. Cheekiness will get u far in ur programming endeavour. |
| Re: A Question About String In C++ by stanliwise(m): 11:44am On Mar 18, 2019 |
TheCongo2:The above mean the 9th character in a string e.g if s = "Nairaland"; then s[8] will be "d" |
| Re: A Question About String In C++ by Speak2klein: 2:09pm On Mar 18, 2019 |
Hey guys! I have an exciting project for an Embedded controller running VxWorks OS. If you're familiar with this kind of work and you're interested, just call me or send a text to 09091772274 |
Please Help Me Solve This Problem In C++ • Dynamic Routing: Params & Query String In Node/express • How To Encrypt In Javascript And Decrypt String In PHP Using AES And Cryptojs • 2 • 3 • 4
Guess The Number - Java Codes • Tutorials On Vb6 • Info On Bar Code Scanners And Printers