Click here to Skip to main content
15,905,414 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Dialog menu problem... Pin
David Crow24-Sep-03 8:22
David Crow24-Sep-03 8:22 
GeneralRe: Dialog menu problem... Pin
LukeV24-Sep-03 8:28
LukeV24-Sep-03 8:28 
GeneralRe: Dialog menu problem... Pin
RChin24-Sep-03 8:46
RChin24-Sep-03 8:46 
GeneralRe: Dialog menu problem... Pin
LukeV24-Sep-03 9:49
LukeV24-Sep-03 9:49 
GeneralNeed help with multi-dim arrays please Pin
Flack24-Sep-03 7:51
Flack24-Sep-03 7:51 
GeneralRe: Need help with multi-dim arrays please Pin
David Crow24-Sep-03 8:20
David Crow24-Sep-03 8:20 
GeneralRe: Need help with multi-dim arrays please Pin
Flack24-Sep-03 8:34
Flack24-Sep-03 8:34 
GeneralRe: Need help with multi-dim arrays please Pin
David Crow24-Sep-03 9:04
David Crow24-Sep-03 9:04 
Flack wrote:
I dont know what Im doing wrong.

You are trying to initialize that array within the class itself. Try this:

class ZBuffer1
{
private:
    double V[][6];
public:
    ZBuffer1();
};
 
ZBuffer1::ZBuffer1()
{
    V[0][0] = -0.01;
    V[0][1] =  0.0;
    V[0][2] =  0.0;
    V[0][3] = -0.2;
    V[0][4] = -0.2;
    V[0][5] =  1.0;
 
    V[1][0] =  0.1;
    V[1][1] =  0.0;
    V[1][2] =  0.0;
    V[1][3] =  0.2;
    V[1][4] = -0.2;
    V[1][5] =  1.0;
 
    V[2][0] =  0.0;
    V[2][1] =  0.11;
    V[2][2] =  0.0;
    V[2][3] = -0.2;
    V[2][4] =  0.2;
    V[2][5] =  1.0;
 
    V[3][0] = 0.08;
    V[3][1] = 0.09;
    V[3][2] = 0.0;
    V[3][3] = 0.2;
    V[3][4] = 0.2;
    V[3][5] = 1.0;
}



Five birds are sitting on a fence.
Three of them decide to fly off.
How many are left?

GeneralRe: Need help with multi-dim arrays please Pin
JWood24-Sep-03 8:39
JWood24-Sep-03 8:39 
GeneralRe: Need help with multi-dim arrays please Pin
John M. Drescher24-Sep-03 15:08
John M. Drescher24-Sep-03 15:08 
QuestionMultiple lines in a static text control? Pin
b_girl24-Sep-03 7:23
b_girl24-Sep-03 7:23 
AnswerRe: Multiple lines in a static text control? Pin
Michael P Butler24-Sep-03 7:39
Michael P Butler24-Sep-03 7:39 
GeneralRe: Multiple lines in a static text control? Pin
b_girl24-Sep-03 7:49
b_girl24-Sep-03 7:49 
GeneralQuickie question re char buffers Pin
NewportKarl24-Sep-03 7:21
NewportKarl24-Sep-03 7:21 
GeneralRe: Quickie question re char buffers Pin
Ravi Bhavnani24-Sep-03 7:55
professionalRavi Bhavnani24-Sep-03 7:55 
GeneralRe: Quickie question re char buffers Pin
Alvaro Mendez24-Sep-03 9:07
Alvaro Mendez24-Sep-03 9:07 
GeneralRe: Quickie question re char buffers Pin
Ravi Bhavnani24-Sep-03 9:14
professionalRavi Bhavnani24-Sep-03 9:14 
GeneralRe: Quickie question re char buffers Pin
Alvaro Mendez24-Sep-03 9:30
Alvaro Mendez24-Sep-03 9:30 
GeneralRe: Quickie question re char buffers Pin
Alvaro Mendez24-Sep-03 9:02
Alvaro Mendez24-Sep-03 9:02 
GeneralRe: Quickie question re char buffers Pin
Karl Fetterhoff25-Sep-03 7:06
Karl Fetterhoff25-Sep-03 7:06 
GeneralSetup API Pin
Laroo24-Sep-03 7:03
Laroo24-Sep-03 7:03 
GeneralGetOpenFileName filter Pin
Jason Henderson24-Sep-03 6:05
Jason Henderson24-Sep-03 6:05 
GeneralRe: GetOpenFileName filter Pin
David Crow24-Sep-03 8:26
David Crow24-Sep-03 8:26 
GeneralRe: GetOpenFileName filter Pin
valikac24-Sep-03 9:18
valikac24-Sep-03 9:18 
GeneralRe: GetOpenFileName filter Pin
Neville Franks24-Sep-03 10:29
Neville Franks24-Sep-03 10:29 

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.