Mail Archives: djgpp/1996/12/05/22:22:17
Mike McLean wrote:
>
> I am having trouble with the following code from a program I am
> working on. I know this may be basic, but the C programming book I am
> using doesn't help with it at all
>
> if (" %s",lgname = "New")
Huh?? What you need to read up on is the syntax of "if" statements...
I think you mean this:
if ( strcmp( lgname, "New" ) == 0 )
printf("welcome");
--
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com |
| Plan: To find ANYONE willing to | http://www.cs.com/fighteer |
| play Descent 2 on DWANGO! | Tagline: <this space for rent> |
---------------------------------------------------------------------
- Raw text -