- Strength to Increase Rep
- +0
- Strength to Decrease Rep
- -0
- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
Programming and writing code (that works!) is my passion. Officially, I'm a php/drupal web developer. But I'm a big enthusiast of java and c++, and would change career in a blink of an eye! I'm also very interested in computer graphics, mainly OpenGL…
- Interests
- Travelling, football (soccer), squash, billiardo and facebooking :)
- PC Specs
- CUP: Pentium D (does clock speed matter now?!) RAM: 1.5 GB OS: Linux Kubuntu 9.10 (viva open source)
5 Posted Topics
Re: Well, I would rather not give you the straight answer, but rather the I would think about it: The task is to swap the values of 2 variables using pointers. So first, write the code the swaps the values of the variables without the use of pointers (using only variables … | |
Hi all, I'm sure this is a trivial question for the veterans (and the newbs maybe as well). But I just can't find a straight answer to it. So here it goes: I have my main.cpp file, and 2 more files, custom.h and custom.cpp. Obviously, custom.h would contain declarations, prototype...etc, … | |
Re: Hi, I would like to add a bit to what Colezy said. First of all, I think there is a '*' missing in the code: [CODE] //Direct access with 'dot' Object myObjectDirect; myObjectDirect.doWork(); //Indirect access with pointer arrow Object *myObjectPointer = new Object(); myObjectPointer->doWork();[/CODE] To fully understand the arrow, consider … | |
Hi everyone, I'm doing a little project after a long period of no c++, so please forgive me for any possible stupid mistakes. Basically I have 2 cpp files, in first.cpp I define namespace 'myNS', and in second.cpp I define class 'myClass'. The problem is that I have a pointer … | |
Re: I think the main logic is correct, but I did spot one tiny mistake (I think): While it is correct that the loop will exit when a negative number is entered, the negative number is still added to total (Note that amount is added to total before the check of … |
The End.