01 // Test der Funktions-Templates
02 // Datei: mtemp1.cpp
03
04 #include
<stdio.h>
05 #include "overlo1.h"
06
07 int main ()
08 {
09 int x;
10 double
y;
11 char * z;
12 x = max (17,99);
13 printf ("\nErgebnis 1: %i\n",x);
14
y = max (3.14, 2.7);
15 printf ("\nErgebnis 2: %f\n",y);
16 z = max ("Hallo",
"Funktion");
17 printf ("\nErgebnis 3: %s\n", z);
18 return 0;
19 }
20
|
Bild 17-3 Testrahmen für überlagerte Funktionen
|