/* Code source du programme infoanglais.exe */
/* Le premier programme créé par un ours (!) */
/* Vous pouvez exécuter, copier, distribuer, modifier et améliorer à souhait ce petit 'logiciel'. */
/* Une remarque ? Une critique ? Une suggestion ? PaddingtonBrown_arobase_laposte_point_net */
/* Vocabulaire informatique + sigles courants + adjectifs composés */
#include <iostream>
#include <string>
void anglais()
{
std::string reponse;
std::string a1 = "verify";
std::string a2 = "check";
std::string b = "foot-rest";
std::string c1 = "break";
std::string c2 = "rest";
std::string d = "scroll_bar";
std::string f = "knowledge";
std::string g = "once";
std::string h = "nickname";
std::string i1 = "ask_for";
std::string i2 = "solicit";
std::string j1 = "otherwise";
std::string j2 = "else";
std::string k1 = "spread";
std::string k2 = "propagate";
std::string l = "inbox";
std::string m = "cancel";
std::string n = "shortcut";
std::string o = "shoulder";
std::string p = "avoid";
std::string q = "hardly";
std::string r = "nought";
std::string s = "target";
std::string t1 = "aim";
std::string t2 = "goal";
std::string u = "pedantic";
std::string v = "allow";
std::string w = "deaf-and-dumb";
std::string x = "demonstration";
std::string y = "meanwhile";
std::string z = "responsible_for";
std::string aa = "seldom";
std::string ab = "unlike";
std::string ac = "behaviour";
std::string ad = "fuzzy";
std::string ae = "moreover";
int note = 0;
int total = 0;
std::cout << "______________________________________________________________" << std::endl << std::endl;
std::cout << "Attention ! Un espace dans une reponse = un underscore _" << std::endl;
std::cout << "Attention ! Les accents ne sont pas pris en compte !" << std::endl << std::endl;
std::cout << "Traductions francais > anglais" << std::endl << std::endl << std::endl;
std::cout << "Entrer la traduction du mot 'verifier' : to ";
std::cin >> reponse;
if (reponse == a1 || reponse == a2) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << "to " << a1 << " ou " << "to " << a2 << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'repose-pieds' : ";
std::cin >> reponse;
if (reponse == b) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << b << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'pause' : ";
std::cin >> reponse;
if (reponse == c1 || reponse == c2) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << c1 << " ou " << c2 << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'barre de defilement' : the ";
std::cin >> reponse;
if (reponse == d) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << "the " << d << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'connaissance' : ";
std::cin >> reponse;
if (reponse == f) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << f << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'une fois que' : ";
std::cin >> reponse;
if (reponse == g) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << g << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'surnom' : ";
std::cin >> reponse;
if (reponse == h) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << h << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'postuler a' : to ";
std::cin >> reponse;
if (reponse == i1 || reponse == i2) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << "to " << i1 << " ou " << "to " << i2 << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'sinon, autrement' : ";
std::cin >> reponse;
if (reponse == j1 || reponse == j2) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << j1 << " ou " << j2 << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'se propager' : to ";
std::cin >> reponse;
if (reponse == k1 || reponse == k2) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << "to " << k1 << " ou " << "to " << k2 << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'boite de reception' : ";
std::cin >> reponse;
if (reponse == l) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << l << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'annuler' : to ";
std::cin >> reponse;
if (reponse == m) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << "to " << m << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'raccourci' : ";
std::cin >> reponse;
if (reponse == n) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << n << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'epaule' : ";
std::cin >> reponse;
if (reponse == o) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << o << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'eviter' : to ";
std::cin >> reponse;
if (reponse == p) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << "to " << p << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'a peine' : ";
std::cin >> reponse;
if (reponse == q) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << q << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'zero' : ";
std::cin >> reponse;
if (reponse == r) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << r << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'cible, objectif' : ";
std::cin >> reponse;
if (reponse == s) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << s << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'but' : ";
std::cin >> reponse;
if (reponse == t1 || reponse == t2) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << t1 << " ou " << t2 << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'pedant' : ";
std::cin >> reponse;
if (reponse == u) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << u << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'permettre' : ";
std::cin >> reponse;
if (reponse == v) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << v << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'sourd et muet' : ";
std::cin >> reponse;
if (reponse == w) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << w << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'manifestation' : ";
std::cin >> reponse;
if (reponse == x) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << x << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'pendant ce temps' : ";
std::cin >> reponse;
if (reponse == y) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << y << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'responsable de' (en deux mots) : ";
std::cin >> reponse;
if (reponse == z) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << z << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'rarement' : ";
std::cin >> reponse;
if (reponse == aa) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << aa << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'contrairement a' : ";
std::cin >> reponse;
if (reponse == ab) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << ab << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'comportement' : ";
std::cin >> reponse;
if (reponse == ac) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << ac << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'flou' : ";
std::cin >> reponse;
if (reponse == ad) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << ad << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'en outre' : ";
std::cin >> reponse;
if (reponse == ae) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << ae << std::endl << std::endl, total++;}
std::cout << "Vous avez obtenu la note suivante : " << note << " sur " << total << std::endl;
}
void francais()
{
std::string reponse;
std::string a = "trou";
std::string b1 = "pare-feu";
std::string b2 = "parefeu";
std::string c = "chemin";
std::string d = "pertinent";
std::string e = "s'inscrire";
std::string f = "mettre_a_jour";
std::string g = "astucieux";
std::string h = "drapeau";
std::string i = "a_moins_que";
std::string j = "bureau";
std::string k = "arriere-plan";
std::string l = "sante";
std::string m1 = "contact";
std::string m2 = "copain";
std::string n = "expediteur";
std::string o = "reseau";
std::string p = "araignee";
std::string q1 = "logiciel_espion";
std::string q2 = "espiogiciel";
std::string r = "itineraire";
std::string s = "failure";
int note = 0;
int total = 0;
std::cout << "______________________________________________________________" << std::endl << std::endl;
std::cout << "Attention ! Un espace dans une reponse = un underscore _" << std::endl;
std::cout << "Attention ! Les accents ne sont pas pris en compte !" << std::endl << std::endl;
std::cout << "Traductions anglais > francais" << std::endl << std::endl << std::endl;
std::cout << "Entrer la traduction du mot 'hole' : ";
std::cin >> reponse;
if (reponse == a) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << a << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'firewall' : ";
std::cin >> reponse;
if (reponse == b1 || reponse == b2) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << b1 << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'path' : ";
std::cin >> reponse;
if (reponse == c) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << c << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'relevant' : ";
std::cin >> reponse;
if (reponse == d) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << d << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'to sign up' : ";
std::cin >> reponse;
if (reponse == e) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << e << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'to upgrade' : ";
std::cin >> reponse;
if (reponse == f) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << f << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'tricky' : ";
std::cin >> reponse;
if (reponse == g) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << g << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'flag' : ";
std::cin >> reponse;
if (reponse == h) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << h << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'unless' : ";
std::cin >> reponse;
if (reponse == i) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << i << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'desktop' : ";
std::cin >> reponse;
if (reponse == j) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << j << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'background' : ";
std::cin >> reponse;
if (reponse == k) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << k << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'health' : ";
std::cin >> reponse;
if (reponse == l) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << l << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'buddy' : ";
std::cin >> reponse;
if (reponse == m1 || reponse == m2) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << m1 << " ou " << m2 << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'sender' : ";
std::cin >> reponse;
if (reponse == n) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << n << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'network' : ";
std::cin >> reponse;
if (reponse == o) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << o << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'spider' : ";
std::cin >> reponse;
if (reponse == p) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << p << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'spyware' : ";
std::cin >> reponse;
if (reponse == q1 || reponse == q2) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << q1 << " ou " << q2 << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'route' : ";
std::cin >> reponse;
if (reponse == r) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << r << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'echec' : ";
std::cin >> reponse;
if (reponse == s) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << s << std::endl << std::endl, total++;}
std::cout << "Vous avez obtenu la note suivante : " << note << " sur " << total << std::endl;
}
void sigles()
{
std::string reponse;
std::string a = "Uniform_Ressource_Locator";
std::string b = "Universal_Serial_Bus";
std::string c = "File_Transfer_Protocol";
std::string d = "Hyper_Text_Transfer_Protocol";
std::string e = "Extremely_Low_Frequency";
std::string f = "Operating_System";
std::string g = "Graphical_User_Interface";
std::string h = "Central_Processing_Unit";
std::string i = "Random_Access_Memory";
std::string j = "Read_Only_Memory";
std::string k = "Hyper_Text_Markup_Language";
std::string l = "Compact_Disc";
std::string m = "Digital_Versatile_Disc";
std::string n = "Laughing_Out_Loud";
std::string o = "Short_Message_Service";
std::string p = "Personal_Computer";
std::string q = "British_Broadcasting_Corporation";
std::string r = "Frequency_Modulation";
std::string s = "Liquid_Crystal_Display";
std::string t = "World_Wide_Web";
std::string u = "Internet_Service_Provider";
int note = 0;
int total = 0;
std::cout << "______________________________________________________________" << std::endl << std::endl;
std::cout << "Attention ! Un espace dans une reponse = un underscore _" << std::endl;
std::cout << "Attention ! Les accents ne sont pas pris en compte !" << std::endl << std::endl;
std::cout << "Sigles" << std::endl << std::endl << std::endl;
std::cout << "Que signifie le sigle URL : ";
std::cin >> reponse;
if (reponse == a) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << a << std::endl << std::endl, total++;}
std::cout << "Que signifie le sigle USB : ";
std::cin >> reponse;
if (reponse == b) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << b << std::endl << std::endl, total++;}
std::cout << "Que signifie le sigle FTP : ";
std::cin >> reponse;
if (reponse == c) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << c << std::endl << std::endl, total++;}
std::cout << "Que signifie le sigle HTTP : ";
std::cin >> reponse;
if (reponse == d) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << d << std::endl << std::endl, total++;}
std::cout << "Que signifie le sigle ELF : ";
std::cin >> reponse;
if (reponse == e) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << e << std::endl << std::endl, total++;}
std::cout << "Que signifie le sigle OS : ";
std::cin >> reponse;
if (reponse == f) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << f << std::endl << std::endl, total++;}
std::cout << "Que signifie le sigle GUI : ";
std::cin >> reponse;
if (reponse == g) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << g << std::endl << std::endl, total++;}
std::cout << "Que signifie le sigle CPU : ";
std::cin >> reponse;
if (reponse == h) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << h << std::endl << std::endl, total++;}
std::cout << "Que signifie le sigle RAM : ";
std::cin >> reponse;
if (reponse == i) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << i << std::endl << std::endl, total++;}
std::cout << "Que signifie le sigle ROM : ";
std::cin >> reponse;
if (reponse == j) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << j << std::endl << std::endl, total++;}
std::cout << "Que signifie le sigle HTML : ";
std::cin >> reponse;
if (reponse == k) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << k << std::endl << std::endl, total++;}
std::cout << "Que signifie le sigle CD : ";
std::cin >> reponse;
if (reponse == l) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << l << std::endl << std::endl, total++;}
std::cout << "Que signifie le sigle DVD : ";
std::cin >> reponse;
if (reponse == m) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << m << std::endl << std::endl, total++;}
std::cout << "Que signifie le sigle LOL : ";
std::cin >> reponse;
if (reponse == n) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << n << std::endl << std::endl, total++;}
std::cout << "Que signifie le sigle SMS : ";
std::cin >> reponse;
if (reponse == o) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << o << std::endl << std::endl, total++;}
std::cout << "Que signifie le sigle PC : ";
std::cin >> reponse;
if (reponse == p) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << p << std::endl << std::endl, total++;}
std::cout << "Que signifie le sigle BBC : ";
std::cin >> reponse;
if (reponse == q) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << q << std::endl << std::endl, total++;}
std::cout << "Que signifie le sigle FM : ";
std::cin >> reponse;
if (reponse == r) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << r << std::endl << std::endl, total++;}
std::cout << "Que signifie le sigle LCD : ";
std::cin >> reponse;
if (reponse == s) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << s << std::endl << std::endl, total++;}
std::cout << "Que signifie le sigle WWW : ";
std::cin >> reponse;
if (reponse == t) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << t << std::endl << std::endl, total++;}
std::cout << "Que signifie le sigle ISP : ";
std::cin >> reponse;
if (reponse == u) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << u << std::endl << std::endl, total++;}
std::cout << "Vous avez obtenu la note suivante : " << note << " sur " << total << std::endl;
}
void adjectifs()
{
std::string reponse;
std::string a = "hard-working";
std::string b = "sun-tanned";
std::string c = "handwritten";
std::string d = "user-friendly";
std::string e = "well-brought_up";
std::string f = "open-minded";
std::string g = "dark-blue";
std::string h = "two-door";
std::string i = "one-legged";
std::string j = "red-haired";
std::string k = "good-looking";
std::string l = "ten-year-old";
std::string m = "never-ending";
std::string n = "green-eyed";
std::string o = "nasty-smelling";
int note = 0;
int total = 0;
std::cout << "______________________________________________________________" << std::endl << std::endl;
std::cout << "Attention ! Un espace dans une reponse = un underscore _" << std::endl;
std::cout << "Attention ! Les accents ne sont pas pris en compte !" << std::endl << std::endl;
std::cout << "Adjectifs composés" << std::endl << std::endl << std::endl;
std::cout << "Entrer la traduction de la phrase 'une fille qui travaille dur' (a ... woman) : ";
std::cin >> reponse;
if (reponse == a) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << a << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'bronzé' : ";
std::cin >> reponse;
if (reponse == b) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << b << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'ecrite a la main' : ";
std::cin >> reponse;
if (reponse == c) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << c << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'convivial' : ";
std::cin >> reponse;
if (reponse == d) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << d << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction du mot 'bien eleve' : ";
std::cin >> reponse;
if (reponse == e) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << e << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction de la phrase 'un homme a l'esprit ouvert' (an ... man) : ";
std::cin >> reponse;
if (reponse == f) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << f << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction de la phrase 'bleu fonce' : ";
std::cin >> reponse;
if (reponse == g) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << g << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction de la phrase 'une voiture à deux portes' (a ... car) : ";
std::cin >> reponse;
if (reponse == h) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << h << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction de la phrase 'un homme unijambiste' (a ... man) : ";
std::cin >> reponse;
if (reponse == i) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << i << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction de la phrase 'une fille aux cheveux roux' (a ... girl) : ";
std::cin >> reponse;
if (reponse == j) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << j << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction de la phrase 'beau' (a ... man) : ";
std::cin >> reponse;
if (reponse == k) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << k << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction de la phrase 'un enfant de 10 ans' (a ... child) : ";
std::cin >> reponse;
if (reponse == l) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << l << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction de la phrase 'une histoire sans fin' (a ... story) : ";
std::cin >> reponse;
if (reponse == m) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << m << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction de la phrase 'un garcon aux yeux verts' (a ... boy) : ";
std::cin >> reponse;
if (reponse == n) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << n << std::endl << std::endl, total++;}
std::cout << "Entrer la traduction de la phrase 'une poubelle qui sent mauvais' (a ... garbage) : ";
std::cin >> reponse;
if (reponse == o) {std::cout << "Bravo" << std::endl << std::endl, note++, total++;}
else {std::cout << "Erreur : la reponse etait " << o << std::endl << std::endl, total++;}
std::cout << "Vous avez obtenu la note suivante : " << note << " sur " << total << std::endl;
}
int main()
{
char choix;
std::cout << "L'ANGLAIS EN INFORMATIQUE" << std::endl << std::endl;
std::cout << "(1) Traductions francais > anglais" << std::endl;
std::cout << "(2) Traductions anglais > francais" << std::endl;
std::cout << "(3) Le langage des sigles" << std::endl;
std::cout << "(4) Adjectifs composes" << std::endl << std::endl;
std::cout << "Faites votre choix : ";
std::cin >> choix;
switch(choix)
{
case '1': anglais();
break;
case '2': francais();
break;
case '3': sigles();
break;
case '4': adjectifs();
break;
default:
std::cout << "Erreur de saisie" << std::endl << std::endl;
}
system("Pause");
return 0;
}