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

Search:

Type: Posts; User: xCrusade

Search: Search took 0.02 seconds.

  1. Re: How to use these Constructor parameters?

    Thanks for clearing that up!
  2. Re: How to use these Constructor parameters?

    public abstract class Aqualife {

    String name;
    int age;
    String fishOrigin[] = {"Lake-fish", "Ocean-fish"};

    abstract void eat();
    abstract void procreates();

    public...
  3. Re: How to use these Constructor parameters?

    Here is the code in which I need to work properly:


    class Whale extends Aqualife{

    private String[] whaleType = {"Killer Whale", "Blue Whale"};

    Whale(String name, int age,...
  4. [RESOLVED] How to use these Constructor parameters?

    I am having difficulty trying to get passed this bump in the road in a program I am trying to build, mainly regarding an overloaded Constructor and an objects creation. Here it is:

    The...
  5. Replies
    1
    Views
    4,775

    Infinite loop help

    Ok, so I've been trying to finish this program, but when I do things a certain way, I go through an infinite loop in which I am not sure how to stop or keep it from happening. The object of the...
  6. Replies
    3
    Views
    11,786

    Re: Out of bounds array problem

    Thanks for the input, it compiles beautifully now, time to get started! I will post back if I have any issues, I am not sure how I am going to attempt to complete the program but I have to do a...
  7. Replies
    3
    Views
    11,786

    Out of bounds array problem

    Hello.

    I am doing an exercise in which I need to do the following:

    Design and implement class myArray

    myArray class must solve the array index out of bounds problem and allow the user to...
  8. Replies
    13
    Views
    21,432

    Re: Circle and Radius Problem

    Thanks for the input S_M_A, I am going to finish up when I get out of work.

    I keep hearing this is a bad use of inheritance, most likely the book. The examples and explanations in the book are...
  9. Replies
    13
    Views
    21,432

    Re: Circle and Radius Problem

    I've been working on this most of the day and it has been going smoothly, I am just having one problem. As of now, I have the user entering 2 points for x and y coordinates. Which seems pretty much...
  10. Replies
    13
    Views
    21,432

    Re: Circle and Radius Problem

    Here is what I have so far.. I am having trouble starting the circleType class, I am not sure what functions to put in it. I am assuming setRadius, printRadius, calculateArea, printArea,...
  11. Replies
    13
    Views
    21,432

    Re: Circle and Radius Problem

    Thanks for the input guys. I am going to be working on it most the day after I get out of work, I will post my results tonight if there are no problems.
  12. Replies
    13
    Views
    21,432

    Circle and Radius Problem

    Hey,
    I am working on a problem in which I am having a hard time starting. The problem being:

    Every circle has a center and a radius. Given the radius, we can determine its position in the...
  13. Replies
    9
    Views
    24,232

    Re: 0 Converting Roman Numerals to Decimals

    Thanks for all your help. It was due at midnight, and I turned it in as I had it, but I thought I would end the thread by showing what I had finished with.



    int romanType::convertRoman(string&...
  14. Replies
    9
    Views
    24,232

    Re: 0 Converting Roman Numerals to Decimals

    Thanks for your help guys, I've tweaked it a bit, took out some of the mess. I was confused on the function arguments, but I think I have that straightened out, thanks! I also forgot they cases were...
  15. Replies
    9
    Views
    24,232

    0 Converting Roman Numerals to Decimals

    Hi,

    I have been working on this program for a few days.. and I am so far gone I lost myself in my own program. I usually just start from scratch when I get frustrated but there is too much time...
Results 1 to 15 of 15





Click Here to Expand Forum to Full Width

Featured