CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: Kegs

Search: Search took 0.04 seconds.

  1. Replies
    27
    Views
    4,021

    Re: [Advice Needed] Noob Code!

    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...
  2. Replies
    27
    Views
    4,021

    Re: [Advice Needed] Noob Code!

    Alright, there is a lot of it though:


    #include <iostream>
    #include "Area.h"
    #include "Volume.h"

    int main()
    {
    int ChoosenShapeType;
  3. Replies
    27
    Views
    4,021

    Re: [Advice Needed] Noob Code!

    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...
  4. Replies
    27
    Views
    4,021

    Re: [Advice Needed] Noob Code!

    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...
  5. Replies
    27
    Views
    4,021

    Re: [Advice Needed] Noob Code!

    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: ...
  6. Replies
    27
    Views
    4,021

    Re: [Advice Needed] Noob Code!

    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;
    ...
  7. Replies
    27
    Views
    4,021

    Re: [Advice Needed] Noob Code!

    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.
  8. Replies
    27
    Views
    4,021

    Re: [Advice Needed] Noob Code!

    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...
  9. Replies
    27
    Views
    4,021

    Re: [Advice Needed] Noob Code!

    Alright, thanks for the reply. Is

    int AreaTrianlge(short int Height, short int Base)
    {
    return((Height*Base)/2);
    }

    more what you mean?
  10. Replies
    27
    Views
    4,021

    [Advice Needed] Noob Code!

    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...
Results 1 to 10 of 10





Click Here to Expand Forum to Full Width

Featured