Search:

Type: Posts; User: Scatman

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    284

    Overload pre and post increment

    Hi all,

    I just reached the overloading chapter, amazing and confusing :).
    so i tried to overload the pre and post increment operations. So i did the following:

    Simple class:


    class Counter...
  2. Replies
    2
    Views
    266

    Ooooh yes it makes sense :) thanks a lot

    Ooooh yes it makes sense :)
    thanks a lot
  3. Replies
    2
    Views
    266

    call a method from another class

    Hi all,

    i have difficulty understanding the following :
    i have two classes : Point and Rectangle.



    class Point // holds x,y coordinates
    {
  4. Thread: Overloading <<

    by Scatman
    Replies
    3
    Views
    248

    Not easy to see that as a beginner...thanks...

    Not easy to see that as a beginner...thanks Laserlight--

    @Zeus_ : i have good experience with geeksforgeeks, will take a look at it, thanks a lot
  5. Thread: Overloading <<

    by Scatman
    Replies
    3
    Views
    248

    Overloading

    Hi all,
    i am studying a C++ book. Now i am having the chapter struct..so slowly going to classes. The book is ok, makes, but makes me angry from time to time, because the guy mention sth new but...
  6. Replies
    3
    Views
    279

    oook. Understood. thanks. is there an...

    oook. Understood. thanks.

    is there an advantage of the new syntax again the old one?
  7. Replies
    3
    Views
    279

    error C2143 missing ';'...

    Hi all,

    i am using Microsoft Visual C++ 2010 Express

    i am sure, a super easy question. i am just learning C++...and i am already stuck with this error...here the simple program



    #include...
  8. Replies
    11
    Views
    445

    Seems to be a good book, but too expensive...

    Seems to be a good book, but too expensive :D..will check in a library

    Accelerated C++ and my browsing of C++, i have now...hopefully i will enjoy them aslo :D

    thanks
  9. Replies
    11
    Views
    445

    Hi all, Thanks a lot for your replies. ...

    Hi all,

    Thanks a lot for your replies.

    @Catacombs : sounds good but coudnt find it, do you have a link for that book ?

    @Niccolo : a great explanation with examples, just perfect, thanks...
  10. Replies
    11
    Views
    445

    Book recommendation, Modern C++

    Hi all,

    I have finsihed the C book ( Sams teach yourself C in 21 days, old revision). it's a nice book. I am not a beginner but also not an expert.
    i also want to start learning C++.

    However...
  11. Replies
    13
    Views
    475

    Hi Catacombs, Yeah that is a nice idea, to...

    Hi Catacombs,

    Yeah that is a nice idea, to just think of real scenarios in daily life :)
    thanks and good luck :)
  12. Replies
    13
    Views
    475

    Hey cooper, no never heard of "project Euler",...

    Hey cooper,

    no never heard of "project Euler", i will take a look at it,
    yes i have done lists, but so far only single, and that is what of he topics i want to improve with some exercices....i am...
  13. Replies
    13
    Views
    475

    how to become much better in C

    Hi all,

    i was learning about C since a while.
    I used the book (Sams C in 21 days). It's a bit old, but good.
    I typed all the code examples, read almost everything. I feel like i know the basics...
  14. Thread: qsort

    by Scatman
    Replies
    6
    Views
    358

    hmm, my comp function wil be given 2 void...

    hmm, my comp function wil be given 2 void pointers.
    1. i need to typecast to int --> (int *)
    2. i need the value in the adress pointed to by the pointer (*)
    so :


    int comp(const void *a, const...
  15. Thread: qsort

    by Scatman
    Replies
    6
    Views
    358

    qsort

    Hi all,

    i was reading in a book how to use the function qsort. the function needs a pointer to a compare function comp.
    sth like this was done :


    char *data[MAX]; // memory was allocated...
  16. Replies
    4
    Views
    442

    Thanks laserlight and Salem, yeah it works...

    Thanks laserlight and Salem,

    yeah it works perfect.
    however i still don't really understand this :
  17. Replies
    4
    Views
    442

    sorry a typo...i meant.. I CAN use pointer...

    sorry a typo...i meant.. I CAN use pointer arithmetik
  18. Replies
    4
    Views
    442

    point to an array of pointers

    Hi all,

    this is my first post.
    i am sorry if i did something wrong.
    i would start with an example.
    i have a multi dimentioal array

    in multi[3][4];

    the name multi without brackets is a...
Results 1 to 18 of 18