clean
This commit is contained in:
parent
62c7107233
commit
cb5ad765a1
@ -4,6 +4,8 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
static float get_price(std::string& str)
|
static float get_price(std::string& str)
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -24,7 +26,7 @@ static float get_price(std::string& str)
|
|||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
// pain 2€ 1
|
|
||||||
static int get_quantity(std::string& str)
|
static int get_quantity(std::string& str)
|
||||||
{
|
{
|
||||||
unsigned int quantity = 0;
|
unsigned int quantity = 0;
|
||||||
@ -32,7 +34,6 @@ static int get_quantity(std::string& str)
|
|||||||
|
|
||||||
for (i = 0; i != str.size(); i++)
|
for (i = 0; i != str.size(); i++)
|
||||||
{
|
{
|
||||||
std::cout << str[i] << std::endl;
|
|
||||||
if (!std::isdigit(str[i]))
|
if (!std::isdigit(str[i]))
|
||||||
{
|
{
|
||||||
if (quantity != 0)
|
if (quantity != 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user