Search:

Type: Posts; User: starkhorn

Search: Search took 0.01 seconds.

  1. Replies
    2
    Views
    2,419

    Using delete to clear a STL vector

    Folks,

    I've created 2 classes, called TEST1 and TEST2. In TEST1, I've declared a STL vector of the TEST2 class. Each time my program is run, there is a random number generated which specifies the...
  2. Replies
    2
    Views
    1,013

    hmm. think I got it. Both my constructors had the...

    hmm. think I got it. Both my constructors had the exact same first 6 parameters which I think made it impossible for the compiler to know which constructor to call.

    I changed my 2nd constructor...
  3. Replies
    2
    Views
    1,013

    Constructor Overloading

    Folks,

    I'm having a strange problem where I can't seem to get my program recognise my overloaded constructors. I've declared 2 constructors, one with 6 parameters and then another with 8...
  4. Replies
    7
    Views
    3,337

    See this thread. In it, adrianxw posts a link for...

    See this thread. In it, adrianxw posts a link for his tutorial which covers colour....unfortunately windows.h would is needed so you should definitely try to download it.
    ...
  5. Replies
    7
    Views
    61,628

    Thanks Dave. Adding an additional " to the front...

    Thanks Dave. Adding an additional \" to the front my my string and to the end seemed to do the trick.

    I don't quite understand why though but if it works then I'm not touching it. :)

    Thanks for...
  6. Replies
    7
    Views
    61,628

    Hi Folks, Yes me again with another silly...

    Hi Folks,

    Yes me again with another silly question although this time I hope its not as silly as before.

    The below is fairly simple, I've written a small program (at the end of the thread),...
  7. Replies
    7
    Views
    61,628

    oh dear oh dear.....how silly do I feel now. :( ...

    oh dear oh dear.....how silly do I feel now. :(

    Yes quotes worked and the ~1 worked as well. Talk about a silly starfish moment.

    Thanks for the swift replies and sorry for asking such a naive...
  8. Replies
    7
    Views
    61,628

    Handling spaces in command line arguments

    Hi Folks,

    A question which I hope isn't too silly or naive but one that is pulling my hair out.

    I'm passing arguments to main, no big deal. The first argument that I'm passing is a directory...
  9. Replies
    1
    Views
    2,745

    Prototype syntax for sub-class constructor

    Folks,

    I'm trying to figure out the correct prototype syntax for the below constructor of my sub-class DEAD_CHARS and I was hoping someone would know how ?

    The below implementation compiles...
  10. Replies
    5
    Views
    2,450

    Sorry, here's the code surrounding my CHARACTER...

    Sorry, here's the code surrounding my CHARACTER class.

    Here is the character.h




    #ifndef CHARACTER_H
    #define CHARACTER_H
  11. Replies
    5
    Views
    2,450

    CHARACTER is a class that I've created.

    CHARACTER is a class that I've created.
  12. Replies
    5
    Views
    2,450

    syntax error when defining vectors

    Folks,

    I'm in a scenario whereby I will often be inputing 10 elements but sometimes it might be more that 10 elements.

    So i decided to use vectors, so that if I needed to read in more than 10...
  13. Replies
    2
    Views
    1,887

    Determining number of pages in file

    Folks,

    I'm reading in input from an external file and I want to know in advance the number of pages that the external file contains....as I want to break-up the input page by page.

    Is there a...
  14. Replies
    4
    Views
    2,127

    Thanks guys. I had no idea about the c_str...

    Thanks guys. I had no idea about the c_str command which did exactly what I wanted....instead I went off and tried to write an inefficient function to do it.....my bad.

    Thanks a mill for your...
  15. Replies
    4
    Views
    2,127

    dynamic memory deletion via function

    Folks,

    Wondering if you could help out with the below segment of code. Basically I've written a little function that takes a string and converts it into a char array so that it can be used with...
  16. Replies
    11
    Views
    4,785

    ahhh ok, thank you pianorain...it's so obvious...

    ahhh ok, thank you pianorain...it's so obvious when someone else tells you the answer. :)

    Seriously thank you....I was totally being confused by the conflicting error messages.

    Cheers
    Starkhorn
  17. Replies
    11
    Views
    4,785

    ok thanks. I'll check out the project...

    ok thanks. I'll check out the project settings.....it seems VC++6.0 seems to make things 50 times harder than it needs to be but......:)

    Just curious now, which parts are "old style" ? I hadn't...
  18. Replies
    11
    Views
    4,785

    Here you go. Sorry if it's too long and thanks...

    Here you go. Sorry if it's too long and thanks for taking the time to help.



    #include <iostream>
    #include <string>
    #include <fstream>
    #include <sstream>

    using namespace std;
  19. Replies
    11
    Views
    4,785

    having a program with just that 1 line obviously...

    having a program with just that 1 line obviously worked fine. But when I changed my own program to match that, I got the exact same warning and error.

    I've double-checked to ensure that I've not...
  20. Replies
    11
    Views
    4,785

    Main Declaration error

    Folks,

    So I was on the FAQ page (yes sometimes newbie's actually read it!!) :D to learn more about the main declarations...specifically the below thread.
    ...
  21. Replies
    1
    Views
    1,015

    Input from non-text file

    Folks,

    I was just wondering if it was possible to read in data from a non-text file using ifstreams (or indeed any other method) ?

    Basically I've gotten a pdf file and I wish to extract certain...
Results 1 to 21 of 21