-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIngles.h
More file actions
47 lines (43 loc) · 731 Bytes
/
Copy pathIngles.h
File metadata and controls
47 lines (43 loc) · 731 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
39
40
41
42
43
44
45
46
#pragma once
#include <iostream>
#include <vector>
#include <functional>
#include <string>
#include <fstream>
using namespace std;
class Ingles
{
private:
unsigned short n;
string alternativa;
vector<string>datos; //estructura
public:
Ingles()
{
n = 1;
string linea;
ifstream miarchivo("Ingles.txt");
if (!miarchivo.fail())
{
while (!miarchivo.eof())
{
getline(miarchivo, linea);
datos.push_back(linea);
}
miarchivo.close();
}
}
//void Recalibracion(){}
void Niveles(short n)
{
cout << "Nivel " << n << endl;
cout << datos.at(n) << endl;
getline(cin, alternativa);
if (alternativa[0] == datos.at(n + 1)[0])
{
/*usuario->maspuntuacion();*/
system("CLS");
Niveles(++n);
}
}
};