User Profile

Collapse

Profile Sidebar

Collapse
Tigerlily
Tigerlily
Last Activity: Dec 11 '06, 05:34 AM
Joined: Nov 29 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Tigerlily
    started a topic Number of words in a string read from a file
    in C

    Number of words in a string read from a file

    Hello! I need to count the number of words in a string read in from an infile, in a function, but I don't know how to do this. This is what I have so far.

    //Tiffany Lynn Goodseit
    #include <iostream>
    #include <fstream>
    #include <string>
    using namespace std;
    void diffwords(strin g &line);

    int main()
    {
    string line;

    //open input...
    See more | Go to post

  • My Program is compiling, but it wont stop running. Can you please help me?

    // Program to create new accounts, perform deposits, withdrawals, and bank
    //inquiries
    #include<iostre am>
    #include<fstrea m>
    using namespace std;
    void menu();
    int read_accts(int [], double [], int);
    void withdrawal(int [], double [], int);
    void deposit(int [], double [], int);
    int new_acct(int [], double [], int);
    void balance(int [], double[], int);
    int main()...
    See more | Go to post
No activity results to display
Show More
Working...