Search:

Type: Posts; User: d00-asu

Search: Search took 0.01 seconds.

  1. Replies
    5
    Views
    2,050

    hi, again.. sorry if I was a bit rude earlier.....

    hi, again.. sorry if I was a bit rude earlier.. nothing personal and I hope it doesn't intimidate you from posting again.. :)

    The answer above is good so I'm just going to point out one little...
  2. Replies
    5
    Views
    1,675

    Summary...

    This is my personal preference for using constants:

    Const:
    Numerical constants and similar
    Why?
    Strong typechecking.
    Can limit scope of const. ( to eg. a function )

    Enum:
    Logical...
  3. Replies
    5
    Views
    2,050

    This sound like a typical homework problem......

    This sound like a typical homework problem... witch means _you_ are suposed to solve it! So my advice is that you realy try to solve the problem, and then if you encounter a problem you post here...
  4. Replies
    6
    Views
    3,870

    Yepp, that's probably it.. but: >allocate...

    Yepp, that's probably it.. but:

    >allocate enought space before e.g.\
    >>> char temp[100]; <<<

    might not be the best fix.. (what if the files are >100byte) .. bye, bye..

    First rule of array...
  5. Thread: vectors

    by d00-asu
    Replies
    1
    Views
    935

    Ok, I'm not sure what it is you wan't help with.....

    Ok, I'm not sure what it is you wan't help with.. displaying the content of a vector? / a 2D vector? or just generaly how a vector works?

    Here is a smal example:

    #include <vector>

    ostream&...
  6. Replies
    1
    Views
    994

    template trouble

    Hi,

    I've encountered a problem concerning templates, perhaps someone knows how to fix this..

    I have a template class "template<class T> class myclass"
    this class has a memberfunction that is...
  7. Replies
    14
    Views
    4,313

    Oki.. I know how it's suposed to work.. but I...

    Oki.. I know how it's suposed to work.. but I just can't get it to link.. so I decided to surender and rethink my design.. perhaps I don't _need_ that much static constants.. I think I can move a...
  8. Replies
    14
    Views
    4,313

    horrible header headake

    Allright.. fair enough.. I'm still a bit puzzled by the whole header files / included files part.. perhaps you would like to clarify some things..

    I have a class, separated in classheader...
  9. Replies
    4
    Views
    2,895

    Oki.. thanx for all your help, I'll get stareted...

    Oki.. thanx for all your help, I'll get stareted on those tutorials right away..

    - Anders
  10. Replies
    14
    Views
    4,313

    Ok, I think I've got it.. there is one problem...

    Ok, I think I've got it.. there is one problem though..

    The file that I'm trying to break up is one class, that is: class definition and memberfunctions.. but when I try to compile the...
  11. Replies
    14
    Views
    4,313

    Hi again, Thanx for the quick answers. I tried...

    Hi again,

    Thanx for the quick answers. I tried to break up the code in multiple files: one containing the class header and the data, and a bunch of others containing memberfunctions. This seemed...
  12. Replies
    4
    Views
    2,895

    Newbee question

    Hi,

    I'm trying to learn some Win programming but I got stuck directly...

    I've downloaded a toturial and a sample source code for a very simple program, but when I try to run it I get an error...
  13. Replies
    14
    Views
    4,313

    to much global data?

    Hi,

    I'm writing a rather large 16-bit app. but I have encountered some problems.

    I need some constats in a class ( aprox. 24K ) so I have made them const and static. However the compiler gives...
Results 1 to 13 of 13