Minggu, 19 Desember 2010

C++ Coding Challenge #1

Problem: Write a program that will find the largest element of an arbitrary array without using any conditional structures: banned { if/if-else/switch/for/while/do/?:-operator }bonus: Display the array sorted from smallest to largest with the same conditions. i.e. write the function max in this little program:int main() {    int array[] = { 3, 1, 4, 15, 9, 2, 6, 5, 35, 8, 97, 93, 23, 84, 62, 64,

Tidak ada komentar:

Posting Komentar