User Dialog
Thant Tessman
thant at horus.sgi.com
Wed Sep 13 01:15:12 AEST 1989
In article <20862 at uflorida.cis.ufl.EDU>, pff at beach.cis.ufl.edu (Pablo Fernicola) writes:
> Okay, I thought this was going to be simple but it wasn't (after all
> it deals with computers :-) ).
>
> I'm trying to pop up a little window where the user gets to type some
> input and whatever is typed is echoed back.
>
>
> Here is a fragemnt of my code
>
> main()
> {
> char input[15];
> int charCount;
>
>
> [init graphic stuff]
> [init font stuff]
>
> qdev( KEYB );
>
> [cmove instruction]
> fmprstr( "Enter string : ");
> [cmove instruction]
> charCount = 0;
> while( charCount <= 14 )
> {
> qread( input[ charCount ] );
^^^^^^^^^^^^^^^^^^
Change to either:
qread( &input[charCount] );
or:
qread( input + charC );
> fmprstr( input );
> charCount++;
> }
> }
>
thant
--
-----------------------------------------------------------------------------
There's a pattern there to see, and the point will soon be clear to me.
-Stewart Copeland
-----------------------------------------------------------------------------
More information about the Comp.sys.sgi
mailing list