1. Limited time only! Sign up for a free 30min personal tutor trial with Chegg Tutors
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

C++ programe please help me

  1. Mar 29, 2009 #1
    Write a program that reads a paragraph of 4 lines of text. The user can enter extra spaces between words. The length of each line does not exceed 50 characters. The program should output the following: ((Use pointers))

    1. A table indicating the occurrence of each letter of the alphabet in the text.
    2. The input paragraph without extra spaces between words.
    3. Average word length in the paragraph.
    4. The list of words in the paragraph sorted in alphabetical order.
    5. The 4 lines in the paragraph sorted in ascending order of length.


    please help me
     
  2. jcsd
  3. Mar 29, 2009 #2

    Hurkyl

    User Avatar
    Staff Emeritus
    Science Advisor
    Gold Member

    Please post homework questions in the appropriate homework forums. (I have moved this thread there)

    And please review our homework policy -- we will not do your work for you! You must indicate what work you've done, and what thoughts and analyses you've done on the problem -- if you don't show us that you've worked on the problem, then we won't work on the problem either.
     
  4. Mar 30, 2009 #3
    just i want to
    char *n[40][50];
    cin>>*n;
    how i can enter the names in this array and stop will i enter the new line
     
  5. Mar 30, 2009 #4
    i use a
    visual stdio 6.0
     
  6. Mar 30, 2009 #5
    wher are you
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: C++ programe please help me
  1. C++ program help! (Replies: 1)

  2. C program help needed (Replies: 3)

Loading...