Search:

Type: Posts; User: faze

Search: Search took 0.01 seconds.

  1. Replies
    7
    Views
    2,480

    thanks for all the help guys, i think i...

    thanks for all the help guys, i think i understand it. this stuff is confusing :confused:
  2. Replies
    7
    Views
    2,480

    so what if i have the situation like this? ...

    so what if i have the situation like this?



    class Base
    {
    public:
    virtual void f1()
    {
    f2(); // static binding
  3. Replies
    7
    Views
    2,480

    dynamic/static binding

    hey, can you guys check this over for me and tell me if i got it right?



    class Base
    {
    public:
    virtual void f1()
    {
    f2(); // static binding, because f2 is static
  4. Thread: principles

    by faze
    Replies
    1
    Views
    761

    would everyone agree with these? a) The...

    would everyone agree with these?

    a)

    The dont repeat yourself method, most people interpret it as, simply put, dont duplicate code. if you use subroutines you can reuse them later in bigger...
  5. Thread: principles

    by faze
    Replies
    1
    Views
    761

    principles

    hey,
    I dont seem to see much information out there on the principles in c++. I was woundering if anyone could give me a little info, or post a link where i could find out some info about the...
  6. Replies
    7
    Views
    3,667

    let me see if i understand this. so the this...

    let me see if i understand this.
    so the this pointer is always a constant pointer(because it points to itself). but wether its a constant pointer to a constant object is dependant upon that const...
  7. Thread: system() help

    by faze
    Replies
    8
    Views
    1,260

    did u include stdlib.h?

    did u include stdlib.h?
  8. Replies
    5
    Views
    9,439

    it could be an object of some class. it could be...

    it could be an object of some class. it could be a typedef... you gotta look through the code and find first use or declaration, that should tell you more.
  9. Replies
    22
    Views
    1,845

    yea, theres alot of those, i kina lucked out... i...

    yea, theres alot of those, i kina lucked out... i was always facinated by C and after a bunch of tutorials i thought i was good at it. then i took the class in college and realized how much i...
  10. Replies
    11
    Views
    2,025

    try system(sleep x); (stdlib.h) or the regular...

    try system(sleep x); (stdlib.h)

    or the regular sleep(); (cant remember which header)
    but on non win systems... you can take advantage of the build in sleep function.
  11. Replies
    22
    Views
    1,845

    Im taking an oop class. In oop depending on if...

    Im taking an oop class. In oop depending on if its on the stack or the heap we treat them very differently... im not sure if you did or not, but dont take my post offensively, it wasnt ment that way....
  12. Replies
    7
    Views
    3,667

    the "this" pointer

    ok im not real clear on the "this" self pointer thing... and im not sure if anyone has ever tried to google for this and self pointer... but it doesnt exactly show what im looking for.

    is there...
  13. Thread: Help with loops

    by faze
    Replies
    26
    Views
    1,829

    well theres quite a few different kinds of loops....

    well theres quite a few different kinds of loops. sometimes wed have wierd projects... and would require it to run once, but depending on some argument wed have to run a certain ammount of times. for...
  14. Replies
    22
    Views
    1,845

    Actually, no, when you type "*ptr = new int "...

    Actually, no, when you type "*ptr = new int "
    your allocating space on the heap as opposed to the stack. And *ptr is your pointer to the space on the heap that you allocated. You type int to tell it...
  15. Replies
    11
    Views
    1,268

    i cant change main.cpp... thats the assignment!...

    i cant change main.cpp... thats the assignment! unless there is some way to make the comp1(new Memory(256)); into a reference but as i recall that returns a pointer. i got confused and deleted alot...
  16. Replies
    11
    Views
    1,268

    i just dont get it !

    ok this is for an object oriented programming class.

    i have 5 files
    Main.cpp (which i cant modify)
    computer.cpp (implementation of computer.h)
    computer.h (interface for computer.cpp)...
  17. Thread: Return???

    by faze
    Replies
    13
    Views
    1,485

    look at it like this... persay you have an...

    look at it like this...

    persay you have an interger that should not be less than 10. here is an example of using return 1; to figure it out...
    you have a function defintion
    definition of...
Results 1 to 17 of 17