for part one i cant figure out how to find the max and min stuff. can you help me
[code=cpp]
#include <iostream>
#include <fstream>
using namespace std;
void main()
{
int N, y, x, z, i;
char array[60];
ofstream fout;
fout.open("midt erm1.txt");
if (fout.fail())
{
cout << "File...
User Profile
Collapse
-
-
this is what i have so far.
can you help me finish part one?
[code=cpp]
#include <iostream>
using namespace std;
void random()
{
char term;
char ary[100];
ary[60] = 0;
int i;
i = 0;
while (i < 59)
{
ary[i] = rand() % 122 + 1;
while (ary[i] < 97)
...Last edited by sicarie; Jul 3 '07, 05:18 PM. Reason: Please use [code=cpp] and [/code] tags around your code.Leave a comment:
-
C++ classes are hard please help us.
Menu Option one:
This function should create a 1-D array of size 60 containing randomly generated letters within the range [a, z]. Determine a) the maximum and minimum values and b) the indices of their first occurrence and c) the number of times each occurs. Write the values, number of occurrences, and indices to the output file (midterm1.txt) in a user-specified rectangular format – that is, the user will supply a valid number...
No activity results to display
Show More
Leave a comment: