1)
namespace
http://forum.html.it/forum/showthrea...ight=namespace
------------------------------------------------


2)

strcmp()
http://digilander.libero.it/uzappi/C...ni/strcmp.html
prova questo:

char stringa[]="ciao";
int i;

i = strcmp(stringa, "ciap"); //ciao MINORE di ciap (restituisce -1)
cout << i << endl;

i = strcmp(stringa, "ciao"); //ciao UGUALE a ciao (restituisce 0)
cout << i << endl;

i = strcmp(stringa, "cian"); //ciao MAGGIORE di cian (restituisce 1)
cout << i << endl;
--------------------------------------------------------


! NOT logico
http://www.ilmac.net/scuola_di_mac/c...nguaggioc4.htm

quindi:

if( strcmp(stringa, "ciao") == 0 )

e

if( ! strcmp(stringa, "ciao") )

si equivalgono
---------------------------------------