All pastes #372433 Raw Edit

Mine

public text v1 · immutable
#372433 ·published 2007-02-26 01:24 UTC
rendered paste body
#include <iostream>
#include <fstream>
using namespace std;

void countWords();
void countCharacters();


int mian()
{
	cout << countWords;

	return 0;
}

void countWords()
{
	char myString[30];
	ifstream myFileInput; //Input File Stream
	myFileInput.open("txtdata.txt");
	while (myFileInput >> myString)
	{
		cout << myString << " is read from file" << endl;
	}
	myFileInput.close();

	cout << "Done!" << endl;

}