Search:

Type: Posts; User: dan20n

Search: Search took 0.01 seconds.

  1. Replies
    10
    Views
    1,878

    The question was small; I wrote it on my hand so...

    The question was small; I wrote it on my hand so I didn’t make a mistake. My self and my peers agree that it must have been a mistake in the wording, still waiting on confirmation from the lecturer....
  2. Replies
    10
    Views
    1,878

    I'm 99% sure it was in the ANSI C part of the...

    I'm 99% sure it was in the ANSI C part of the test. But once reading it could be legal in C++ then it has put doubt in my mind. Well my answer was a pointer to an int, was a guess but anyways...
    ...
  3. Replies
    10
    Views
    1,878

    Ah yes, thank you for your reply. Im aware of...

    Ah yes, thank you for your reply. Im aware of these functions. I wrote the original post in haste because I was hoping for a quick answer as i cant find one. it bugging me big time.

    Ill reword the...
  4. Replies
    10
    Views
    1,878

    variable definitions

    I had an exam today and ran into something i have never seen before.
    Question went something like this:

    int **x ();

    what is the type of *x?

    Any ideas?
  5. Replies
    9
    Views
    2,187

    1st line of text in your link "ISBN...

    1st line of text in your link "ISBN 0-201-10088-6", if you actually read it seems theres more then one 'Dragon Book'.
  6. Replies
    1
    Views
    1,335

    Most people here will not help unless you help...

    Most people here will not help unless you help your self first.
    It's not hard to do a search
    g o o g l e
  7. Thread: error msg

    by dan20n
    Replies
    3
    Views
    915

    ah! stupid mistake.

    ah! stupid mistake.
  8. Thread: error msg

    by dan20n
    Replies
    3
    Views
    915

    error msg

    Does any one know what this means?
    68:45 C:\ass.cpp [Warning] multi-character character constant

    The line is something like this:


    database.getline(gRecs[i]->Name,20,'/n');


    Slightly...
  9. Thread: Fun in c++

    by dan20n
    Replies
    5
    Views
    877

    Nice work :)

    Nice work :)
  10. Replies
    3
    Views
    1,138

    On the right path, you need to specify what...

    On the right path, you need to specify what element in the array you want to 'delete'



    array[i] = " ";


    not at a computer where i can test, silly though i can not remember if the { } are...
  11. Thread: Reading a file

    by dan20n
    Replies
    7
    Views
    1,235

    Makes a little more sence, ill have do to some...

    Makes a little more sence, ill have do to some more readying, thanks for clarifying that for me. When you posted that FAQ i was like, huh? Thanks again
  12. Thread: Reading a file

    by dan20n
    Replies
    7
    Views
    1,235

    Thanks for your detailed reply, everything is...

    Thanks for your detailed reply, everything is running smoooth :)
  13. Thread: Reading a file

    by dan20n
    Replies
    7
    Views
    1,235

    Reading a file

    I have a program that has an array of structs. I want to read a file which can look something like this:


    one
    two
    three four
    five

    Now i want to read these files into the array of structs...
  14. Replies
    3
    Views
    1,192

    Forgot to make it a constant for anyone who...

    Forgot to make it a constant for anyone who cares.
    *so angry*
  15. Replies
    3
    Views
    1,192

    Yeah sorry should post the code static int...

    Yeah sorry should post the code



    static int MAXRECORDS = 100;

    struct PetRecord {
    // stuff
    };
  16. Replies
    3
    Views
    1,192

    OOP and global arrays

    here is a mock up of what i have:



    struct blah {
    // some stuff
    };

    blah array[100];
  17. Replies
    12
    Views
    1,734

    if statements don’t need braces when you only...

    if statements don’t need braces when you only have one statement after it. Some chose to include it anyway for one reason or another, formatting etc. At the end of the day I don’t believe there is...
  18. Replies
    15
    Views
    1,993

    If i understand correctly, how can you make a...

    If i understand correctly, how can you make a portable program that can run on other windows boxes that is safe? Considering you cant really just go grab other applications and encrypt etc that are...
  19. Replies
    8
    Views
    1,200

    I didnt want to start an argument and you did...

    I didnt want to start an argument and you did provide a good link so there was no more to add to this thread other then a small example of what i think happens too often here, who am i to judge...
  20. Replies
    8
    Views
    1,200

    Dont mean to sound cynical here, but isnt the...

    Dont mean to sound cynical here, but isnt the point of a forum to have human interaction in this anti-social environment computers put us in? I think you will find a lot of questions here can be...
  21. Replies
    6
    Views
    2,130

    If anal gets one where you are, then im sure most...

    If anal gets one where you are, then im sure most would like to be anal ;)
  22. Replies
    6
    Views
    2,130

    Thanks for that, im glad i asked.. i often jump...

    Thanks for that, im glad i asked.. i often jump into these things
  23. Replies
    6
    Views
    2,130

    ANSI c++ standard document

    ANSI/ISO/IEC 14882:2003 C++ - This is the document in question. Im an intermediate programmer going through the ropes at uni, this is main()ly aimed at the experienced programmer, how important is it...
  24. Replies
    6
    Views
    2,064

    endl and flushing the output buffer

    A little birdy told me that on some systems, if you do not use endl at the end of an output statement it will not do so until their are enough to make it worthwhile, anyone experience this and/or...
Results 1 to 24 of 24