C++ Clr-WindowsForms-Anwendung, Hilfe!

Diskutiere und helfe bei C++ Clr-WindowsForms-Anwendung, Hilfe! im Bereich Software & Treiber im SysProfile Forum bei einer Lösung; Hallo liebe SysProfiler, habe da ein kleiner Problem. Zu schreiben ist eine Art Fahrkartenautomat. Man gibt also den Fahrpreis ein und den Betrag.... Dieses Thema im Forum "Software & Treiber" wurde erstellt von eNic, 22. Oktober 2011.

  1. eNic
    eNic Praktikant
    Registriert seit:
    6. Januar 2010
    Beiträge:
    38
    Zustimmungen:
    0
    1. SysProfile:
    122800

    Hallo liebe SysProfiler,

    habe da ein kleiner Problem. Zu schreiben ist eine Art Fahrkartenautomat. Man gibt also den Fahrpreis ein und den Betrag. Das Wechselgeld wird angezeigt. Doch die Aufgabe verlangt es auch das Wechselgeld anzuzeigen. Sprich, wieviele 5€ scheine und 2€ Münzen usw. gibt der Automat aus. Der Automat kann folgende Scheine, bzw Münzen ausgeben: 5€, 2€, 1€, 50cent, 10cent, 5cent, 2cent, 1cent. Wir sollen dies mittels einer for-Schleife machen. Den Sinn dahinter verstehe ich. Nur zur Umsetzung habe ich keine Ahnung... Ich hoffe ihr könnt mir helfen.

    Meine bisheriger Code:

    //Beenden Button
    this->Close();

    //Neu Button
    txtfahrkartenpreis->Text="";
    txtbezahlung->Text="";
    txtauszahlung->Text="";
    txt1cent->Text="";
    txt2cent->Text="";
    txt5cent->Text="";
    txt10cent->Text="";
    txt50cent->Text="";
    txt1euro->Text="";
    txt2euro->Text="";
    txt5euro->Text="";


    //Deklarieren, Berechnen Button
    double fahrpreis, bezahlung, auszahlung;
    //Rückgeld
    int cent1, cent2, cent5, cent10, cent50, euro1, euro2, euro5;
    //Laufvariable
    int i;

    //Eingabe
    fahrpreis=Convert::ToDouble(txtfahrkartenpreis->Text);
    bezahlung=Convert::ToDouble(txtbezahlung->Text);

    if(bezahlung>=fahrpreis)
    {
    auszahlung=bezahlung-fahrpreis;
    txtauszahlung->Text=Convert::ToString(auszahlung);
    }
    else
    {
    txtauszahlung->Text="!ERROR!";
    }
     
Thema:

C++ Clr-WindowsForms-Anwendung, Hilfe!

Die Seite wird geladen...

C++ Clr-WindowsForms-Anwendung, Hilfe! - Similar Threads - C++ Clr WindowsForms

Forum Datum

【Exclusive Price】 TℰℳU Coupon Code ➜ [ale737318] Canada C$300 Off Shopping

【Exclusive Price】 TℰℳU Coupon Code ➜ [ale737318] Canada C$300 Off Shopping: What Is the TℰℳU Coupon Code? The TℰℳU Coupon Code ale737318 can be checked for available promotional offers and discounts. New and existing users may find different deals depending on their...
Windows 8 Gestern um 20:56 Uhr

[Canada] GeT+ Temu Coupon Code [^alq583464^] C$100 off For New & Existing Users

[Canada] GeT+ Temu Coupon Code [^alq583464^] C$100 off For New & Existing Users: Verified users can get a C$100 off Temu Promo Code using the Code (“alq583464”). This Temu C$100 Off Code is specifically for new and existing customers both and can be redeemed to receive a C$100...
freie Fragen Gestern um 13:36 Uhr

【HOT】Canada Temu Discount Code C$200 Off ∫∫❀alq583464❀∫∫ For All Customers

【HOT】Canada Temu Discount Code C$200 Off ∫∫❀alq583464❀∫∫ For All Customers: Verified user can get a C$200 off Temu Promo Code using the Code ((“alq583464”)). This Temu C$200 Off Code is specifically for new and existing customers both and can be redeemed to receive a...
News & Bugs zu SysProfile Gestern um 09:13 Uhr

Canada Temu Discount Code {"C$100 off"} ➔[^°^ALE737318 ^°^] for New & Existing Users

Canada Temu Discount Code {"C$100 off"} ➔[^°^ALE737318 ^°^] for New & Existing Users: Verified user can get a C$100 off Temu Coupon code using the code {{“ALE737318 ”}}. This Temu C$100 Off code is specifically for new and existing customers both and can be redeemed to receive a...
Neuigkeiten & Allgemeines zum Forum Mittwoch um 17:45 Uhr

Canada Temu Coupon Code {"C$100 off"} ➔[^°^ALE737318 ^°^] for New & Existing Users

Canada Temu Coupon Code {"C$100 off"} ➔[^°^ALE737318 ^°^] for New & Existing Users: Verified user can get a C$100 off Temu Coupon code using the code {{“ALE737318 ”}}. This Temu C$100 Off code is specifically for new and existing customers both and can be redeemed to receive a...
News & Bugs zu SysProfile Mittwoch um 17:40 Uhr

Canada Temu Discount Code C$100 off [{ ale826405 }] For New & Existing User

Canada Temu Discount Code C$100 off [{ ale826405 }] For New & Existing User: All New & Existing users at Temu receive a C$100 off discount on orders over C$100 off Use the code [ale826405] during checkout to get Temu Discount C$100 off off For New Users. You n save C$100...
Gehäuse & Modding Mittwoch um 10:06 Uhr

Canada ௹¥» TℰℳU [COUPON] CoDe C$100 Off ➬『ALE826405』 [FIRST TIME] USers

Canada ௹¥» TℰℳU [COUPON] CoDe C$100 Off ➬『ALE826405』 [FIRST TIME] USers: [FIRst TIme] USErss at TℰℳU "Canada" receive a C$100% [DISCOUNT] on orders over C$100 Use the CoDe ["➬『ALE826405』"] during checkout to get TℰℳU "Canada" [DISCOUNT] C$100% Off [FIRst TIme] USErss....
freie Fragen Mittwoch um 09:16 Uhr

ↈNew>Canada TemU CoUpoN Code『✧ale826405✧』C$100 OFF First Order

ↈNew>Canada TemU CoUpoN Code『✧ale826405✧』C$100 OFF First Order: Looking 2026 All Users can get a C$100 OFF TemU [promo] code using the code ((“『✧ale826405✧』”)). This C$100 OFF code is specifically For New User/usernew and existing user both and can be...
freie Fragen Dienstag um 16:33 Uhr

(Active)Canada Temu Coupon Code C$300 off {alx611457} For First-Time User

(Active)Canada Temu Coupon Code C$300 off {alx611457} For First-Time User: Verified user can get a C$300 off Temu Coupon code using the code ((“alx611457”)). This Temu C$300 Off code is specifically for new and existing customers both and can be redeemed to receive a...
News & Bugs zu SysProfile Dienstag um 06:06 Uhr

BeST "Oman ⪪ Temu Coupon Code 90% off ⟪””ALE737318 ””⟫ For New & Existing User c

BeST "Oman ⪪ Temu Coupon Code 90% off ⟪””ALE737318 ””⟫ For New & Existing User c: Verified user can get a 90% off Temu Coupon code using the code ((“ALE737318 ”)). This Temu 90% Off code is specifically for new and existing customers both and can be redeemed to receive a 90%...
User-Neuigkeiten Montag um 21:54 Uhr

C$〖New〗TℰℳU Coupon Code Canada [{alq583464}] 50% off For Existing Users

C$〖New〗TℰℳU Coupon Code Canada [{alq583464}] 50% off For Existing Users: Looking to save big on your next shopping spree? You're in luck with the TℰℳU Promo Code"alq583464 "50% off that offers massive savings on your favorite items. Our exclusive"alq583464 "TℰℳU Promo...
freie Fragen Montag um 18:09 Uhr

Canada ⟦ TEMu ⟧ DisCoUnT Code [[^''ALE737318 ^•]] C$200 OFF for First-Time User

Canada ⟦ TEMu ⟧ DisCoUnT Code [[^''ALE737318 ^•]] C$200 OFF for First-Time User: Verified user can get a C$200 off TEMu Discount code using the code ((“ALE737318 ”)). This TEMu C$200 Off code is specifically for new and existing customers both and can be redeemed to receive a...
Fragen zur Einrichtung von SysProfile Montag um 17:08 Uhr

Temu Coupon Code Canada [C$100 off] ⇒ ale826405 for New & Existing User

Temu Coupon Code Canada [C$100 off] ⇒ ale826405 for New & Existing User: New users at Temu receive a C$100 off on orders over C$100 Use the code [ale826405] during checkout to get Temu Coupon C$100 off For New Users. You can save C$100 off your first order with the...
Windows 10 Montag um 15:00 Uhr
C++ Clr-WindowsForms-Anwendung, Hilfe! solved

Andere User suchten nach Lösung und weiteren Infos nach:

  1. wechselgeld c

  1. Diese Seite verwendet Cookies. Wenn du dich weiterhin auf dieser Seite aufhältst, akzeptierst du unseren Einsatz von Cookies.
    Information ausblenden