1
After the "Hello, my name eh Locao......" for me, in logic, I should continue, and if the user wrote 'talk' he would say "Oh, so Voce wants to talk?!". But at that moment it stops, just doesn’t appear anything after that, then if I write anything it goes to the last if
and ends.
#include <iostream>
using namespace std;
//Variaveis
char assunto[50] = "conversar";
//Logica
int main()
{
cout << "Ola, meu nome eh LOCAO, e estou aqui para te ajudar, o que voce deseja?" << endl ;
cin >> assunto;
if (assunto == "conversar")
cout<<"Oh! Entao você quer conversar?! Sobre o que?"<< endl;
if (cin >> assunto)
cout << "Ah sim, isso eh muito legal" << endl;
system("pause");
return 0;
}
I created another project, and now mentions unspecified path! Before it didn’t work when it gave F5, now neither will this
– Guilherme Castello
Take a look at [tour]. You can accept an answer if it solved your problem. You can vote on every post on the site as well. Did any help you more? You need something to be improved?
– Maniero