   I'm new with the dev c + +
  I tried this but I have the first problems with thisP.S.Sorry for the bad writing, I speak SpanishThis is the code://    char Tecla;    Tecla = Arriba;    if (Tecla == Arriba)    {    cout <<"OK";    }//I have a error in Tecla = Arriba;   
  You need to put strings (texts) in these things ".and a char variable can only contain one character (letter)So you will need a char array or a char pointer.you could do it like this:char Tecla[20];Tecla = "Arriba";if(Tecla == "Arriba"){cout<<"ok";}or did was Arriba just a variable nameif so, then the variable Arriba needs to be of the same type as the variable Tecla   ;  wow, what response more faster[20] did not knowthanks, I tried but so//Line 1: char Tecla[20];Line 2: Tecla = "Arriba";Line 4: if(Tecla == "Arriba")Line 5: {Line 6: cout<<"ok";Line 7: }//this is the message error:2:expected constructor, destructor, or type conversion before '=' token 2:expected `,' or `;' before '=' token 4:expected unqualified-id before "if" 4:expected `,' or `;' before "if";  Firstly, you should take a look at Why you shouldn't use Dev-C++; your choice of tools is extremely outdated and buggy, and there are numerous free alternatives available that don't suffer the same problems.Secondly, if you're using C++ you shouldn't be putting your text in character arrays as selected, but instead should look into using std::string, which manages a lot of the problems you might experience trying to work with character arrays directly.Hope that helps, let us know if you're able to properly solve your problem after reading that article. [smile]   ;  It's so weird now going to boards with my old handle. I'm so used to "Cymon" now.The other option is to make Arriba a constant flag. Like this:const int Arriba = 10;int Tecla;Tecla = Arriba;if (Tecla == Arriba){    cout <<"OK";}Internal to your code this has the desired effect, but the down side is if you ever try doing somethign like "cout <<Arriba;" your output will be the value of Arriba, not the word Arriba. That's because Arriba is now a variable, not a word.Spanish variables. What a trip.   ;  Shouldn't he be using strcmp instead of an equality check?char *Tecla = "Arriba";if (strcmp(Tecla, "Arriba") == 0){cout << "ok";}but seriously, use std::string :)   