Search:

Type: Posts; User: robquigley

Search: Search took 0.01 seconds.

  1. Thread: Recursion

    by robquigley
    Replies
    4
    Views
    1,134

    Recursion

    Hey everyone,

    Never really done much recursion in C++ before but i just wrote a little depth first search which crashes the 1000th time it calls itself. Everytime. Stack Overflow is the error...
  2. Thread: Either Or

    by robquigley
    Replies
    2
    Views
    1,008

    Either Or

    Hey every1,

    Just wonderin,

    I want to have a map datastructure where the second element is always an int but the first can be an int, or a string. Is this possible in C++.

    So, something like
  3. Replies
    2
    Views
    1,228

    vector as private data

    hey,

    i'm just writing a small class now and i want a few vectors as private data. if i use the line
    std::vector<int> a;
    then there's no problem. But i want to declare that this vector should...
  4. Replies
    2
    Views
    1,110

    maps as reference?

    hey,

    I've got a function that i need to return two maps from. As i can't do it with a <code> return </code> is there a way to pass the two maps as reference parameters (like is possible with...
  5. Replies
    2
    Views
    1,225

    vector of ints[]

    hey every1,

    i'm tryin to declare a vector of ints[]

    i'm preparing strings of numbers each of 32 digits, each digit means somethin different so i need to access them individually.

    Well VC++...
  6. Replies
    4
    Views
    1,640

    vectors seem to do the trick, nice1, cheers...

    vectors seem to do the trick, nice1, cheers every1.

    Only thing is i'm gettin loads (like 100) warnings with vectors


    c:\program files\microsoft visual studio\vc98\include\xtree(120) : warning...
  7. Replies
    4
    Views
    1,640

    Maps with ints[]

    Hey every1,

    I'm trying to have a Map with a string as key, and a 2 (or more) element array as data. Something like
    map <string, int[2]> myMap

    I'm getting errors when i try to load data into...
  8. Cheers Wledge. Nice1.

    Cheers Wledge.

    Nice1.
  9. Having an ofstream in the private data of a class

    Hey everyone,

    VC++ is givin me errors like
    error C2146: syntax error : missing ';' before identifier '_fileStream1'
    error C2501: 'ofstream' : missing storage-class or type specifiers because...
  10. Replies
    11
    Views
    2,183

    aplhaoide, how can u view the files if you use...

    aplhaoide, how can u view the files if you use write()? Is the only way to read them back in or something? Or can u get a viewer of some sort?
  11. Replies
    1
    Views
    1,531

    Bits in files

    Hey everyone,

    I've been doing some looking at writing out in binary form to files and i think it looks like a byte is the smallest ammount

    of info that can be written to a file. Is this true?...
  12. Replies
    1
    Views
    1,465

    Writing to "binary" files

    Hey,

    Just a question on the code i've posted below.

    It writes to the file out.bin but when i view it (thru notepad or edit or whatever) i can see the word "HELLO".

    If this is a "binary" file...
  13. Replies
    2
    Views
    1,707

    Hey Fordy Visual C++ 6.0 Enterprise edition

    Hey Fordy

    Visual C++ 6.0 Enterprise edition
  14. Replies
    2
    Views
    1,707

    Visual C++ Profiler

    hey,

    I'm trying to get the Visual C++ profiler to work and i've followed all the instructions about changing project settings and all but after i've "enabled profiling" and gone to build and all...
  15. Replies
    5
    Views
    2,344

    Gift Salem, I don't know what i was thinking...

    Gift Salem,

    I don't know what i was thinking with 40000 and other crazy high numbers. Thanks for bringing me back down to earth, my head was in the clouds.

    Nice one,
    Thanx,

    Rob.
  16. Replies
    5
    Views
    2,344

    Tried that Garfield, thing is though i've got a...

    Tried that Garfield, thing is though i've got a data file in the form of

    1 2 768
    1 3 398
    1 4 398.67

    and there is 47306 lines like this because its the value of 218 cities distance from each...
  17. Replies
    5
    Views
    2,344

    Array size in C

    I'm trying to declare a 2-dimensional array in C of length 40000.

    int matrix[40000][40000];

    but the compiler is telling me that the size of variable 'matrix' is too large. I'm using gcc and...
Results 1 to 17 of 17