Quote:
Originally Posted by v0id
A very simple example, showing how "Derived" inherits the functionality from "Base".
Code:
#include <iostream>
class Base
{
public:
void basefunction() { std::cout << "In Base" << std::endl; }
};
class Derived : public Base
{
public:
void derivedfunction() { std::cout << "In Derived" << std::endl; }
};
int main()
{
Base b;
Derived d;
b.basefunction();
d.basefunction();
d.derivedfunction();
return 0;
}
I don't know what you mean by that formula, could you be more specific?
|
I think he meant, a formula, P must be effect and I ampere and T is for time. Thats my guess, which would be likely he wants to enter two numbers and divide them. As I see your small code, its good and will work if he could work on the rest with it
