help

This is a discussion on help within the C Programming forums, part of the General Programming Boards category; how to read characters from user and construct a sting and then extract part of it using substring?...

  1. #1
    Registered User
    Join Date
    Mar 2013
    Posts
    1

    help

    how to read characters from user and construct a sting and then extract part of it using substring?

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,854
    On making an effort
    Announcements - C Programming
    Announcements - General Programming Boards

    On starting slowly with simple steps and building up towards your complete program.
    A development process

    For example, post a program which just reads chars and prints them, then see how you feel about the next step.

    On choosing meaningful topic titles
    How To Ask Questions The Smart Way
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    These are basic string operations, but they take a bit of care to code up in C.

    Welcome to the forum, pixcel!

    You would really benefit if you worked through the C tutorial which is linked to the C Tutorial button at the top of this page. LOTS of basic how-to info in there, for practical use in your programs.

    Give that tutorial a read-through, and give your program a try. If you get stuck, post your program and explain the problem. That lets us focus right in on the difficulty, with minimum time spent looking.

Popular pages Recent additions subscribe to a feed

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