I need a little help. The problem is
Write a function named maxValue that has three integer parameters. The function should compare the three values and return the highest value.
Try to write it yourself, and once you encounter problems you can't solve on your own, post them.
But Fransje's is much more fun to read :)
fransje's is brilliant! its even better when you try to understand it and finally get it
aha but fransjes takes all data types and is only one line
Yeah but you could pass a list and use an iterator. It also assumes the type has an overloaded > operator plus the OP asked for ints and said he was new to c++ :)
Thanks all. Sorry I didn't post the code originally, but I started out with
(a>b && a>c)