Ok, so basically I have an assignment in which I have to determine if what the user typed in is a number between 0-9, a letter or a symbol. The commands I can use are:
cout
endl
system("pause")
system("cls")
#include<iomanip>
setw(#)
setfill('ch')
"\t"
cin
getline(cin,s)
bool
char
int
double
string
#include<string>
#include<cmath>
#include<windows.h> → directiva utilizada para poder el comando de ::Sleep()
::Sleep(#)
n.length()
&&
||
IF/ELSE:
-----if(condición)
-----{
-------// código
-----}else{
-------// código
-----}
(t)x → changes the variable x to variable type t
SWITCH:
-----switch(variable)
-----{
----------case n : // código
-------------------break;
----------default : // código
--------------------break;
-----}
FOR:
-----for(contador; condición salida; actualización)
-----{
--------// código
-----}
WHILE:
-----while(condición salida)
-----{
----------// código
-----}
DO/WHILE:
-----do
-----{
-------// código
-----}while(condición salida);
-- Nothing else. I don't need to use all of them obviously.
Normally i don't like to get outside help but this is really important for a project I'm doing. If anyone could take the time to help me that would be wonderful.