#include <iostream> #include <string> #include <vector> using namespace std; #include "aluno.H" int main() { vector<Aluno> alunos; alunos.push_back(Aluno("Zé", 1234, 15)); alunos.push_back(Aluno("Zacarias", 666, 20)); alunos.push_back(Aluno("Marta", 5465, 18)); alunos.push_back(Aluno("Maria", 1111, 14)); cout << "Pauta:" << endl; for(vector<Aluno>::size_type i = 0; i != alunos.size(); ++i) cout << alunos[i] << endl; cout << "De que aluno deseja saber a nota? "; string nome; cin >> nome; for(vector<Aluno>::size_type i = 0; i != alunos.size(); ++i) if(alunos[i].nome() == nome) { cout << "O aluno " << nome << " teve " << alunos[i].nota() << " valores." << endl; if(not positiva(alunos[i].nota())) cout << "Este aluno reprovou." << endl; } }