No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
4 Posted Topics
Hi, guys. i'm a newbie in java world,now i confront a question about the inherite classes. [code] class Base { void f() {....} } class Derive1 extends Base { void f() {....} } class Derive2 extends Derive1 { void f() {....} } [/code] i know that if i want to …
i want to use java to do some data struct problem, but i don't know how to input the data from the consolel can anybody show some cases (for example, input some int data)? the help will be appreciated:cheesy: smallrain
[code] #include <iostream> using namespace std; struct Fraction { int numerator, denominator; }; int FindCommonFactor(int m, int n) { int x; while (m % n) { x = m % n; m = n; n = x; } return n; } void Process(char str[], Fraction fraction[], int &result) { int …
the new method return a pointer to the object you allocate in the heap,but the vResource you declare is vector<Resource>, so the vResource is designed for containing object, not pointer, you can declare the vResource lick this vector<Resource*> vResource
The End.
zouyu1983