Page 2 of 3
Posted: Sat Jan 20, 2007 4:20 am
by maceric
mmm strano a me ha sempre funzionato. non saprei.
del resto:
la pagina del man
clear(1) clear(1)
NAME
clear - clear the terminal screen
SYNOPSIS
clear
DESCRIPTION
clear clears your screen if this is possible. It looks in the environ-
ment for the terminal type and then in the terminfo database to figure
out how to clear the screen.
SEE ALSO
tput(1), terminfo(5)
Posted: Sat Jan 20, 2007 4:23 am
by maceric
tze tze certo mica mi sorprendo di essere lento...
eh flash

Posted: Sat Jan 20, 2007 4:30 am
by iGodness
OT: Ho visto nel terminale che clear e' supportato. Ma se metto la seguente stringa nel sorgente .c:
void pulisci(void){
clear(); //for linux e mac
//system("cls"); //for win
return;
L'errore e' il seguente:
/usr/bin/ld: Undefined symbols:
_clear
collect2: ld returned 1 exit status
Ho anche provato a mettere clr(); ma e' uguale.
Scusate il divagamento dal topic principale
Posted: Sat Jan 20, 2007 5:08 am
by Gran Maestro
Ad occhio e croce, il comando clear() non si trova nella $PATH.
(/usr/bin/ld è un comando dell'editor che cerca di "linkare" clear)
Da qualche parte viene fatta una dichiarazione non esatta, oppure gli headers
SDK non sono corretti.
Credo abbia a che fare con qualche incompatibilità tra gcc3 e gcc4.
Di più però non ti so dire.
/P
Posted: Sat Jan 20, 2007 7:53 am
by iGodness
Sistemato. Programma finito di compilare con successo

Posted: Sat Jan 20, 2007 7:54 am
by Gran Maestro
iGodness wrote:Sistemato. Programma finito di compilare con successo
Bravo, ma il problema qual'era?
/P
Posted: Sat Jan 20, 2007 8:10 am
by iGodness
Sintassi errata. Ecco il codice corretto:
void pulisci(void){
system("clear"); //for linux e mac
//system("cls"); //for win
return;
}
In altre parole, errore di disattenzione.
Posted: Mon Jan 29, 2007 1:56 pm
by roberto.petrara
scusate ragazzi qualkuno può dirmi come faccio a programmare con mac in linguaggio visual c++?
Posted: Mon Jan 29, 2007 7:23 pm
by TheCube
roberto.petrara wrote:scusate ragazzi qualkuno può dirmi come faccio a programmare con mac in linguaggio visual c++?
Semplice: non puoi!
Posted: Tue Jan 30, 2007 12:56 am
by roberto.petrara
TheCube wrote:roberto.petrara wrote:scusate ragazzi qualkuno può dirmi come faccio a programmare con mac in linguaggio visual c++?
Semplice: non puoi!
è come potrei fare a programma con mac quale programma posso utilizzare?