Help me with Homework

This is a discussion on Help me with Homework within the C Programming forums, part of the General Programming Boards category; 1.given a text file. print the longest word of each line. 2.given file type, components. replace all the upper and ...

  1. #1
    Registered User
    Join Date
    Nov 2010
    Posts
    20

    Help me with Homework

    1.given a text file. print the longest word of each line.
    2.given file type, components. replace all the upper and lower letters.

  2. #2
    THANK YOU KINDLY SIR Phenax's Avatar
    Join Date
    Mar 2011
    Posts
    74
    What code have you gotten so far? And what problems are you specifically having? Noone is going to code it for you, although we can help you with any issues you may have.

    Make sure you look up the toupper and tolower functions, and the strlen function.
    Quote Originally Posted by Plato
    Never discourage anyone...who continually makes progress, no matter how slow.

  3. #3
    Registered User \007's Avatar
    Join Date
    Dec 2010
    Posts
    179
    Nope.

  4. #4
    Programming King Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Middle of NoWhere
    Posts
    320
    Quote Originally Posted by alionas View Post
    1.given a text file. print the longest word of each line.
    2.given file type, components. replace all the upper and lower letters.
    Read the specification of <string.h>

    Also, post your code here and tell the errors, you are getting and the problems you are facing..... We have a strict policy against homeworks...

  5. #5
    Registered User \007's Avatar
    Join Date
    Dec 2010
    Posts
    179
    I think there shouldn't be any homework threads in the first place. People should ask questions about programming problems. The end result is a massive number of new accounts with < 10 posts every week begging for the next fix.

  6. #6
    Programming King Mr.777's Avatar
    Join Date
    Mar 2011
    Location
    Middle of NoWhere
    Posts
    320
    Quote Originally Posted by \007 View Post
    I think there shouldn't be any homework threads in the first place. People should ask questions about programming problems. The end result is a massive number of new accounts with < 10 posts every week begging for the next fix.
    Admins should read the IP's and ban multiple accounts.... This will make this forum comparitively better than others....

  7. #7
    Programming Wraith GReaper's Avatar
    Join Date
    Apr 2009
    Location
    Greece
    Posts
    1,625
    Quote Originally Posted by Mr.777 View Post
    Admins should read the IP's and ban multiple accounts.... This will make this forum comparitively better than others....
    We are no online browser game! What if two family members or friends log into the forum using the same internet connection? Then a form should be filled by those two to prevent their accounts being banned, but all this will be hard to implement and maintain.
    Devoted my life to programming...

  8. #8
    a_capitalist_story
    Join Date
    Dec 2007
    Posts
    2,650
    If you have no interest in programming or doing your own work, you really should either drop the class if it's not required or start over with a new major. We have enough slackers out here in the work force, we sure as heck don't need yet another.

  9. #9
    Banned
    Join Date
    Aug 2010
    Location
    Ontario Canada
    Posts
    9,547
    Quote Originally Posted by alionas View Post
    1.given a text file. print the longest word of each line.
    2.given file type, components. replace all the upper and lower letters.
    Ok... mine's finished, how's yours coming?
    Last edited by CommonTater; 03-09-2011 at 09:07 AM. Reason: homage to Laserlight...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Homework
    By kermi3 in forum C Programming
    Replies: 10
    Last Post: 09-27-2001, 04:49 PM
  2. Homework
    By kermi3 in forum C++ Programming
    Replies: 15
    Last Post: 09-26-2001, 03:16 PM
  3. Homework
    By kermi3 in forum Windows Programming
    Replies: 5
    Last Post: 09-15-2001, 11:48 AM
  4. Homework
    By kermi3 in forum C Programming
    Replies: 0
    Last Post: 09-10-2001, 01:26 PM

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