Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.

Lv 612,947 points

Dark-River

Favorite Answers6%
Answers3,967
  • The arrogance of politicians

    Does anyone else get as annoyed as I do when a politician claims to speak "for all americans"?

    http://news.yahoo.com/s/ap/20080812/ap_on_el_pr/ca...

    "Republican presidential candidate John McCain phoned Georgia's president Tuesday to tell him all Americans back his country's efforts to thwart military attacks from Russia. "

    Why is it neither Obama nor McCain have the decency to actually state what is happening over there? Georgia nearly annihiliates south ossetia, and russia steps in to defend them from genoicde, but somehow out of all of this, Georgia became the victim, and Russia the aggressor?!?

    Its funny, when the US steps in to stop a government from killing its own people it is called "liberation". But when another country does it, it is called unprovoked military aggression.

    6 AnswersPolitics1 decade ago
  • C++: Overriding an overloaded inherited virtual method?

    Why does this fail?

    class base {

    public:

        base() {};

        virtual void func(string str) {return;}

        virtual void func(int) {return;}

    };

    class derived : public base {

    public:

        derived() {};

         virtual void func(int) {return;}

    };

    int main(...)

    {

        derived d;

        d.func( string("test") ); // Fails, does not recognize method

        ...

    }

    The actual error from MS Visual Studio C++ 2008:

    error C2664: 'derived::a' : cannot convert parameter 1 from 'std::basic_string...' to 'int'

    Why can't the compiler recognize the inherited func(string) method from the base class when I override the func(int) version? Whether base::func(string) is defined as virtual or not makes no difference, and if it is not overridden in derived, I can access both methods.

    My intention is that the string implemenation will simply be inherited as-is by derived, and the int version can be overridden for new functionality.

    Thanks in advance!

    3 AnswersProgramming & Design1 decade ago
  • VxWorks - taskVarAdd()?

    I am trying to figure out someone else code that is designed to create periodic tasks. Private to the class is a static structure pointer. In the class' main processing routine it creates a VxWorks task variable and assigns the class' copy of the structure.

    taskVarAdd(0, tTask::pTaskTCB);

    tTask::pTaskTCB = &this->TaskTCB;

    It then loops continually to execute the task code until it shutsdown.

    My question is; when other instances access the static pTaskTCB pointer do they see the structure for the currently active task, or just their own local structure?

    1 AnswerProgramming & Design1 decade ago
  • Winsock WAN / LAN boundary.?

    I am developing a Winsock 2 API, and was wondering how a client program can connect to a server across the internet on a LAN.

    I know how to find the IP addresses and all that stuff, but how do I connect the client to the server through the router? Can this be specified when creating the socket connection, or does the router have to be configured to forward the messages? If so, how do I configure the router?

    Thanks.

    1 AnswerProgramming & Design1 decade ago