Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Sta je sa ovim ???

[es] :: C/C++ programiranje :: Sta je sa ovim ???

[ Pregleda: 3923 | Odgovora: 5 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

BORG
Aleksandar (Sasa) U.
*NIX System/Network Administrator
BL-RS

Član broj: 200
Poruke: 916
195.252.78.*

ICQ: 46124351
Sajt: bitches.kicks-ass.net


Profil

icon Sta je sa ovim ???22.12.2001. u 14:52 - pre 271 meseci
#include <stdio.h>
main()
{
int c;
c = ` `;
printf("Enter a character:\n(enter x to exit)\n");
while (c != `x') {
c = getc(stdin);
putchar(c);
}
printf("\nOut of the while loop. Bye!\n");
return 0;
}

Sta je u k**** sa ovim ? Nesto ovde nije u redu:
while (c != `x')

Poz
With a PC, I always felt limited
by the software available.
On Unix, I am limited only by my knowledge.

--Peter J. Schoenster
 
Odgovor na temu

Mikky

Član broj: 18
Poruke: 1563
*.87.EUnet.yu

ICQ: 44582291


+58 Profil

icon Re: Sta je sa ovim ???22.12.2001. u 21:51 - pre 271 meseci
while (c != `x') znaci vrti petlju dok je ASCII vrednost karaktera 'c' razlicita od ASCII vrednosti karaktera 'x'
-I know UNIX, PASCAL, C, FORTRAN,
COBOL, and nineteen other high-tech
words.
 
Odgovor na temu

BORG
Aleksandar (Sasa) U.
*NIX System/Network Administrator
BL-RS

Član broj: 200
Poruke: 916
195.252.78.*

ICQ: 46124351
Sajt: bitches.kicks-ass.net


Profil

icon Re: Sta je sa ovim ???22.12.2001. u 22:07 - pre 271 meseci
Ma znam sta znaci...samo kad tako napisem nece da radi...

With a PC, I always felt limited
by the software available.
On Unix, I am limited only by my knowledge.

--Peter J. Schoenster
 
Odgovor na temu

madman
Zoran Dobric
Batajnica

Član broj: 820
Poruke: 53
*.ptt.yu

Sajt: www.smartwebart.co.yu


Profil

icon Re: Sta je sa ovim ???22.12.2001. u 23:38 - pre 271 meseci
while (c != `x')
a
jesi li probo while(c!='x')
` je razlicito od '

Code:

#include <stdio.h> 
main() 

int c; 
c = ' ';
printf("Enter a character:\n(enter x to exit)\n");
while (c != 'x') {
c = getc(stdin); 
putchar(c); 

printf("\nOut of the while loop. Bye!\n"); 
return 0; 
}

MaD MaN
 
Odgovor na temu

BORG
Aleksandar (Sasa) U.
*NIX System/Network Administrator
BL-RS

Član broj: 200
Poruke: 916
195.252.78.*

ICQ: 46124351
Sajt: bitches.kicks-ass.net


Profil

icon Re: Sta je sa ovim ???23.12.2001. u 10:14 - pre 271 meseci
evo ga...radi
ovo je bilo u pitanju "''"...tako treba da bude..
With a PC, I always felt limited
by the software available.
On Unix, I am limited only by my knowledge.

--Peter J. Schoenster
 
Odgovor na temu

Riste Pejov
Team Leader/Senior Software Developer @
Ein-Sof ltd Skopje
Skopje, Macedonia

Član broj: 128
Poruke: 571
*.mt.net.mk

Jabber: richie@bagra.net.mk
ICQ: 154236769
Sajt: riste.softver.org.mk


Profil

icon Re: Sta je sa ovim ???26.12.2001. u 11:59 - pre 271 meseci
Citat:
BORG:
evo ga...radi
ovo je bilo u pitanju "''"...tako treba da bude..


navika iz pascala
kad bih mozda probao sa pascal compilerom onda se compiler ne bi bunio
oko 'stringova'
People who think they know everything tend to irritate those of us who do.
 
Odgovor na temu

[es] :: C/C++ programiranje :: Sta je sa ovim ???

[ Pregleda: 3923 | Odgovora: 5 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.