Thread: red lines

  1. #1
    Registered User
    Join Date
    May 2003
    Posts
    1

    Question red lines

    i want to write acode to read the number of words in aline using (cin.getline)with an array char x[80].can any one help

  2. #2
    Registered User
    Join Date
    Nov 2002
    Posts
    1,109
    what I picked up from that:

    You want to read in words from a line, and then count how many words there are?

    If so, you can try a search, there have been many threads about this.

    But try it, then post some code, and we'll be glad to help.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 11
    Last Post: 10-07-2008, 06:19 PM
  2. Print out first N lines
    By YoYayYo in forum C Programming
    Replies: 1
    Last Post: 02-21-2008, 12:58 AM
  3. Binary Search Trees Part III
    By Prelude in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 10-02-2004, 03:00 PM
  4. count only lines of code...
    By flightsimdude in forum C Programming
    Replies: 13
    Last Post: 09-23-2003, 07:08 PM
  5. I need some ideas please>>
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 08-23-2002, 01:55 PM