Search:

Type: Posts; User: will15

Search: Search took 0.00 seconds.

  1. Replies
    7
    Views
    5,159

    Cool Cheers

    Cool Cheers
  2. Replies
    7
    Views
    5,159

    Hi, I think I have to do a nested for loop....

    Hi,
    I think I have to do a nested for loop. However, I'm not sure how to get the program to apply one set of boudaries to the speed column and another to the direction colum and then use the...
  3. Replies
    7
    Views
    5,159

    Hi, If I explain the function maybe that would...

    Hi,
    If I explain the function maybe that would help. The program is to make a wind rose from raw wind data that consists of a direction and speed. This is read in from a text file into a 2d array....
  4. Replies
    7
    Views
    5,159

    2d array histogram

    Hi,
    I've put together this code that processes a 2d array:


    #include <iostream.h>
    #include <stdlib.h>
    #include <string>
    #include <fstream>

    using namespace std;
  5. Replies
    3
    Views
    2,664

    Thanks, I changed data to rows which is the...

    Thanks,
    I changed data to rows which is the user set variable set by user. Code now reads:


    .
    .
    .
    .
    while (!inPutFile.eof())
    {
  6. Replies
    3
    Views
    2,664

    Finding Max and Min Value

    Hi,
    The problem is that I have a program which processes a 2D array. One task is to find the min and max of one column (ignoring the second). Here is my code so far:

    #include <iostream.h>...
  7. If so I wrote the following. Which does not seem...

    If so I wrote the following. Which does not seem to work:

    #include <iostream.h>
    #include <stdlib.h>
    #include <fstream>

    int main()
    {
    char fileName;
    int noOfReadings;
  8. Do I have to get my .txt file into an array...

    Do I have to get my .txt file into an array before I process it?
  9. Hi, So, if I write the .txt file to a 2d...

    Hi,

    So, if I write the .txt file to a 2d array using fstream, do you think I could increment a value in a secondary array representing the results table?

    Will
  10. Counting incidence of compliance with logic statement within file

    Hallo,

    I've been trying to come up with the best approach to generate a wind rose from wind data. A wind rose categorises wind speed and direction and counts the number of times there is a wind...
Results 1 to 10 of 10