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.... Discussion in 'Software & Treiber' started by eNic, Oct 22, 2011.

  1. eNic
    eNic Praktikant
    Joined:
    Jan 6, 2010
    Messages:
    38
    Likes Received:
    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!

Loading...

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

Forum Date

⟬New User Deal⟭ AttaPoll Signup {OZRDV or UYZOF} – C$15 Bonus in Canada

⟬New User Deal⟭ AttaPoll Signup {OZRDV or UYZOF} – C$15 Bonus in Canada: Looking for the latest AttaPoll coupon code 2026? AttaPoll is a survey app that allows eligible users to earn rewards by completing online surveys. If you are searching for an AttaPoll referral...
freie Fragen Saturday at 3:42 AM

⟬New User Deal⟭ AttaPoll Signup {OZRDV or UYZOF} – C$15 Bonus in Canada

⟬New User Deal⟭ AttaPoll Signup {OZRDV or UYZOF} – C$15 Bonus in Canada: Looking for the latest AttaPoll coupon code 2026? AttaPoll is a survey app that allows eligible users to earn rewards by completing online surveys. If you are searching for an AttaPoll referral...
Hinweise, Tips und Tricks Wednesday at 9:17 PM

₰⪼Canada ⟪ºSheinº⟫promo Code C$100 off¶‷⇞ [[ºS3MV966º]] ⇞‷¶௹New User 2026

₰⪼Canada ⟪ºSheinº⟫promo Code C$100 off¶‷⇞ [[ºS3MV966º]] ⇞‷¶௹New User 2026: Verified user can get a C$100 off ⟪ºSheinº⟫Coupon code using the code ((“¶‷⇞ [[ºS3MV966º]] ⇞‷¶௹”)). This ⟪ºSheinº⟫C$100 Off code is specifically for new and existing customers both and can be...
Windows 10 Oct 27, 2026

⦃Exclusive Bonus⦄ AttaPoll Invite (OZRDV or UYZOF) – C$35 Reward Offer

⦃Exclusive Bonus⦄ AttaPoll Invite (OZRDV or UYZOF) – C$35 Reward Offer: Looking for the latest AttaPoll coupon code 2026? AttaPoll is a survey app that allows eligible users to earn rewards by completing online surveys. If you are searching for an AttaPoll referral...
Monitore, TV-Geräte & Beamer Oct 26, 2026

⟬New User Deal⟭ AttaPoll Signup {OZRDV or UYZOF} – C$15 Bonus in Canada

⟬New User Deal⟭ AttaPoll Signup {OZRDV or UYZOF} – C$15 Bonus in Canada: Looking for the latest AttaPoll coupon code 2026? AttaPoll is a survey app that allows eligible users to earn rewards by completing online surveys. If you are searching for an AttaPoll referral...
Apple-Hardware Oct 26, 2026

⦑Premium Offer⦒ AttaPoll Signup [OZRDV or UYZOF] – C$40 Bonus in Canada

⦑Premium Offer⦒ AttaPoll Signup [OZRDV or UYZOF] – C$40 Bonus in Canada: Looking for the latest AttaPoll coupon code 2026? AttaPoll is a survey app that allows eligible users to earn rewards by completing online surveys. If you are searching for an AttaPoll referral...
Spielekonsolen Oct 26, 2026

『Hot Deal』 AttaPoll Coupon 【OZRDV or UYZOF】 – C$20 Rewards Bonus

『Hot Deal』 AttaPoll Coupon 【OZRDV or UYZOF】 – C$20 Rewards Bonus: Looking for the latest AttaPoll coupon code 2026? AttaPoll is a survey app that allows eligible users to earn rewards by completing online surveys. If you are searching for an AttaPoll referral...
News & Bugs zu SysProfile Oct 26, 2026

[LATEST] Canada Shein DiSCOUNT {{""S3MV966""}} Code C$100 off All New Customers

[LATEST] Canada Shein DiSCOUNT {{""S3MV966""}} Code C$100 off All New Customers: LooKInG users user can get a C$100 off Shein Coupon {{""S3MV966""}} Code using the {{""S3MV966""}} Code ((“S3MV966”)). This Shein C$100 Off {{""S3MV966""}} Code is specifically for new and...
freie Fragen Oct 24, 2026

〈Big Discount〉 TℰℳU Promo Code ➜ [ale737318] Canada C$100 Off Shopping

〈Big Discount〉 TℰℳU Promo Code ➜ [ale737318] Canada C$100 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...
Neuigkeiten & Allgemeines zum Forum Oct 17, 2026

【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 Oct 15, 2026

[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 Oct 15, 2026

【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 Oct 15, 2026

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 Oct 14, 2026
C++ Clr-WindowsForms-Anwendung, Hilfe! solved

Users found this page by searching for:

  1. wechselgeld c

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice