Thread: Creating a program that actually does something

  1. #1
    Registered User
    Join Date
    Apr 2015
    Posts
    42

    Creating a program that actually does something

    Hi,

    I am begginer at C. I learned the most basic stuffs but I want to make a program that actually does something.

    For instance I want to be able to get in a text file and save things in there or search a word in it. Is there any tutorial for these kind of things.

  2. #2
    Registered User MartinR's Avatar
    Join Date
    Dec 2013
    Posts
    200
    Just get a copy of K&R book. Plenty of C features are presented in a reference to text manipulation. Highly recomended book, althoug may be a little bit overhelming for beginner.
    Last edited by MartinR; 04-09-2015 at 12:17 PM.

  3. #3
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Quote Originally Posted by Vsky
    For instance I want to be able to get in a text file and save things in there or search a word in it. Is there any tutorial for these kind of things.
    The material that you are using to learn C will likely cover file I/O at some point. If not, you can find such tutorials online, including on cprogramming.com (though the tutorial here is rather sketchy).
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  4. #4
    Registered User
    Join Date
    May 2010
    Posts
    120
    lmgtfy
    More where that came from.

    I sugest you don't stop at tutorials when learning some functionality. Search for the manuals and actually learn how things work.

  5. #5
    Registered User
    Join Date
    Mar 2015
    Location
    BE
    Posts
    66
    Our cboardc colleagues are going to help you if you mention the topics which are already covered in your class.

    Check this topic: A development process


    There Noir is using pointer and File I/O.
    Code:
    FILE *fp
    If not learned yet, then no point to do that now.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Ohm's Law, need help creating program
    By gooberfoob in forum C++ Programming
    Replies: 13
    Last Post: 03-11-2014, 07:15 PM
  2. Creating a movable program help
    By WhiteKnight in forum C++ Programming
    Replies: 9
    Last Post: 03-08-2014, 03:08 PM
  3. Creating Functions For My Program
    By nelly26 in forum C Programming
    Replies: 3
    Last Post: 04-03-2012, 02:24 AM
  4. Creating a program using print f
    By MissDee in forum C Programming
    Replies: 4
    Last Post: 01-25-2011, 01:13 AM
  5. Creating a file with a program
    By RazielX in forum C Programming
    Replies: 7
    Last Post: 03-12-2004, 10:06 AM