Problems with character input

This is a discussion on Problems with character input within the C Programming forums, part of the General Programming Boards category; Originally posted by OmnipotentCow Well if the user is stupid enough to regard "Enter a letter:" as, let me enter ...

  1. #16
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Originally posted by OmnipotentCow
    Well if the user is stupid enough to regard "Enter a letter:" as, let me enter 2 or more...

    Then what can I say? Its simple intructions if you ask me.
    It is generally a good idea when developing anything interactive to assume your user is a complete idiot. Plan for the blatently stupid, be surprised when they aren't.

    Quzah.
    Hope is the first step on the road to disappointment.

  2. #17
    Registered User
    Join Date
    May 2003
    Posts
    25
    Hmmm.

    I think learning how to change programs for the complete idiot will be harder than learning the language itself.

    Someone wanna write a faq on this?

  3. #18
    Registered User
    Join Date
    May 2003
    Posts
    25
    I'll keep that in reference when i learn buff and fgets.

  4. #19
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,796
    >I'll keep that in reference when i learn buff and fgets.
    buff is a variable, fgets reads a line from an input stream into buff.
    My best code is written with the delete key.

  5. #20
    End Of Line Hammer's Avatar
    Join Date
    Apr 2002
    Posts
    6,231
    Originally posted by OmnipotentCow
    Someone wanna write a faq on this?
    This is close to what you want:
    http://faq.cprogramming.com/cgi-bin/...&id=1043284385
    When all else fails, read the instructions.
    If you're posting code, use code tags: [code] /* insert code here */ [/code]

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Checking array for string
    By Ayreon in forum C Programming
    Replies: 87
    Last Post: 03-09-2009, 04:25 PM
  2. character input using fgetc() code???
    By lesrhac03 in forum C Programming
    Replies: 3
    Last Post: 03-27-2008, 11:55 PM
  3. Problems reading formatted input with sscanf
    By Nazgulled in forum C Programming
    Replies: 17
    Last Post: 05-10-2006, 01:46 AM
  4. Trouble with a lab
    By michael- in forum C Programming
    Replies: 18
    Last Post: 12-06-2005, 11:28 PM
  5. input output problems
    By gell10 in forum C++ Programming
    Replies: 3
    Last Post: 11-03-2003, 09:39 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21