-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAlimento.cpp
More file actions
38 lines (32 loc) · 786 Bytes
/
Copy pathAlimento.cpp
File metadata and controls
38 lines (32 loc) · 786 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
// ---------- Projeto II AVL - EDII ------------
// --------- Grupo cavalo_sentado.png ----------
// Claudia Fiorentino Andrade - 42005302
// João Victor Ferreira Pimenta - 42005876
// Joyce Cui - 42017157
// Ryan Marco Andrade dos Santos - 42080223
// Victor Prado Chaves - 32070772
// Alimento.cpp
#include "Alimento.h"
#include "Utils.h"
Alimento::Alimento(){
m_nome = "";
std::list<float> m_nutrientes;
}
Alimento::Alimento(std::string dados[])
{
m_nome = dados[0];
for (int i = 1; i < 11; i++)
m_nutrientes.push_back(std::stof(dados[i], nullptr));
}
std::string Alimento::GetNome() const
{
return m_nome;
}
void Alimento::SetNome(std::string novoNome)
{
m_nome = novoNome;
}
std::list<float> Alimento::GetNutrientes()
{
return m_nutrientes;
}