OKaNaRslaA

Bug 900

Jul 16th, 2018
143
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. /******************************************************************************
  2.  
  3. Online C++ Compiler.
  4. Code, Compile, Run and Debug C++ program online.
  5. Write your code in this editor and press "Run" button to compile and execute it.
  6.  
  7. *******************************************************************************/
  8.  
  9. #include <iostream>
  10. #include<cstdio>
  11. #include<cstdlib>
  12.  
  13. using namespace std;
  14.  
  15.  
  16. struct Kiste
  17. {
  18. int L;
  19. int B;
  20. int H;
  21. };
  22.  
  23. Kiste Input_H()
  24. {
  25. Kiste HoeheInp;
  26. cout<< "Geben Sie bitte die Hoehe der Kiste an die Sie einlesen moechten: ";
  27. std::cin >> HoeheInp.H;
  28. return HoeheInp;
  29. }
  30. Kiste Input_L()
  31. {
  32. Kiste LaengeInp;
  33. cout<< "Geben Sie bitte die Laenge der Kiste an die Sie einlesen moechten: ";
  34. std::cin >> LaengeInp.L;
  35. return LaengeInp;
  36. }
  37. Kiste Input_B()
  38. {
  39. Kiste BreiteInp;
  40. cout<< "Geben Sie bitte die Hoehe der Kiste an die Sie einlesen moechten: ";
  41. std::cin >> BreiteInp.B;
  42. return BreiteInp;
  43. }
  44.  
  45. int FinalInp(Kiste HoeheInp, Kiste LaengeInp, Kiste BreiteInp){
  46. int Breite_conv = BreiteInp.B;
  47. int Hoehe_conv = HoeheInp.H;
  48. int Laenge_conv = LaengeInp.L;
  49.  
  50. return BreiteInp.B, HoeheInp.H, LaengeInp.L;
  51. }
  52.  
  53. int main()
  54. {
  55. int Ident[50];
  56. int H_Base[50];
  57. int L_Base[50];
  58. int B_Base[50];
  59. Kiste x [5];
  60. //Kiste zu Int
  61. int y [5] = x[5];
  62. cout<<"Hello World";
  63.  
  64. /* for (int count = 0; count<3; count++)
  65. {
  66. H_Base[count] = ;
  67. } */
  68.  
  69. return 0;
  70. }
Advertisement
Add Comment
Please, Sign In to add comment