This commit is contained in:
starnakin 2023-10-11 18:58:22 +00:00
parent 62c7107233
commit cb5ad765a1

View File

@ -4,6 +4,8 @@
#include <string>
#include <iostream>
#include "config.h"
static float get_price(std::string& str)
{
@ -24,7 +26,7 @@ static float get_price(std::string& str)
}
return 0;
}
// pain 2€ 1
static int get_quantity(std::string& str)
{
unsigned int quantity = 0;
@ -32,7 +34,6 @@ static int get_quantity(std::string& str)
for (i = 0; i != str.size(); i++)
{
std::cout << str[i] << std::endl;
if (!std::isdigit(str[i]))
{
if (quantity != 0)