Cool Cheers
Type: Posts; User: will15
Cool Cheers
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...
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....
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;
Thanks,
I changed data to rows which is the user set variable set by user. Code now reads:
.
.
.
.
while (!inPutFile.eof())
{
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>...
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;
Do I have to get my .txt file into an array before I process it?
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
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...