Sam Coding in C is like sending a 3 year old to do groceries. You
gotta tell them exactly what you want or you'll end up with a cupboard
full of pop tarts and pancake mix.
- http://bash.org/?841435
Hello Guys,
Can anyone help out on how to take in 3 character input for execution in a
program...!
*printf(Enter the type of bread you want to make: \n);
scanf(%c, type);
printf(Enter D if the bread size is double else enter N:
\n);
--- In c-prog@yahoogroups.com, Oludayo Oguntoyinbo [EMAIL PROTECTED] wrote:
printf(Enter the type of bread you want to make: \n);
scanf(%c, type);
I would use fgets() to read in a line of input, then use sscanf() on
the line.
#include stdio.h
int main(void)
{
char buf[100], type,
--- In c-prog@yahoogroups.com, andrew clarke [EMAIL PROTECTED] wrote:
Sam Coding in C is like sending a 3 year old to do groceries. You
gotta tell them exactly what you want or you'll end up with a cupboard
full of pop tarts and pancake mix.
- http://bash.org/?841435
:-)
But couldn't you
--- peternilsson42 wrote:
Maybe you need -Wsign-conversion
gcc -Wall -Wsign-conversion problem.c -o problem
cc1: error: unrecognized command line option -Wsign-conversion
Time you updated then...
% gcc --version
gcc.exe (GCC) 4.3.2
Thank you.
Enter your vote today! A new poll has been created for the
c-prog group:
Is US Patent 7028023 valid?
For those who do not know what is it about:
http://www.patentstorm.us/patents/7028023.html
o No. A previous work exist.
o No. It is too general to be valid.
o Yes.
o It does not
I never knew that there was a patent for a linked list
--- On Sun, 11/30/08, c-prog@yahoogroups.com c-prog@yahoogroups.com wrote:
From: c-prog@yahoogroups.com c-prog@yahoogroups.com
Subject: [c-prog] New poll for c-prog
To: c-prog@yahoogroups.com
Date: Sunday, November 30, 2008, 10:05 PM
On Mon, Dec 1, 2008 at 4:12 AM, Robert Ryan [EMAIL PROTECTED] wrote:
I never knew that there was a patent for a linked list
The US Patent Office appears to have been broken for some time.
--
PJH
http://shabbleland.myminicity.com/tra