Click here to Skip to main content
15,921,840 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: WYSIWYG Setup Pin
Larry J. Siddens25-Sep-03 2:30
Larry J. Siddens25-Sep-03 2:30 
QuestionCreate shortcut key ?? Pin
_skidrow_vn_24-Sep-03 11:24
_skidrow_vn_24-Sep-03 11:24 
AnswerRe: Create shortcut key ?? Pin
Anthony_Yio24-Sep-03 17:07
Anthony_Yio24-Sep-03 17:07 
AnswerRe: Create shortcut key ?? Pin
David Crow25-Sep-03 2:11
David Crow25-Sep-03 2:11 
AnswerRe: Create shortcut key ?? Pin
Larry J. Siddens25-Sep-03 11:03
Larry J. Siddens25-Sep-03 11:03 
QuestionHow to get BG color of Visual Studio .NET like tabs Pin
Joe Woodbury24-Sep-03 10:49
professionalJoe Woodbury24-Sep-03 10:49 
Generalconst Pin
act_x24-Sep-03 10:35
act_x24-Sep-03 10:35 
GeneralRe: const Pin
Dave Bryant24-Sep-03 11:19
Dave Bryant24-Sep-03 11:19 
GeneralRe: const Pin
Anthony_Yio24-Sep-03 17:12
Anthony_Yio24-Sep-03 17:12 
GeneralManually implement LVSCW_AUTOSIZE_USEHEADER Pin
Wim Jans24-Sep-03 10:32
Wim Jans24-Sep-03 10:32 
GeneralRe: Manually implement LVSCW_AUTOSIZE_USEHEADER Pin
David Crow24-Sep-03 10:39
David Crow24-Sep-03 10:39 
GeneralRe: Manually implement LVSCW_AUTOSIZE_USEHEADER Pin
Wim Jans24-Sep-03 10:49
Wim Jans24-Sep-03 10:49 
GeneralScrollbars in a dynamically changing dialog Pin
Member 53435724-Sep-03 10:15
Member 53435724-Sep-03 10:15 
GeneralVC++ Debugger Pin
yanmei24-Sep-03 9:56
yanmei24-Sep-03 9:56 
GeneralRe: VC++ Debugger Pin
Neville Franks24-Sep-03 10:22
Neville Franks24-Sep-03 10:22 
GeneralGetCheck w listboxctrl (has checkboxes) Pin
ns24-Sep-03 9:52
ns24-Sep-03 9:52 
GeneralDialog menu problem... Pin
LukeV24-Sep-03 8:17
LukeV24-Sep-03 8:17 
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?

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.