Search:

Type: Posts; User: krygen

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    1,327

    class vars checked b4 object needs them?

    Take this code for example



    #define upleft buffer[a-1][b-1]
    #define upcent buffer[a-1][b]
    #define upright buffer[a-1][b+1]
    #define left buffer[a][b-1]
    #define right buffer[a][b+1]...
  2. Replies
    3
    Views
    1,192

    of course. i forgot that references are implicit...

    of course. i forgot that references are implicit pointers. that was a pretty bad question. just goes to show what happens when you come back to c++ after a break :(
  3. Replies
    3
    Views
    1,192

    reference a const reference

    Hey all, I was just wondering why this won't compile.




    int a=5;
    const int &b=a;
    int &c=b; //uh oh! why can't you reference a const ref?
  4. Replies
    8
    Views
    1,029

    when you have a statement such as class_name ob1...

    when you have a statement such as
    class_name ob1 = class_name(5);

    would it be better to think of that as more of the *syntax* for a way to call the constructor, instead of trying to break in into...
  5. Replies
    8
    Views
    1,029

    class_name ob1 = class_name(5)

    Ok, well I know that this statement:

    class_name ob1 = class_name(5);

    calls the class_name(int) constructor, but what I don't understand is how.

    I've been told that such a statement as...
  6. Replies
    3
    Views
    2,173

    thanks guys, great explanations

    thanks guys, great explanations
  7. Replies
    6
    Views
    1,378

    this question got me thinking how does the...

    this question got me thinking

    how does the debugger access the code if it's already compiled? I mean, I can see how it accesses the headers... but the actual C libraries? Does it actually go...
  8. Replies
    3
    Views
    2,173

    class initialization and the = operator

    I've already asked some people about this on AIM but I decided to just formaly ask it on the boards as well. I have several questions ;)

    Whenever you initialize an object of a class, e.g

    ...
  9. Replies
    2
    Views
    1,159

    well, that's what i was wondering. if I have a...

    well, that's what i was wondering. if I have a file in my project but i never refer to it, will it be linked?
  10. Replies
    2
    Views
    1,276

    objects + [copy]constructors + etc

    Disclaimer: the following post is a ramble. Please feel free to comment on whatever part of it you wish ;)

    I noticed that if I assign an enumeration variable to a fundamental type variable, it's...
  11. Replies
    7
    Views
    1,594

    i understand now. thanks everybody + dave evans u...

    i understand now. thanks everybody + dave evans u were esp. helpful
  12. Replies
    7
    Views
    1,594

    yes, i am aware that the for loop is attempting...

    yes, i am aware that the for loop is attempting to access elements of the array that are undefined.

    However, these attempts to access the array, although technically not correct, are allowed by my...
  13. Replies
    7
    Views
    1,594

    cellular autonoma "edge effects"

    Alrighty, I've built a simple ascii model of a cellular autonoma:




    int cells[50][50];

    int main()
    {
  14. Replies
    2
    Views
    1,159

    visual studio [c++] .net linked files

    Hello to all the vc++ .net users on this forum:

    Is there a way to see all of the linked files when you build a project? Your .cpp files and standard library files, etc...


    thanks :)
  15. Thread: msdn

    by krygen
    Replies
    2
    Views
    1,178

    msdn

    Hey everyone, sorry if this is off-topic, but I didn't really know where else to ask this. I figure all you windows programming guys will know the answer ;)

    It's about ms visual c++ .net, and...
  16. Replies
    14
    Views
    2,577

    alright, thanks.

    alright, thanks.
  17. Replies
    14
    Views
    2,577

    prelude: the program i posted above gives a...

    prelude: the program i posted above gives a linking error when you build in vc++ .net 2003? because if it does i must have just been mistaken in thinking it worked.
  18. Replies
    14
    Views
    2,577

    yeah, i compiled and linked... weird... are you...

    yeah, i compiled and linked... weird...
    are you using visual studio .net 2003 prelude?
  19. Replies
    14
    Views
    2,577

    bithub: right ;) im not near my compiler...

    bithub: right ;)

    im not near my compiler right now, but it is visual studio .net 2003

    The code was something like this:

    first file
  20. Replies
    14
    Views
    2,577

    Linking and Libraries

    I have two questions :D

    First off,

    When you include a header file in your program, does the compiler then link the program to the library that it intails? Or are the libraries always linked?...
  21. Replies
    9
    Views
    3,070

    har har.

    har har.
  22. Replies
    9
    Views
    1,114

    I supposed I figured that linking with the...

    I supposed I figured that linking with the standard library is the same as linking to another file. e.g when I create my own function in another file and link it, all i need to do is prototype it in...
  23. Replies
    9
    Views
    1,114

    Another question (manual prototypes?)

    I canīt believe this, but I just found out that the internet cafe has a copy of vc++6 on it! wow! (not joking)

    so anyways, i have another question.

    headers include function prototypes for...
  24. Replies
    9
    Views
    3,070

    to #include or not to #include

    When using functions that are in the standard library, I find that to use them I sometimes have to include the appropriote header, and sometimes I do not. e.g the strlen() function: I can use it...
  25. Replies
    4
    Views
    1,022

    why use the -> operator?

    I was just wondering why, when using object pointers, you must use the -> operatior. Why couldnīt you simply follow the standard method like: *p.funct() if you were accesing the funct() member...
Results 1 to 25 of 43
Page 1 of 2 1 2