• Keine Ergebnisse gefunden

Aufgaben Blatt 1

N/A
N/A
Protected

Academic year: 2022

Aktie "Aufgaben Blatt 1"

Copied!
1
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Aufgaben Blatt 1 26.4.2019

Bitte bearbeiten Sie die Aufgaben bis zum 3.5.2019, 8:00 Uhr. Abhängig von der

Aufgabenstellung möchte ich Sie bitten, gegebenenfalls Lösungen oder Output von Tests an marks@physi.uni-heidelberg.de unter Angabe Ihres Names als tar File zu schicken.

Aufgabe 1: Funktionen

Schreiben Sie eine Funktion integrate(….), die für eine beliebige gegebene Funktion eine numerische Integration durchführt.

a) Welche Parameter brauchen wir?

b) Wie können wir die zu integrierende Funktion übergeben?

Aufgabe 2: I/O

Lesen Sie ein File mit 2 Spalten aus Integer Zahlen und vertauschen Sie im Output beide Spalten. Der Name des Input Files soll dem Programm übergeben werden. Der Output ist Standard Output in das Terminal Fenster.

a) Implementieren Sie ein C++ Programm.

b) Gibt es eine schnellere/einfachere Methode?

Aufgabe 3: Funktionsobjekte

Schreiben Sie eine Klasse, die eine Gerade über slope und Achsenabschnitt implementiert.

Überladen Sie nun den () Operator so, dass er für jeden als Argument übergebenen Wert den Funktionswert der Geradeninstanz zurück gibt.

Referenzen

ÄHNLICHE DOKUMENTE

It signals the central control or the processor (depending on the Medium Data Processing System) to au- tomatically translate EBCDIC to BCL informa- tion as it is

signal on this line indicates that the external equipment has accepted the word of information and will turn off the output data ready signal at the com- puter; this causes

In determining the priority of control units which operate multiple devices with different priority rules (for example, a 2821 that attaches both class 2 and class

The selector light pen feature supplies a hand-held, pen-like device that permits an operator of a display station to select fields of data from the display screen

Punching operations, speeds, internal controls, punching in data mode 2, and all other features related to punching are the same as those of the 1442 Card Read Punch Model Nl,

Das Problem ist, acht Damen auf einem Schachbrett so anzuordnen, dass keine die andere

Input port lines and output port lines are accessed at 16-pin DIP sockets on the card.. A reset line is

Transfers the command second word (up to 16-bits) contained in the specified memory location to the peripheral specified in the device (unit)