Lol... I probably can't even start this since I haven't learned it. How do you get word from a word list anyway?
Originally Posted by Salem
Also, I haven't learned designing classes either. The book has taught on designing functions, though.
(Some of) the exercises are indeed challenging. Just that after realizing I have only finished 1/3rd of the book so far, I want to at least try making something from what I have already learned.
Originally Posted by dra
And graphic artists and sound producer and etc. I guess...
Originally Posted by DougDbug
I have learned about looping, but regarding branching, I have only learned about if and else statements. Never heard of switch before. Also, I forgot to mention it for some reason, but I just learned about iterator this chapter.
I was actually looking for some ideas on what simple program I can write that I should write, but I guess I will go with hangman.
Thank you for the help. Since I'm having school project and my final exams are coming soon (along with a whole bunch of games I want to play), I don't know when I will finish this, but I will post my code then (and when I get stuck).
I have one more thing I want to ask about what I have read in the book. When you write a function, what's the purpose of having the return type as reference?
For example, let's making up a function:
The book mentions that when a reference is used as an argument, you are telling that you want to change the value of whatever you pass in the argument. But what is the reference to the return type for? Is it to save the workload since the value is returned, instead of being copied then returned?
vector<double>& function(vector<double>& d)