
| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | |||||||||||||
| Zurück zur Kursübersicht | |||||||||||||
#include <iostream>
using namespace std;
#include <stdexcept>
#include "bild9.h"
using namespace std;
int main()
{
ClBild bild;
try
{
bild.setze(124,124,255);
cout << "OK, byte 124, 124 set" << endl;
}
catch (out_of_range)
{
cout << "Es gibt kein Byte 124, 124!" << endl;
}
try
{
bild.setze(12400,12400,255);
cout << "OK, byte 12400, 12400 set" << endl;
}
catch (out_of_range)
{
cout << "Es gibt kein Byte 12400, 12400!" << endl;
}
}
| Datei |
|---|