Search:

Type: Posts; User: kezman

Search: Search took 0.01 seconds; generated 48 minute(s) ago.

  1. Replies
    2
    Views
    1,504

    When declaring a struct you need to add a...

    When declaring a struct you need to add a semicolon after the declaration, for example:



    struct data
    {
    int id;
    }; <-- notice the semicolon
  2. Replies
    7
    Views
    1,737

    Thanks for the suggestions guys. The C++0x auto...

    Thanks for the suggestions guys. The C++0x auto feature is looking pretty attractive right now. Is it safe start using C++0x? Im assuming it'll be backwards compatible with the previous standard, so...
  3. Replies
    7
    Views
    1,737

    templated class type conversion

    Hey, I've created a templated Vector class and I want to be able to overload addition/multiplication operators etc. But I'm having a problem when combining different datatypes, for example...
  4. static member initialisation for multiple objects

    Hey,
    I'm wondering what the best way to define the value of a static data member within a class is. The values I want to initialise the data to is the same throughout the entire life of the program,...
  5. Replies
    1
    Views
    1,763

    Combine two strings without modifying them

    Hey,
    I've been trying to combine two strings into a third one without modifying the original two. Heres the code I've got, but it wont compile:

    char rho_dir[50], vel_dir[50];
    char outputpath[50]...
  6. Replies
    3
    Views
    1,792

    Thanks for the suggestions, I'll try the struct...

    Thanks for the suggestions, I'll try the struct approach.

    Yea, each value has a prefix to tell the function what to do with it.
  7. Replies
    3
    Views
    1,792

    Convert string to double and the back?

    Hey,
    I'm writing a function to read a set of strings and doubles from an input file, and I now want to send them back to the main program. The function returns each value from the input file at a...
  8. Replies
    3
    Views
    1,623

    Floating point error when performing division

    Hey,
    I've been working on some CFD code over the past few months and noticed a strange floating point error occuring when performing a division. For some reason I'm getting a difference between the...
  9. Replies
    3
    Views
    3,397

    I've already tried that, still get the same error...

    I've already tried that, still get the same error :S.
  10. Replies
    3
    Views
    3,397

    incompatible pointer type?

    Hey,
    I need to pass a **pointer of an array as a function argument, but for some reason I keep getting the error "warning: assignment from an incompatible pointer type". As you can tell I'm pretty...
  11. Replies
    0
    Views
    1,861

    vector field image library

    Hey, I'm very new to programming in C and I'm trying to write a program to simulate the fluid mechanics of a lid driven cavity. The output I get from the program is a set of 2D spatial coordinates...
Results 1 to 11 of 11