C question...
Sifalakis Manolis
msifa at ariadne-t.gr
Fri Feb 20 16:03:34 EET 1998
Costas Vlassis wrote:
>
> Exm ok isos pefto "ligooooooo..." ektos 8ematos listas
> alla exo na teleioso kati se C kai mias kai thn exo ksexasei
> ligoylaki (Bioxhmeia kai C den kollane kai poly) afoy edo yparxoyn
> arketoi specialists eipa na rotiso...
>
> Exoyme kai leme an exo ena string, poy 8elo na tiposo kai
> na einai "O kostas exei 500drx sti tsepi toy" o monos
> tropos na balo to "500" ekei einai o akoloy8os or not ?
> Prepei na yparxei kai pio efkolos-aplos!
>
> i=500;
> strpcy(alfa, "O kostas exei ");
> sprintf(beta, "%d", i);
> strcat(alfa,beta);
> strcat(alfa,"drx sti tsepi toy");
>
> Any help appreciated, parakalo me E-mail gia na mhn
> taleporo kai toys ypolipoys xristes....
>
An thes na kaneis kati toso aplo oso katalava, tote diale3es to
dyskolotero tropo pou tha mporousa na fantastw. Just do :
printf("O kostas exei %i drx sti tsepi tou",i);
kai an thes na to valeis de kai kala se pinaka, xrisimopoiise tin
sprintf() kai frontise o pinakas sou na einai arketa megalos.
Manolis.
--
------------------------------------------------------------------
Sifalakis Manolis (WILLY)
e-mail: msifa at ariadne-t.gr
tel: +030 01 6544279
** ARIADNE-T NOC **
NCSR DEMOKRITOS
------------------------------------------------------------------
--
====================================================================
Gia boithia (h na diagrafhte) e-mail sto majordomo at argos.hol.gr
Ta archives tis listas einai sto http://www.argos.hol.gr/lists :
prin steilete kapoia erothsh psakte mipos exei hdh apanththei.
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users
====================================================================
More information about the Linux-greek-users
mailing list