Search:
Forum
Beginners
Anyway to put a series of strings into a
Anyway to put a series of strings into an array?
Dec 8, 2012 at 4:49am UTC
KAB11
(8)
I am making a calendar for my programming class and I was going to put all the months into an array like this. But its not working.
string months[]={'January','February','March',.........};
Is there any way to do this? Thanks!
Dec 8, 2012 at 4:51am UTC
Athar
(4466)
Single quotes are for single characters only. Use double quotes.
Dec 8, 2012 at 4:56am UTC
KAB11
(8)
Oh really.. .lol thanks i'll give it a try!
Dec 8, 2012 at 4:59am UTC
KAB11
(8)
Ahh Works Thank You!!!
Dec 8, 2012 at 6:37am UTC
chipp
(776)
good for you...
Topic archived. No new replies allowed.
C++
Information
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs