Thread: Help with reading strings from a file

  1. #1
    Registered User
    Join Date
    Nov 2007
    Posts
    1

    Help with reading strings from a file

    Hi, i'm not very skilled at c programming and i apologize in advance for any mistakes i make but i have an assignment that requires a program to read from a file and find the number of words, sentences and vowels along with another type of scoring system. My program seems reasonable and it should work and i get no errors but the editor that i'm using just closes.

    this is what i have so far:

  2. #2
    Registered User
    Join Date
    May 2006
    Posts
    903
    It's impossible that you've written this code yet don't know why your program closes. Impossible. You're trying to cheat and it's damn obvious. You've taken this code somewhere and hope we'll tell you how to fix it.

  3. #3
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,210
    Programming isn't hard in and of itself. It just demands lots of time and work at it. In that regard, if you're lazy, it is hard. If you're a diligent worker, then it might not be as difficult at all.

    Usually, I don't like downloading source files instead of reading the code here, but after reading Desolation's post, I had to check it out. You said you're not very skilled, but the person that wrote it was very good at C. Too good to be you. The only few warnings I could get the compiler to spit out was about signed/unsigned comparisons and an unused variable.

    Either get yourself into high gear and actually earn the rest of your degree, or just stop trying and fail the course.

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    > but the editor that i'm using just closes.
    I smell a FAQ question.
    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Post...
    By maxorator in forum C++ Programming
    Replies: 12
    Last Post: 10-11-2005, 08:39 AM
  2. Dikumud
    By maxorator in forum C++ Programming
    Replies: 1
    Last Post: 10-01-2005, 06:39 AM
  3. Simple File encryption
    By caroundw5h in forum C Programming
    Replies: 2
    Last Post: 10-13-2004, 10:51 PM
  4. Unknown Memory Leak in Init() Function
    By CodeHacker in forum Windows Programming
    Replies: 3
    Last Post: 07-09-2004, 09:54 AM
  5. simulate Grep command in Unix using C
    By laxmi in forum C Programming
    Replies: 6
    Last Post: 05-10-2002, 04:10 PM