red lines

This is a discussion on red lines within the C++ Programming forums, part of the General Programming Boards category; i want to write acode to read the number of words in aline using (cin.getline)with an array char x[80].can any ...

  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, 07: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, 04:00 PM
  4. count only lines of code...
    By flightsimdude in forum C Programming
    Replies: 13
    Last Post: 09-23-2003, 08:08 PM
  5. I need some ideas please>>
    By Unregistered in forum C Programming
    Replies: 3
    Last Post: 08-23-2002, 02:55 PM

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