can i know how to prompt user input and then verify it?
in C,for example: scanf("%c",var);
if (var==A)
......
else if( )
.......
thanks
|
|
0
|
|
|
|
Reply
|
kahboon (11)
|
4/10/2008 2:38:31 AM |
|
On Apr 10, 10:38=A0am, kahb...@gmail.com wrote:
> can i know how to prompt user input and then verify it?
> in C,for example: scanf("%c",var);
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 if (var=3D=3DA)
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ......
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 else if( =A0)
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 .......
>
> thanks
c =3D input('input a character:','s');
if c =3D=3D 'A'
%to do ...
else
%to do ..
end
|
|
0
|
|
|
|
Reply
|
lomas.lf (6)
|
4/10/2008 3:18:10 AM
|
|
On Apr 10, 11:18=A0am, lomas <lomas...@gmail.com> wrote:
> On Apr 10, 10:38=A0am, kahb...@gmail.com wrote:
>
> > can i know how to prompt user input and then verify it?
> > in C,for example: scanf("%c",var);
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 if (var=3D=3DA)
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ......
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 else if( =A0)
> > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 .......
>
> > thanks
>
> c =3D input('input a character:','s');
> if c =3D=3D 'A'
> =A0 %to do ...
> else
> =A0 %to do ..
> end
Thanks for your help...
|
|
0
|
|
|
|
Reply
|
kahboon (11)
|
4/10/2008 6:19:49 AM
|
|