Welcome, Guest: Register On Nairaland / LOGIN! / Trending / Recent / New
Stats: 3,209,149 members, 8,005,104 topics. Date: Sunday, 17 November 2024 at 02:47 PM

A Question About String In C++ - Programming - Nairaland

Nairaland Forum / Science/Technology / Programming / A Question About String In C++ (1232 Views)

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)

(1) (Reply) (Go Down)

A Question About String In C++ by TheCongo2: 5:57pm 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: 5:31am On Mar 18, 2019
asalimpo:
What book r u using to learn? A good book would make this thread u created unnecessary?

And what is your answer given that you have read a good book?

2 Likes

Re: A Question About String In C++ by asalimpo(m): 11:18am On Mar 18, 2019
TheCongo2:
And what is your answer given that you have read a good book?
keep it up. Cheekiness will get u far in ur programming endeavour.

1 Like

Re: A Question About String In C++ by stanliwise(m): 11:44am On Mar 18, 2019
TheCongo2:
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?
The above mean the 9th character in a string e.g

if s = "Nairaland";
then s[8] will be "d"

3 Likes

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

(1) (Reply)

What Are Good Programming Books To Recommend To A Newbie? / What Is Wrong With This Line Of Code? / Can I Use Core I5 3rd Generation For Programming Or Coding?

(Go Up)

Sections: politics (1) business autos (1) jobs (1) career education (1) romance computers phones travel sports fashion health
religion celebs tv-movies music-radio literature webmasters programming techmarket

Links: (1) (2) (3) (4) (5) (6) (7) (8) (9) (10)

Nairaland - Copyright © 2005 - 2024 Oluwaseun Osewa. All rights reserved. See How To Advertise. 9
Disclaimer: Every Nairaland member is solely responsible for anything that he/she posts or uploads on Nairaland.