i have a list of words to put into an array but how do i do this
the order goes from 0 to 9 so black is zero
[black][brown][red][orange][yellow][green][blue][purple][grey][white]
grunge man 0 Junior Poster
Recommended Answers
Jump to Posthey...can anyone teach me c basics...like the while loop??thx...
Jump to PostIf you had read my tutorial, I'm sure you would have seen how to read in a string:
string line; // string with which to store the data getline(cin, line); // grab a whole line of data
Beware that this produces undesired results when used with
Jump to PostIt almost looks like what you want is an enumeration, based on your code. This would create a variable type, I don't know I'm bad at explaining it, and haven't used it much the format is.
enum color {black=1,blue,green,red};
the =1 is used to make it start the …
Jump to Post>ok pretend the user types in red witch is equil to 2
Yes.>now how do i tell it to search for 2
You don't. Remember, you're searching for what the user typed in, so you would search for 'line'.>i dont think u understood the last post
…
Jump to Post>yep but im not gona stop trying tell i get it because thats how you learn right?
Hm, I just learned the basics of OpenGL. I'm going to keep trying to make a MMORPG until I succeed!No and no. You keep trying to learn programming, but you hopefully …
All 34 Replies
John A 1,896 Vampirical Lurker Team Colleague
grunge man 0 Junior Poster
John A 1,896 Vampirical Lurker Team Colleague
grunge man 0 Junior Poster
John A 1,896 Vampirical Lurker Team Colleague
iTaChi 19 Newbie Poster
John A 1,896 Vampirical Lurker Team Colleague
grunge man 0 Junior Poster
grunge man 0 Junior Poster
John A 1,896 Vampirical Lurker Team Colleague
grunge man 0 Junior Poster
John A 1,896 Vampirical Lurker Team Colleague
grunge man 0 Junior Poster
John A 1,896 Vampirical Lurker Team Colleague
grunge man 0 Junior Poster
John A 1,896 Vampirical Lurker Team Colleague
grunge man 0 Junior Poster
John A 1,896 Vampirical Lurker Team Colleague
JadedTortoise 0 Newbie Poster
grunge man 0 Junior Poster
grunge man 0 Junior Poster
grunge man 0 Junior Poster
John A 1,896 Vampirical Lurker Team Colleague
grunge man 0 Junior Poster
John A 1,896 Vampirical Lurker Team Colleague
Aia commented: Great help - Aia +1
grunge man 0 Junior Poster
John A 1,896 Vampirical Lurker Team Colleague
grunge man 0 Junior Poster
John A 1,896 Vampirical Lurker Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.