clean
This commit is contained in:
parent
62c7107233
commit
cb5ad765a1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user