User Dialog
Pablo Fernicola
pff at beach.cis.ufl.edu
Tue Sep 12 14:31:32 AEST 1989
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 ] );
fmprstr( input );
charCount++;
}
}
I get the window, I get the message Enter string and then I crash.
Any clues are wellcomed.
--
pff at beach.cis.ufl.edu Pablo Fernicola - Machine Intelligence Laboratory - UF
"If we knew how it works, it wouldn't be called research."
More information about the Comp.sys.sgi
mailing list