Click here to Skip to main content
15,897,291 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalmath puzzle Pin
ghostpirate72-Feb-05 13:26
ghostpirate72-Feb-05 13:26 
GeneralRe: math puzzle Pin
Bob Ciora2-Feb-05 13:43
Bob Ciora2-Feb-05 13:43 
GeneralPerformance Testing Pin
LighthouseJ2-Feb-05 12:56
LighthouseJ2-Feb-05 12:56 
GeneralRe: Performance Testing Pin
Bob Ciora2-Feb-05 13:28
Bob Ciora2-Feb-05 13:28 
GeneralRe: Performance Testing Pin
LighthouseJ2-Feb-05 13:30
LighthouseJ2-Feb-05 13:30 
GeneralRe: Performance Testing Pin
Bob Ciora2-Feb-05 13:44
Bob Ciora2-Feb-05 13:44 
GeneralLink in RichEditCtrl Pin
merkit2-Feb-05 12:48
merkit2-Feb-05 12:48 
GeneralPrivate inheritance question Pin
marinme2-Feb-05 12:03
marinme2-Feb-05 12:03 
I'm trying to make a class using private inheritance from two template classes.
I've made my own String class(I'm learning from a book and it has you do this), my own Array class. the Array class is a template class, and I am using it to take a type of another template class that takes two arguments.

class Class_name: private Array< other_class<int, int> >, private String
{
public:
Class_name(int l = 10);
~Class_name();
void Set(int in = 0); //takes index for array
private:
const int len; //length of array
};


the only definition that I think is relevant is the Set() method

void Class_name::Set(int in)
{
//take input from user to pass to array


}

in this member function, I'm not sure how to call the template class type of the array's function.

using containment, I can just set a variable of array type in it and call the function using the [] operator as a reference for the class...

Thanks for your help, please let me know if I'm too vague
GeneralRe: Private inheritance question Pin
Bob Ciora2-Feb-05 12:48
Bob Ciora2-Feb-05 12:48 
GeneralConverting DBCS to Unicode Pin
RYU^^2-Feb-05 11:37
RYU^^2-Feb-05 11:37 
GeneralRe: Converting DBCS to Unicode Pin
Anthony_Yio2-Feb-05 23:26
Anthony_Yio2-Feb-05 23:26 
GeneralRe: Converting DBCS to Unicode Pin
RYU^^3-Feb-05 11:26
RYU^^3-Feb-05 11:26 
GeneralRe: Converting DBCS to Unicode Pin
Anthony_Yio3-Feb-05 15:40
Anthony_Yio3-Feb-05 15:40 
GeneralRe: Converting DBCS to Unicode Pin
RYU^^3-Feb-05 17:34
RYU^^3-Feb-05 17:34 
GeneralRe: Converting DBCS to Unicode Pin
Anthony_Yio3-Feb-05 19:29
Anthony_Yio3-Feb-05 19:29 
GeneralRe: Converting DBCS to Unicode Pin
RYU^^3-Feb-05 19:50
RYU^^3-Feb-05 19:50 
GeneralClipboard functions Pin
TeresaPrice2-Feb-05 7:44
TeresaPrice2-Feb-05 7:44 
GeneralRe: Clipboard functions Pin
BlackDice2-Feb-05 10:43
BlackDice2-Feb-05 10:43 
GeneralShifting Text in Visual C++ Text Editor Pin
K. Shaffer2-Feb-05 6:13
K. Shaffer2-Feb-05 6:13 
GeneralRe: Shifting Text in Visual C++ Text Editor Pin
bluerider2-Feb-05 6:35
bluerider2-Feb-05 6:35 
GeneralRe: Shifting Text in Visual C++ Text Editor Pin
K. Shaffer2-Feb-05 7:30
K. Shaffer2-Feb-05 7:30 
GeneralRe: Shifting Text in Visual C++ Text Editor Pin
alex.barylski2-Feb-05 11:27
alex.barylski2-Feb-05 11:27 
GeneralRe: Shifting Text in Visual C++ Text Editor Pin
Ryan Binns2-Feb-05 17:30
Ryan Binns2-Feb-05 17:30 
GeneralRe: Shifting Text in Visual C++ Text Editor Pin
alex.barylski6-Feb-05 11:10
alex.barylski6-Feb-05 11:10 
GeneralWanted: VS colorer add-in sources Pin
yuri_g2-Feb-05 4:41
yuri_g2-Feb-05 4:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.