March 2nd, 2013, 02:18 PM
Thanks for the information guys. However being honest most of it has gone over my head. I think I've jumped in the deep end and tried to be too ambitious, so I'm going to go back over what I've...
March 2nd, 2013, 09:06 AM
Alright, there is a lot of it though:
#include <iostream>
#include "Area.h"
#include "Volume.h"
int main()
{
int ChoosenShapeType;
March 2nd, 2013, 08:26 AM
Ok, so guys. I've finally figured out how to call a class from a different file. (I was calling double Triangle(); instead of double Area::Triangle(); )
But now I've also made a class for working...
February 28th, 2013, 04:56 PM
Alright, I'll go back over it next time. I see what you mean, but I haven't really thought that far ahead in my program. I just made the class to really practice it and don't really know what else I...
February 28th, 2013, 03:07 PM
Right, so I've had a bit more of free time so I decided to learn some more. I've learnt about basic classes and the switch method which was previously told here. I have a couple of questions: ...
February 25th, 2013, 12:02 PM
Alright, thanks for the this. However I'm not quite sure I get what you mean. Do you mean I should do this:
else if (ChoosenShape == 3)//If Circle is choosen
{
double Radius;
...
February 24th, 2013, 06:00 PM
Currently I am using. SAMS Teach Yourself C++ in 24 hours. I found it for like £3 so I thought why not. Not sure if it's a good one, but so far it looks decent.
February 24th, 2013, 05:40 PM
Thank you both for the feedback. I have now removed the output from the functions and included the 'using namespace std;' into the code. I have used a short int instead of a int as on my computer int...
February 24th, 2013, 05:07 PM
Alright, thanks for the reply. Is
int AreaTrianlge(short int Height, short int Base)
{
return((Height*Base)/2);
}
more what you mean?
February 24th, 2013, 04:05 PM
Hello all, I recently began to learn C++ from reading a book. I'm up to chapter 4 of 24 and thought I'd like to try out what I've learnt to far. My program works fine, however I'd like some advice on...