From: Robert Hoehne Newsgroups: comp.os.msdos.djgpp Subject: Re: help with code Date: Fri, 06 Dec 1996 13:22:41 +0100 Organization: TU Chemnitz-Zwickau Lines: 20 Message-ID: <32A81011.4B84@Mathematik.tu-chemnitz.de> References: <32a76c78 DOT 11390127 AT news DOT primenet DOT com> NNTP-Posting-Host: errno.hrz.tu-chemnitz.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Mike McLean DJ-Gateway: from newsgroup comp.os.msdos.djgpp Mike McLean wrote: > > if (" %s",lgname = "New") > printf("welcome"); > If that is in your book for learning the C language, then you should look for a betther book. The above code should be: if (strcmp(lgname,"New") == 0) printf("welcome"); Robert -- ***************************************************************** * Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau * * Post: Am Berg 3, D-09573 Dittmannsdorf * * e-Mail: Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE * * WWW: http://www.tu-chemnitz.de/~rho * *****************************************************************