www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/12/05/22:06:39

From: libolt AT primenet DOT com (Mike McLean)
Newsgroups: comp.os.msdos.djgpp
Subject: help with code
Date: 5 Dec 1996 17:50:09 -0700
Organization: Lightning Bolt Software
Lines: 18
Message-ID: <32a76c78.11390127@news.primenet.com>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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

this is what Rhide 1.0 reports:

Error: incompatible types in assignment

printf("What is your login name? (10 letters max) \n");
printf("If you are new type New for login and Guest for password\n");
scanf(" %s",lgname);
printf("what is your password? \n");
scanf(" %s",lgpass);
if (" %s",lgname = "New")
printf("welcome");

again sorry for this newbie question, but I am using my book as much
as possible, there are some things it just doesn't cover

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019