How can the variables cost amount x if this amount has already been allocated?

A company produced 13,500 kg of a product last month, of which 10,800 kg were sold at a price of €180/kg. Manufacturing costs amounted to €1.62 million, of which two-thirds were fixed and one-third were variable. Administrative and distribution costs amounted to €0.54 million. Determine the operating result using the cost of sales method based…

How do you initialize a static variable of a method?

Hello, I would like to explicitly initialize the static variable character with the null string. Static variables must be initialized outside of the class. How exactly do I do this with methods? char & String::operator[](int i){ static char zeichen; if(i >= strlen(txt)||(i < 0)){ return zeichen; } return txt[i]; } char String::zeichen = '\0';

Batch output variable in variable name?

Hey, a specific question, first an example: @echo off set /a counter=0 set /a counter=%counter%+1 set save%counter%=test%counter% echo [save%counter%] pause>nul I have a counter here that partially determines the name of the "save" variable. It should then look like this: it starts at "save1", then counts up in a loop and creates a newly numbered…

PHP: Reading folders with "specific" variables!?

Hello everyone, I have a small web space and stored various graphics on it, which I would now like to display by calling the URL. Now I found the following PHP code on the Internet: https://sevenx.de/einfach-mit-php-ordner-auslesen-und-felder-und-bilder-anzeigen-tutorial/ There are several files included in the .zip file. I tested "images.php" and "files.php," and both work exactly as…