Код: Выделить всё
#include
#include
using namespace std;
#include
#include
void writeFile(string name, string surname, double final)
{
string finalBill = std::to_string(final);
std::ofstream MyFile(name + "order.txt");
enter code here
if (!MyFile.is_open())
{
std::cout
Подробнее здесь: [url]https://stackoverflow.com/questions/79130908/why-is-my-code-jumping-directly-to-the-if-price-0-statement-and-not-first-t[/url]
Мобильная версия