chao moi nguoi! Minh muon truyen con tro a vao trong ham nhap. Sau do goi ham hien thi de hien thi ra. Van de o day la sau khi ra khoi ham nhap cac gia tri nhap vao bien a ko con nua. Minh da thu chay chuong trinh nay voi dieu kien bien a la public. Nhung bi jo minh muon truyen no qua ham vay minh
: [EMAIL PROTECTED]
To: vietlug-users@lists.sourceforge.net
Subject: Re: [Vietlug] day la doan text tui dinh gui len
chao moi nguoi! Minh muon truyen con tro a vao trong ham nhap. Sau do goi ham
hien thi de hien thi ra. Van de o day la sau khi ra khoi ham nhap cac gia tri
nhap vao bien a ko con
On 9/14/06, G TT [EMAIL PROTECTED] wrote:
Vi` white spaces ddu+o+.c xem nhu+ string terminator, ne^n xem ma~:
#inclue stdio.h
int main()
{
char str[80];
printf(Enter some words (or 'ctrl-c' to break): );
scanf(%s, str); == buffer length unchecked HERE
It is a very *stupid* idea to
http://c-faq.com/stdio/scanfprobs.html
On 9/14/06, NAHieu [EMAIL PROTECTED] wrote:
On 9/14/06, G TT [EMAIL PROTECTED] wrote:
Vi` white spaces ddu+o+.c xem nhu+ string terminator, ne^n xem ma~:
#inclue stdio.h
int main()
{
char str[80];
printf(Enter some words (or 'ctrl-c' to
hàm fflush(stdin)
nhưng kết quả vẫn như cũ. Ai đó giúp mình với. Mình xin
cám ơn!!!
---
Date: Thu, 14 Sep 2006 14:36:26 +0200
From: [EMAIL PROTECTED]
To: vietlug-users@lists.sourceforge.net
Subject: Re: [Vietlug] day la doan text tui dinh gui len
http://c
).
---
Date: Tue, 12 Sep 2006 07:42:08 -0700
From: [EMAIL PROTECTED]
To: vietlug-users@lists.sourceforge.net
Subject: Re: [Vietlug] day la doan text tui dinh gui len
theo tui duoc biet thi no khong he co tac dung vi du co hay ko co thi ket
qua van vay!!! Hic help me
Hong
#include stdio.h
int main()
{
char str[80];
printf(Enter some words: );
scanf(%s, str);
printf(The first word you entered is : %s\n, str );
fflush(stdin); //is it work ?
printf(Enter some words: );
scanf(%s, str);
printf(The first word you entered is : %s\n, str );
theo tui duoc biet thi no khong he co tac dung vi du co hay ko co thi ket qua van vay!!! Hic help meHong Tran Duc [EMAIL PROTECTED] wrote: #include "stdio.h"int main(){ char str[80];printf("Enter some words: ");scanf("%s", str);printf("The first word you entered is : %s\n", str
07:42:08 -0700
From: [EMAIL PROTECTED]
To: vietlug-users@lists.sourceforge.net
Subject: Re: [Vietlug] day la doan text tui dinh gui len
theo tui duoc biet thi no khong he co tac dung vi du co hay ko co thi ket qua
van vay!!! Hic help me
Hong Tran Duc [EMAIL PROTECTED] wrote:
#include
On 5:50:50 am 09/11/06 hong pham [EMAIL PROTECTED] wrote:
#32;Stay in the know. Pulse on the new Yahoo.com. Check it
out.
Gu+?i la.i du`m Hong Pham
Mình vừa gặp phải một lỗi rất khó hiểu. Đây là đoạn
mã nguồn của mình:
#include stdio.h
int main()
{
char str[80];
` chi? thuc hie^n duoc
1 la^`n.
Cuong.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Larry Nguyen
Sent: Tuesday, September 12, 2006 12:12 PM
To: vietlug-users@lists.sourceforge.net
Subject: Re: [Vietlug] day la doan text tui dinh gui len
On 5:50:50 am 09
: Tuesday, September 12, 2006 12:12 PM
To: vietlug-users@lists.sourceforge.net
Subject: Re: [Vietlug] day la doan text tui dinh gui len
On 5:50:50 am 09/11/06 hong pham [EMAIL PROTECTED] wrote:
#32;Stay in the know. Pulse on the new Yahoo.com. Check it
out.
Gu+?i la.i du`m Hong Pham
Mình
vay theo ban lam the nao de khac phuc duoc tinh trang tren? Xin cam onManh Cuong [EMAIL PROTECTED] wrote: Vi` stdin va^~n co`n chua string thu+' 2, 3 trong buffer cho du` du`ng fflush. Cho ne^n ngay sau khi go.i ha`m scanf la^`n thu+' 2 thi` string trong buffer stdin do' ngay la^.p tu+'c duoc ga'n
ok!!! Toi se thu lai ngay bi jo. Tui se reply lai ngay khi co ket qua. Cam on ban!!!. Ah quen ban co nick ko? toi co the add nick cua ban duoc chu?Manh Cuong [EMAIL PROTECTED] wrote: Theo toi thi co the lam nhu sau:Thay lenh scanf bang lenh fgets: printf("Enter some words: "); scanf("%s",
14 matches
Mail list logo