From: "Andrew Crabtree" Newsgroups: comp.os.msdos.djgpp Subject: Re: More easy questions Date: Tue, 24 Feb 1998 16:04:36 -0800 Organization: Hewlett Packard Lines: 44 Message-ID: <6cvn6l$eaa$1@rosenews.rose.hp.com> References: <3 DOT 0 DOT 5 DOT 32 DOT 19980224222117 DOT 0079aa50 AT vip DOT cybercity DOT dk> NNTP-Posting-Host: ros51675cra.rose.hp.com Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Nils Emil P. Larsen wrote in message <3 DOT 0 DOT 5 DOT 32 DOT 19980224222117 DOT 0079aa50 AT vip DOT cybercity DOT dk>... >Thank you for the answers! Here I have some new one: I think you will find people's patience tiring quickly if you keep asking beginer C questions to the DJGPP newsgroup. Go buy an intro to C book and read it. Remember, c.o.m.d is for DJGPP specific questions, not C questions in general, especially not how to write and if statement. But, since my patience hasn't expired yet here are your answers... >- but there is nothing about the keywords like for, then, if, char, int Of course not. That is part of the C language proper. > Where on the Internet can I get info about the keywords? http://www.dkuug.dk/JTC1/SC22/open/n2620/ This has a copy of the latest draft standard. It covers all of the keywords (including new ones nobodies heard of before). It might be overkill though, check comp.lang.c and the C faq, they probably have better pointers to newbie stuff. >- Is it correct that the keyword "if" is used like this: if (expression) >statement1; else statement2;. If expression is nonzero statement1 is >executed. If expression zero is statement2 executed. Yes. You can replace the single statements with blocks of statements enclosed in '{' also. >way: if (5 = 5) You need to use '==' to compare to numbers for equivalence. The code as you have it won't compile since you are trying to assign a value to a constant (non lvalue). > How do I convert a ASCII character into a string? sprintf(mystring,"%c",YOUR_ASCII_CHAR_HERE); >Thank you very much again - these things would take me hours if you don't >help me! It might not be a bad idea to spend a couple of hours learning the basics so you don't waste bandwidth and other peoples time with questions such as these. Andy