Compare commits
3 Commits
ddb8253eee
...
master
Author | SHA1 | Date | |
---|---|---|---|
9f3aabfa8c | |||
0834d8bae3 | |||
3242cb2b1a |
@ -14,6 +14,7 @@ double get_price(int index);
|
|||||||
*/
|
*/
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
|
system("cls");
|
||||||
auto persons = {"Freund 1", "Freund 2", "Du"};
|
auto persons = {"Freund 1", "Freund 2", "Du"};
|
||||||
const auto available_money = 5.0;
|
const auto available_money = 5.0;
|
||||||
|
|
||||||
@ -49,7 +50,7 @@ double order(vector<const char*> persons, double available_money)
|
|||||||
cout << "Hallo " << person << "!" << endl;
|
cout << "Hallo " << person << "!" << endl;
|
||||||
if (available_money < 1.1)
|
if (available_money < 1.1)
|
||||||
{
|
{
|
||||||
cout << "Sie koennen kein Eis mehr kaufen." << endl;
|
cout << "Sie k\224nnen kein Eis mehr kaufen." << endl;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
cout << "Bitte geben Sie ihre Bestellung auf (1-3): ";
|
cout << "Bitte geben Sie ihre Bestellung auf (1-3): ";
|
||||||
@ -69,7 +70,7 @@ void billing(const double change, const double available_money)
|
|||||||
{
|
{
|
||||||
cout << endl;
|
cout << endl;
|
||||||
cout << "Zu zahlender Betrag: " << available_money - change << " Euro" << endl;
|
cout << "Zu zahlender Betrag: " << available_money - change << " Euro" << endl;
|
||||||
cout << "Ihr Restgeld betraegt: " << change << " Euro" << endl;
|
cout << "Ihr Restgeld betr\204gt: " << change << " Euro" << endl;
|
||||||
cout << endl;
|
cout << endl;
|
||||||
cout << "Danke, beehren sie uns bald wieder!";
|
cout << "Danke, beehren sie uns bald wieder!";
|
||||||
}
|
}
|
||||||
|
@ -99,7 +99,7 @@
|
|||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
<WarningLevel>Level3</WarningLevel>
|
<WarningLevel>Level3</WarningLevel>
|
||||||
<Optimization>Disabled</Optimization>
|
<Optimization>Disabled</Optimization>
|
||||||
<SDLCheck>true</SDLCheck>
|
<SDLCheck>true</SDLCheck>
|
||||||
@ -133,7 +133,7 @@
|
|||||||
</ItemDefinitionGroup>
|
</ItemDefinitionGroup>
|
||||||
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
|
||||||
<ClCompile>
|
<ClCompile>
|
||||||
<PrecompiledHeader>Use</PrecompiledHeader>
|
<PrecompiledHeader>NotUsing</PrecompiledHeader>
|
||||||
<WarningLevel>Level3</WarningLevel>
|
<WarningLevel>Level3</WarningLevel>
|
||||||
<Optimization>MaxSpeed</Optimization>
|
<Optimization>MaxSpeed</Optimization>
|
||||||
<FunctionLevelLinking>true</FunctionLevelLinking>
|
<FunctionLevelLinking>true</FunctionLevelLinking>
|
||||||
|
Reference in New Issue
Block a user