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

MAIN.CPPPP

Von Derk0nA, 10 Jahre vorher, geschrieben in C++, aufgerufen 1'686 mal.
URL https://mcpaste.de/view/af45db65 Einbetten
Paste herunterladen oder Rohtext anzeigen
  1. #include "ComplexNumber.h"
  2. #include <iostream>
  3. #include <string>
  4. using namespace std;
  5.  
  6. void addition(void){
  7.         cout << "Complexe Zahlen erstellen: " << endl << "Erste Zahl: " << endl;
  8.         float x, y;
  9.         cin >> x >> y;
  10.         ComplexNumber c1(x, y);
  11.        
  12.         cout << "Zweite Zahl: " << endl;
  13.         cin >> x >> y;
  14.         ComplexNumber c2(x, y);
  15.  
  16.         ComplexNumber *c3 = new ComplexNumber();
  17.         c3 = c1 + c2;
  18.  
  19.         c3->browse();
  20.  
  21.         system("pause");
  22. }
  23.  
  24. void sub(void){
  25.         cout << "Complexe Zahlen erstellen: " << endl << "Erste Zahl: " << endl;
  26.         float x, y;
  27.         cin >> x >> y;
  28.         ComplexNumber c1(x, y);
  29.  
  30.         cout << "Zweite Zahl: " << endl;
  31.         cin >> x >> y;
  32.         ComplexNumber c2(x, y);
  33.  
  34.         ComplexNumber *c3 = new ComplexNumber();
  35.         c3 = c1 - c2;
  36.  
  37.         c3->browse();
  38.  
  39.         system("pause");
  40. }
  41.  
  42. void mul(void){
  43.         cout << "Complexe Zahlen erstellen: " << endl << "Erste Zahl: " << endl;
  44.         float x, y;
  45.         cin >> x >> y;
  46.         ComplexNumber c1(x, y);
  47.  
  48.         cout << "Zweite Zahl: " << endl;
  49.         cin >> x >> y;
  50.         ComplexNumber c2(x, y);
  51.  
  52.         ComplexNumber *c3 = new ComplexNumber();
  53.         c3 = c1 * c2;
  54.  
  55.         c3->browse();
  56.  
  57.         system("pause");
  58. }
  59.  
  60. void div(void){
  61.         cout << "Complexe Zahlen erstellen: " << endl << "Erste Zahl: " << endl;
  62.         float x, y;
  63.         cin >> x >> y;
  64.         ComplexNumber c1(x, y);
  65.  
  66.         cout << "Zweite Zahl: " << endl;
  67.         cin >> x >> y;
  68.         ComplexNumber c2(x, y);
  69.  
  70.         ComplexNumber *c3 = new ComplexNumber();
  71.         c3 = c1 / c2;
  72.  
  73.         c3->browse();
  74.  
  75.         system("pause");
  76. }
  77.  
  78. void kon(void){
  79.         cout << "Complexe Zahl erstellen: " << endl;
  80.         float x, y;
  81.         cin >> x >> y;
  82.         ComplexNumber c1(x, y);
  83.         c1.konjug();
  84.         c1.browse();
  85.  
  86.         system("pause");
  87. }
  88.  
  89.  
  90. int main(){
  91.         while (true)
  92.         {
  93.                 cout << "Komplexe ZahlenMenu: " << endl;
  94.                 cout << "1 Addition" << endl;
  95.                 cout << "2 Subtraktion" << endl;
  96.                 cout << "3 Multiplikation" << endl;
  97.                 cout << "4 Division" << endl;
  98.                 cout << "5 Konjunguieren" << endl;
  99.                 string buffer;
  100.                 getline(cin, buffer);
  101.  
  102.                 switch (atoi(buffer.c_str()))
  103.                 {
  104.                 case 1:
  105.                         addition();
  106.                         break;
  107.                 case 2:
  108.                         sub();
  109.                         break;
  110.                 case 3:
  111.                         mul();
  112.                         break;
  113.                 case 4:
  114.                         div();
  115.                         break;
  116.                 case 5:
  117.                         kon();
  118.                         break;
  119.                 default:
  120.                         cout << "Falsche Eingabe." << endl;
  121.                         system("pause");
  122.                         break;
  123.                 }
  124.  
  125.                 system("cls");
  126.                 cin.ignore();
  127.         }
  128. }
  129.  

Antwort auf "MAIN.CPPPP"

Hier kannst Du auf den Paste von oben antworten

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