Search:

Type: Posts; User: anomaly

Search: Search took 0.00 seconds.

  1. Thread: line numbers?

    by anomaly
    Replies
    5
    Views
    2,004

    Would you care to mention any good one? :) ...

    Would you care to mention any good one? :)

    Actually, do you know of one that can save the line numbers with the code as well in text?
  2. Thread: line numbers?

    by anomaly
    Replies
    5
    Views
    2,004

    line numbers?

    Hi

    Is there a way to print out line numbers with the code (i.e. number each line of code)? Or even better export it to word with line numbers?

    (In MS Visual C++ 6.0)

    Thanks
  3. Thread: int or double?

    by anomaly
    Replies
    4
    Views
    1,641

    I've seen different syntax somewhere - will this...

    I've seen different syntax somewhere - will this work as well: (float) y?
  4. Thread: int or double?

    by anomaly
    Replies
    4
    Views
    1,641

    int or double?

    Hi

    There's something bothering me with my code, and I'm not sure what variable type to use as a result. I have this in my code:




    double x;
    int y;
    int z;
  5. Replies
    23
    Views
    4,408

    difference between 0 and null

    Hi

    What's the difference between these two statements - I'm not sure, and I'm using one of them in srand():

    time(0)

    time(NULL)

    Thanks
  6. Replies
    2
    Views
    1,388

    Hi I reverted to my working code, I'll post...

    Hi

    I reverted to my working code, I'll post the exact error message when if I get it again. Thanks.
  7. Replies
    3
    Views
    2,225

    Hi Sorry, I'm new to this, I mean't just a...

    Hi

    Sorry, I'm new to this, I mean't just a vector. I'm using a vector instead of an array because I need to get the size, and I don't know how to get the size of an array.
  8. Replies
    3
    Views
    2,225

    pass a vector as argument

    Hi

    How do you pass a vector array as an argument to a function? What's the syntax?

    Thank you
  9. Replies
    2
    Views
    1,388

    PCH Creation point error?

    Hi does anyone know what a "PCH creation point" compiler error is?
  10. Thanks I already worked out how the code worked...

    Thanks I already worked out how the code worked before, but thanks for shedding light on the 'f' syntax. :)
  11. Hi Thanks for the example code. Could you...

    Hi

    Thanks for the example code. Could you also explain the syntax to me? I'm fairly new to c++, so I don't completely understand the syntax yet. :) Thanks

    More specifically, why do you place...
  12. random number between negative and positive number

    Hi

    I've seen some other threads on this and the faq, but I can't seem to find the answer to this one.

    I want to generate a random number (non-integer) between a negative number (such as -1) and...
  13. Replies
    2
    Views
    19,932

    using relative file paths..?

    Hi

    I've got an include statement such as:


    #include "c:\object.h"

    My question is that can I use relative file paths, so that if my source code is in another folder it can find the header by...
  14. Replies
    3
    Views
    1,198

    Oh sorry :) Writing to a text file in windows...

    Oh sorry :)

    Writing to a text file in windows xp, and type of data is double.
  15. Replies
    3
    Views
    1,198

    compiler warning - "mismatch in..."

    Hi

    I've come across some compiler warnings and I have no idea what they mean. Also, these warning seem to only appear on my laptop, and not on the other computer.

    The warning says: "warning...
  16. Replies
    4
    Views
    1,017

    variable garbage?

    Hi

    I haven't initialised a variable, and so the value I'm getting from it is some floating point number? I know this is because I haven't initialised it, but why does it contain a floating point...
  17. Thread: void keyword

    by anomaly
    Replies
    8
    Views
    1,489

    void keyword

    Hi

    I have a fuction starting like: void print ()..., what is the void keyword there for?
Results 1 to 17 of 17