A PHP Error was encountered
Severity: 8192
Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior
Filename: database/DB_driver.php
Line Number: 1876
A PHP Error was encountered
Severity: 8192
Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior
Filename: database/DB_driver.php
Line Number: 1876
A PHP Error was encountered
Severity: 8192
Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior
Filename: database/DB_driver.php
Line Number: 1876
A PHP Error was encountered
Severity: 8192
Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior
Filename: database/DB_driver.php
Line Number: 1876
A PHP Error was encountered
Severity: 8192
Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior
Filename: database/DB_driver.php
Line Number: 1876
A PHP Error was encountered
Severity: 8192
Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior
Filename: database/DB_driver.php
Line Number: 1876
A PHP Error was encountered
Severity: 8192
Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior
Filename: database/DB_driver.php
Line Number: 1876
A PHP Error was encountered
Severity: 8192
Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior
Filename: database/DB_driver.php
Line Number: 1876
A PHP Error was encountered
Severity: 8192
Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior
Filename: database/DB_driver.php
Line Number: 1876
A PHP Error was encountered
Severity: 8192
Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior
Filename: database/DB_driver.php
Line Number: 1876
A PHP Error was encountered
Severity: 8192
Message: Function create_function() is deprecated
Filename: geshi/geshi.php
Line Number: 4751
A PHP Error was encountered
Severity: 8192
Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior
Filename: database/DB_driver.php
Line Number: 1876
A PHP Error was encountered
Severity: 8192
Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior
Filename: database/DB_driver.php
Line Number: 1876
A PHP Error was encountered
Severity: 8192
Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior
Filename: database/DB_driver.php
Line Number: 1876
A PHP Error was encountered
Severity: 8192
Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior
Filename: database/DB_driver.php
Line Number: 1876
A PHP Error was encountered
Severity: 8192
Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior
Filename: database/DB_driver.php
Line Number: 1876
MAIN.CPPPP - mcpaste
#include "ComplexNumber.h"
#include <iostream>
#include <string>
using namespace std;
void addition(void){
cout << "Complexe Zahlen erstellen: " << endl << "Erste Zahl: " << endl;
float x, y;
cin >> x >> y;
ComplexNumber c1(x, y);
cout << "Zweite Zahl: " << endl;
cin >> x >> y;
ComplexNumber c2(x, y);
ComplexNumber *c3 = new ComplexNumber();
c3 = c1 + c2;
c3->browse();
system("pause");
}
void sub(void){
cout << "Complexe Zahlen erstellen: " << endl << "Erste Zahl: " << endl;
float x, y;
cin >> x >> y;
ComplexNumber c1(x, y);
cout << "Zweite Zahl: " << endl;
cin >> x >> y;
ComplexNumber c2(x, y);
ComplexNumber *c3 = new ComplexNumber();
c3 = c1 - c2;
c3->browse();
system("pause");
}
void mul(void){
cout << "Complexe Zahlen erstellen: " << endl << "Erste Zahl: " << endl;
float x, y;
cin >> x >> y;
ComplexNumber c1(x, y);
cout << "Zweite Zahl: " << endl;
cin >> x >> y;
ComplexNumber c2(x, y);
ComplexNumber *c3 = new ComplexNumber();
c3 = c1 * c2;
c3->browse();
system("pause");
}
void div(void){
cout << "Complexe Zahlen erstellen: " << endl << "Erste Zahl: " << endl;
float x, y;
cin >> x >> y;
ComplexNumber c1(x, y);
cout << "Zweite Zahl: " << endl;
cin >> x >> y;
ComplexNumber c2(x, y);
ComplexNumber *c3 = new ComplexNumber();
c3 = c1 / c2;
c3->browse();
system("pause");
}
void kon(void){
cout << "Complexe Zahl erstellen: " << endl;
float x, y;
cin >> x >> y;
ComplexNumber c1(x, y);
c1.konjug();
c1.browse();
system("pause");
}
int main(){
while (true)
{
cout << "Komplexe ZahlenMenu: " << endl;
cout << "1 Addition" << endl;
cout << "2 Subtraktion" << endl;
cout << "3 Multiplikation" << endl;
cout << "4 Division" << endl;
cout << "5 Konjunguieren" << endl;
string buffer;
getline(cin, buffer);
switch (atoi(buffer.c_str()))
{
case 1:
addition();
break;
case 2:
sub();
break;
case 3:
mul();
break;
case 4:
div();
break;
case 5:
kon();
break;
default:
cout << "Falsche Eingabe." << endl;
system("pause");
break;
}
system("cls");
cin.ignore();
}
}
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}
A PHP Error was encountered
Severity: 8192
Message: strpos(): Non-string needles will be interpreted as strings in the future. Use an explicit chr() call to preserve the current behavior
Filename: database/DB_driver.php
Line Number: 1876