server_crash 64 Postaholic

I figured this crap out. It's just that the width doesn't apply to only the fill, but to the buffer/line of text as a whole.

server_crash 64 Postaholic

i had the limit variable up because i was going to have a counter, my teacher really cant teach and i dont know what the simple version is, i was to compare the numbers using a switch statement and then add the matches

As much help as he's given you, you should be able to FULLY understand. I'm sorry, but you're just interested in having the program written for you.

server_crash 64 Postaholic

I thought it was just the opposite -> expensive.
I think it will be quit an advancement if they can get it going. I know I'll appreciate it, because we don't live in an area where it's easy to get broadband, so we have a lot of trouble with our service, and the provider.

server_crash 64 Postaholic

Give me a dollar.

server_crash 64 Postaholic

Aren't we all? lol

negative.

server_crash 64 Postaholic

For some reason this code is not correctly displaying the output....Is it a compiler issue? I'm not getting any affect from the width method, nor from the fill method. However, when I include <iomanip> and make a call to setw(int) then it works, but this code doesn't:

Code:

#include <cstdlib> #include <iostream> int main() { std::cout << "This is some text"; std::cout.width(5); std::cout.fill('*'); std::cout << "\nThis is some other text"; int x; std::cin >> x; return 0; }


NOTE: I use bloodshed

server_crash 64 Postaholic

I still feel like a winner.

server_crash 64 Postaholic

Create a website than can run an interpreter. I send, paste or type a short program code into the site's entry field and the site returns the result. The language I like to see is of course Python.

Neat idea.

server_crash 64 Postaholic

since only one person has voted, and that person was you. ;)

That's bullcrap.

server_crash 64 Postaholic

So what's the question? What are you having trouble with?
Do you want me to write the application for you?

server_crash 64 Postaholic

It's implicit, but it's obvious who the voters have chosen....Can't say I'm suprised.

server_crash 64 Postaholic

You need an html file that will run the applet:

<html>
      <head><title>Applet</title></head>
       <body>
             <applet code="AppletName.class" width="500" height="500">
                  Browser does not support java applets
             </applet>
       </body>
</html>
server_crash 64 Postaholic

As an on going debate this must be settled by the onlooking audience.
You decide.

server_crash 64 Postaholic

Wouldn't that be annoying?


And remember, Java IS NOT Javascript. Javascript IS NOT Java.

server_crash 64 Postaholic

What kind of programming do you know?

server_crash 64 Postaholic

I see now why it didn't compile, but what's the purpose of private inheritance? Is it impossible to implement that method?

server_crash 64 Postaholic

I'm using bloodshed....It's giving me the same error but I don't understand why. Is it not legal for me to do this?

server_crash 64 Postaholic

I may not be understanding private inheritance right, but I thought when you inherited privately that you could still access public member data/functions, but the child class of the derived class would not. For some reason it is saying the public print() method is not accessable in this context....Is there something I'm doing wrong?

#include <iostream>
#include <cstdlib>

class Animal
{
      public:
             Animal() { std::cout << "Animal Constructor....\n"; }
             virtual ~Animal() { std::cout << "Animal Deconstructor...\n"; }
             
             void print() const { std::cout << "Print method...\n"; }
      private:
              void printP() const { std::cout << "Private print method...\n"; }
};


class Dog : public Animal
{
      public: 
              Dog() { std::cout << "Dog constructor...\n"; }
              ~Dog() { std::cout << "Dog deconstructor..\n"; }
};

class Bird : private Animal
{
      public:
             Bird() { std::cout << "Bird constructor...\n"; }
             ~Bird() { std::cout << "Bird deconstructor...\n"; }
};



int main()
{
    Bird b;
    b.print();
}
server_crash 64 Postaholic

JSP wiki....Still not enough, but might be something cool to add.

server_crash 64 Postaholic

(remember i'm only 3 weeks old ;-)

You're the youngest programmer I know.


-Just messing with you. :cheesy:

server_crash 64 Postaholic

Have you even tried?

server_crash 64 Postaholic

Fill the correct spot when someone wants a room:

Someone wants room 20 on floor 5:

array[5][20] = "Persons name";

server_crash 64 Postaholic

looks gay.

server_crash 64 Postaholic

Thanks for the entertainment j.

server_crash 64 Postaholic

Linkin Park
Green Day
P.O.D
Maroon 5 (She will be loved)
Bon Jovi

Good taste, except for P.O.D!

server_crash 64 Postaholic

I think it's better to follow your own design structure. However, for bigger projects you probably need a detailed diagram of how things work and stuff like that, because it's hard to sit down and code something big. I'd say the most important thing is making a layout of all the clasess you want, and the functions, members that are in those classes.

server_crash 64 Postaholic

http://www.experts-exchange.com/. Perhaps you don't really have a plan and wherever you go from here is fine with you. Either one is great, I was just curious. Thanks.
J_

Experts Exchange? Oh yeah, those are the turds that charge you out the butt for the same FREE help I get here.

server_crash 64 Postaholic

Maybe your homework could be your blog...

Precalculus isn't exactly a popular topic.

server_crash 64 Postaholic

It works like this: People get mad at posts, so they give you negative reputation. I kind of like that though. I'm getting close to having a red bar.

server_crash 64 Postaholic

Java's got a big mail api and of course a tutorial to go with it.

server_crash 64 Postaholic

Are you creating the Random object each time that method is called? The Random object should bounce around and hit every number before repeating itself.

server_crash 64 Postaholic

I think it is their problem. Something that expensive just doesn't tear up in that short amount of time.

server_crash 64 Postaholic

While it was under warranty the tech support was unbeatable, but just last night one of their very non-understandable indian managers told me it wasn't their problem.

server_crash 64 Postaholic

75% of hardware failures occur in that 3-4 year period of ownership, or something like that-- that's why they offer them!

3-4 years? Mine's not even 1 and a half years old! If I could have got 3 years out of the crap I wouldn't mad. 1600 bucks for something that only lasts barely over a year is not right.

server_crash 64 Postaholic

Extended warranty is expensive. All it's doing is paying for the problems ahead of time.

server_crash 64 Postaholic

I've been looking around and I'm definately not the only one having problems. I'm finding stuff all over the internet about Dell. We just called again today and some manager is suppose to call tommorow. If it's not still not resolved, there are a few lawyers accepting cases against Dell for free and I'll be happy to contact them.

server_crash 64 Postaholic

Has anyone had a bad experience with Dell?
I always thought they were really awesome and wouldn't bye anything else untill now. We bought 2 laptops of the same kind (600m inspiron) about 1 year and 4 months ago. I loved my laptop and had no problems with it. Right around the time the warranty was to end the screen went bad...No big deal. A Dell rep was at my house the next day replacing the thing with no questions ask. But after my warranty died it seemed like everything just went bad. First of all, I had never really used my CD drive because I had one of those USB flash memories. To save time the cd drive didn't read correctly or had something wrong, so I emailed them and got NO reply back...That was 3 months ago.(gave up) Not to long ago my hard drive started working slower and slower, and finally it just stoped working completely. I contacted them immediately and they simply said they wouldn't do anything about it since the warranty ended.

I called them and told my story....Some dude said he would dispatch an email about contacting some warranty office, but he never did.
Anyways, I just think this is a bunch of crap. It's obvious there's something wrong with their design or something. I would think a laptop is able to last at least 2-3 years(my brothers gateway is still going after 4). I also would think they should fix …

server_crash 64 Postaholic

I think stop was deprecated. Anyways, try setting some kind of flag to stop the execution of the thread in the run method.

If (this is true)
{
    Thread = null;
}
else
{
   Thread = Thread.currentThread();
}

That's my guess at it.

server_crash 64 Postaholic

I know, I was just messing around :D

server_crash 64 Postaholic

It may be good for Sun to partner up, but I don't see what Google's getting out of it.

server_crash 64 Postaholic

I'm a loser. I like to program instead of playing video games and watching TV.

server_crash 64 Postaholic

Bluj is terrible in my opinion. Besides, you should start out using the command line to learn fundamentals.

server_crash 64 Postaholic

(I've used well over a dozen over the years, probably closer to 2 dozen).

Stop bragging! :lol:

server_crash 64 Postaholic

That's rather petulant isn't it?

Your impudent comments deserved a rather petulant response.


Anyways, you said there's no real NEED to have "In God we Trust" on the coin, so is there really a NEED to teach evolution in school?

Personally, I think evolution should be taken out, but I don't stoop to the opposing's level of saying it really affects me and all this other crap. The stupid thing is if the coin said "in evolution we believe" there would be no complaining because all the complainers are those of that belief.

server_crash 64 Postaholic

So what's your point? The term "God" is used. So how does that imply the allegance to a certain diety? If that word is not allowed because people(all liberals like you) think you have to bow down to the framers God, then what makes you think it's right to teach evolution in school?


There were no problems with this stuff many years ago, but now it's just a bunch of liberals exploiting a system to scared to fight back. Liberals who will one day contribute to the fall of a ONCE great nation.

Oh but let's not discuss this. Cat thinks it's illogical(only his views are right).

server_crash 64 Postaholic

I just decided to scrap the idea. I couldn't get anything to work without changing a bunch of code. I think to really get it to work you have to use layers with netscape, but it's just not worth it.

Thanks for the help!

server_crash 64 Postaholic

If the supreme court orders the phrase "under God" out of the pledge, what's next, the phrase "in God we trust"? Now where have I seen that phrase before? Oh yeah...on all of our currency! :eek:

Well, the ten commandments were taken out of a court in Alabama(i think) because some guy believed people would be more lenient and moral before judging people.....Not that the ten commandments would suddenly convert someone, but wouldn't you want a moral and lenient person?

server_crash 64 Postaholic

I'm trying to create a Mammal class which has two virtual methods, and one non virtual methods to demonstrate inheritance. I've written the class, but now I have a few errors, and a few questions. First of all, I'm recieving an error that says the following methods aren't declared:
speak();
move();
printName();

It works fine if I declare a Dog class(derived) and then use the dot operator to call these methods, but when I try to create a Pointer to a base class which is assigned to a derived class, then I get the errors:
Mammal* ptr = new Dog;

Here's the code:

#include <cstdlib>
#include <iostream>

//using namespace std;

class Mammal
{
      public:
             Mammal();
             ~Mammal();
             virtual void speak() { std::cout << "Mammal Speaking..."; }
             virtual void move() { std::cout << "Mammal moving..."; }
             void printName() { std::cout << "Mammal..."; }
      private:
};

/**
 *Mammal
 */
Mammal::Mammal()
{
}
Mammal::~Mammal()
{
}

/**
 *Dog
 */
class Dog : public Mammal
{
      public:
             Dog();
             ~Dog();
             virtual void speak();
             virtual void move();
             void printName();
      private:
};

Dog::Dog()
{
}
Dog::~Dog()
{
}
void Dog::speak()
{
     std::cout << "Bark. Bark...." << std::endl;
}
void Dog::move()
{
    std::cout << "Dog moving..." << std::endl;
}
void Dog::printName()
{
     std::cout << "Dog...." << std::endl;
}

/**
 *Main
 */
int main()
{

    std::cout << std::endl << std::endl << "Creation of Mammal Pointer" << std::endl;
    Mammal* ptr = new Dog;
    [b]ptr.speak();[/b]
    [b]ptr.move();[/b]
    [b]ptr.printName();[/b]
    
    int x;
    std::cin >> x;
    
    return 0;
}
server_crash 64 Postaholic
import java.util.*;

class Test
{
     public static void main(String[] args)
     {
            ArrayList al = new ArrayList();
            al.add("one");
            al.add("two");
      }
}

Notice how there's no set size anywhere.

server_crash 64 Postaholic

Not sure I understand. Can you provide the line(s) of code causing the error?