Search:

Type: Posts; User: stobbz

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,214

    Thanks for the reply guys, I managed to get the...

    Thanks for the reply guys, I managed to get the correct result using a couple of if statements. Over thinking the problem as usual!

    Well, 'vec2' contains around 150,000 elements representing...
  2. Replies
    4
    Views
    1,214

    Vector calculations

    I'm trying to write a function which performs calculations with a vector containing data from a CSV file. The result is to be stored in another vector.

    If a vector element obtained from the CSV...
  3. Replies
    6
    Views
    3,396

    Got it sorted, thanks again bit hub.

    Got it sorted, thanks again bit hub.
  4. Replies
    6
    Views
    3,396

    int main(int argc, char *argv[]) {...

    int main(int argc, char *argv[])
    {
    vector<double> vel;

    FBel Test;

    Test.WSpee(vel);
    Test.WSPro(vel);
    }
  5. Replies
    6
    Views
    3,396

    Ah, just one more thing. How does that work when...

    Ah, just one more thing. How does that work when it comes to calling the function?

    I've created an instance of the class and called function1 then function2, hoping to end up with a vector filled...
  6. Replies
    6
    Views
    3,396

    Dear God... I had ampersands and asterisks in...

    Dear God... I had ampersands and asterisks in every possible combination just trying to make it work.

    Thanks for that, problem solved!
  7. Replies
    6
    Views
    3,396

    Vector elements disappearing

    I have a void function with a vector as an argument. The function fills the vector, but I want to use this vector as the argument in a second function. When I try to use it in the second function,...
  8. Ahh, quite right jimblumberg, thanks :-) ...

    Ahh, quite right jimblumberg, thanks :-)

    Thanks for dragging me through this everybody, it's finally working.

    Cheers!
  9. . . . int main(int argc, char *argv[]) {...

    .
    .
    .
    int main(int argc, char *argv[])
    {
    string filename, line;
    vector<string>DataStore;

    cout<<"Enter the filename of the wind speed data "<<endl;
    getline (cin,filename);
  10. Changed it to newline, same result I'm afraid.

    Changed it to newline, same result I'm afraid.
  11. Thanks a lot, fantastic reply. You are quite...

    Thanks a lot, fantastic reply. You are quite right on all points, I've adjusted my program accordingly.

    I tried your method for storing the column. It gets rid of the first column which is great,...
  12. Storing columns of numerical data from csv files to a vector

    Hello, I have a csv file with two columns, one contains the date and time and the other contains numerical data. How would I get column two only (numerical data) stored in a vector?

    I currently...
Results 1 to 12 of 12