Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

yo dawg

Name: Anonymous 2010-11-03 18:54

I'm mentally fucked right now and need to get the first item from 1 array of type T in 1 class into a pointer of type T in another

first class is bag<T>
I have a function to return data[0] called T bag<T>getFirst


now into the sequence class
bag<T>* a = new bag<T>;
T* = a.getFirst();

seq.cpp:6: error: request for member `getFirst' in `((sequence<int>*)this)->sequence<int>::a', which is of non-class type `bag<int>*'


I feel dum

Name: Anonymous 2010-11-03 21:34

>>7,8
Sigh

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List