You recognize, we had the same style of main issue again in my day, during the Pliocene era, earlier than phone telephones and e-mail and internet and faraway control television and stuff. I remember we had a trainer who would write stuff on the chalk board with one hand, and earlier than you would replica it down to your notes, he'd erase it with the opposite hand. We had a difficult time in that class. Be aware of what we did? We went as much as the trainer and requested QUESTIONS. Grew to become out he used to be exceptional old chap, lousy as a teacher, but excellent with one on one tutoring. But, let you know what. Here's a start for you. Look in your e-book for an outline of "cin" for the needs of studying a price for the parameters. Your parameters incorporate maximum room potential and the quantity of people to attend. Absolutely, these should be integers. Int max_room_capacity; int number_of_attendees; appear on your book for an outline of the "if" announcement for the purposes of evaluating those two values to see if the number of deliberate attendees is better than the maximum potential. Look on your book for a description of the "cout" statement for the needs of printing out the effect of that evaluation. You must do some arithmetic within the case there are too many, but that must be a section of cake, yes? Just right , no?
2013-01-27 17:35:26 UTC
You must convert your string variables to doubles, then it will work :)