i am trying to make a spanish program whereit gives you a word to translate and you must translate it to english. if you get it right it says correct and if wrong it says incorrect. (this is just for learning purposes.)
Code:#include <iostream> using namespace std; string dormir; int main() { cout<<"welome to my spanish program!\n"; cout<<"Translate each spanish word into english. Here is the first question out of ten.\n"; cout<<"Dormir\n"; cin>>dormir; cin.ignore(); if (sleep == dormir) { cout<<"correct!\n"; } else if (dormir != sleep) { cout<<"incorrect...\n"; } system("Pause"); }