User Profile

Collapse

Profile Sidebar

Collapse
helpus
helpus
Last Activity: Jul 10 '07, 05:22 PM
Joined: Jul 3 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • helpus
    replied to C++ classes are hard please help us.
    in C
    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...
    See more | Go to post
    Last edited by JosAH; Jul 3 '07, 09:14 PM. Reason: added those code tags again

    Leave a comment:


  • helpus
    replied to C++ classes are hard please help us.
    in C
    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)
    ...
    See more | Go to post
    Last edited by sicarie; Jul 3 '07, 05:18 PM. Reason: Please use [code=cpp] and [/code] tags around your code.

    Leave a comment:


  • helpus
    started a topic C++ classes are hard please help us.
    in C

    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...
    See more | Go to post
No activity results to display
Show More
Working...