do max and min coding?
do max and min coding?
Are you talking about a function that will take some numbers, compare them, and tell you which one is the maximum or minimum of the set?
Write a program in C++ that takes three int values interactively
from the user and prints them in ascending order.
C programming resources:
GNU C Function and Macro Index -- glibc reference manual
The C Book -- nice online learner guide
Current ISO draft standard
CCAN -- new CPAN like open source library repository
3 (different) GNU debugger tutorials: #1 -- #2 -- #3
cpwiki -- our wiki on sourceforge
Moved to C++ programming forum.
You should #include <algorithm> and <vector>, read the numbers into a std::vector, then std::sort and print them. If the number of numbers is fixed at three, a little swapping as in bubble sort will suffice.
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)