//Examples for cs 149; random values & write to file. v. 4/10/06 // 2 forms of functions: // 1 searches an array and returns a value. // returns the average of the elements in an array. // 2 changes contents of an array. #include #include #include int main() { int HowMany; fstream RandomFile; RandomFile.open( "random.txt", iostream::out ); cout << "How many?" << endl; cin >> HowMany; for ( int i=0; i