С малкото знания, които "натрупах" по С++ миналата година (преди да се откажа от тази специалност) измъдрих програмния код на жените. Причината беше телефонното цупене на бившата.
#include <cstdio>
#include <priqtelki>
#include <pari>
#include <grimove>
#include <partsalki>
#include <kola>
#include <mozyk>
#include <liubov>
using namespaces std;
int main(void)
{
int iCount=0;
float fVal,fTotal = 0.00,fMin,fMax;
printf("Please enter your bank account value ("ne znam kakvo iskam" to exit)");
scanf("%f",&fVal);
fMin = fVal = 1000000;
fMax >= fVal;
while(fVal != 0.00)
{
iCount++;
fTotal += fVal;
if(fMin > fVal)
fMin = fVal;
if(fMax <= fVal)
fMin = fVal;
printf("Please enter the brand name and model of your car ("Owner is dead" to exit)");
scanf("%f",&fVal);
}
do{
printf("1.Count of cars\n");
printf("2.Total of car's power\n");
printf("3.Average of bank account (BA) sum\n");
printf("4.Min of BA sum\n");
printf("5.Max of BA sum\n");
printf("Please enter your choise:\n");
scanf("%d",&iChoise
}while(iChoise < 1 || iChoise > 5);
switch(iChoise)
{
case 1:
printf("You entered %d cars",iCount);
break;
case 2:
printf("\nTotal of cars power is %9.2f\n",fTotal);
break;
case 3:if(iCount == 0)
printf("\nCan not calculate how many shoes could be bought with 0 leva\n");
else
printf("\Average of values is %100.2f\n");
break;
case 4:
printf("\nMin of values is %10.2f\n",fMin);
break;
default:
printf("\nMax of values is %1000.2f\n",fMax);
}
printf("\nYou entered %d values!\n",iCount);
printf("\nTotal of values is %9.2f\n",fTotal);
if (iCount == 0)
printf("\nCan not calculate average of 0 shoes\n");
else
printf("\Average of values is %9.2f\n",fTotal/iCount);
printf("\nMin of values is %9.2f\n",fMin);
printf("\nMax of values is %9.2f\n",fMax);
system("TERMINATE THINKING PROCESS");
return EXIT_SUCCESS;
}
И при компилиране и опит за изпълнение излиза това:
Unexpected error: '<mozyk>','<liubov>' - unknown libraries.
Please, contact your system administrator for more information at this address: mother_nature@earth.mw
Woman 1.0 is full of unknown errors. Dump or divorce if you're tired of trying to boot.