Click here to Skip to main content
15,896,154 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: error C2146 Pin
Jose Lamas Rios5-Jul-05 17:23
Jose Lamas Rios5-Jul-05 17:23 
GeneralRe: error C2146 Pin
John R. Shaw5-Jul-05 18:09
John R. Shaw5-Jul-05 18:09 
GeneralDirectShow Audio-Video Synchronization Pin
Alexander M.,3-Jul-05 6:19
Alexander M.,3-Jul-05 6:19 
GeneralRe: DirectShow Audio-Video Synchronization Pin
stephen_young8-Jul-05 20:47
stephen_young8-Jul-05 20:47 
QuestionCan any 1 help me Pin
asma1233-Jul-05 3:56
asma1233-Jul-05 3:56 
AnswerRe: Can any 1 help me Pin
Saurabh.Garg3-Jul-05 4:15
Saurabh.Garg3-Jul-05 4:15 
AnswerRe: Can any 1 help me Pin
PJ Arends3-Jul-05 7:34
professionalPJ Arends3-Jul-05 7:34 
AnswerRe: Can any 1 help me Pin
Bob Stanneveld3-Jul-05 20:51
Bob Stanneveld3-Jul-05 20:51 
Hello,

If network is your constructor, you can try the following:
network::network(float a, float b, float c, float d)
    : nrn[0](a),
      nrn[1](b),
      nrn[2](c),
      nrn[3](d)
{
    // more code
}


This is called a construcor member initializer list. See here[^] and here[^] for more information.

This probably doesn't solve your problem, but I can't solve it since I don't know the exact problem. This "workaround" is better than solving your "operator=" problem..

Hope this helps Smile | :)

Behind every great black man...
            ... is the police. - Conspiracy brother


Blog[^]
Generalre: TSP using GA Pin
mark77203-Jul-05 3:35
mark77203-Jul-05 3:35 
GeneralAdding pages to the Power Manager (IShellPropSheetExt) Pin
Mochiler2-Jul-05 22:28
Mochiler2-Jul-05 22:28 
Generaladd value cross class: help me Pin
2-Jul-05 20:50
suss2-Jul-05 20:50 
GeneralRe: add value cross class: help me Pin
Cedric Moonen3-Jul-05 0:56
Cedric Moonen3-Jul-05 0:56 
Generalerror C2039 Pin
John R. Shaw2-Jul-05 16:34
John R. Shaw2-Jul-05 16:34 
GeneralRe: error C2039 Pin
Jose Lamas Rios2-Jul-05 18:33
Jose Lamas Rios2-Jul-05 18:33 
GeneralRe: error C2039 Pin
John R. Shaw2-Jul-05 20:37
John R. Shaw2-Jul-05 20:37 
GeneralRe: error C2039 Pin
S. Senthil Kumar3-Jul-05 3:53
S. Senthil Kumar3-Jul-05 3:53 
GeneralRe: error C2039 Pin
John R. Shaw3-Jul-05 7:19
John R. Shaw3-Jul-05 7:19 
GeneralClassWizard Problem : Help Me Pin
prateekduble2-Jul-05 12:25
prateekduble2-Jul-05 12:25 
GeneralRe: ClassWizard Problem : Help Me Pin
John R. Shaw2-Jul-05 16:51
John R. Shaw2-Jul-05 16:51 
GeneralRe: ClassWizard Problem : Help Me Pin
prateekduble2-Jul-05 19:13
prateekduble2-Jul-05 19:13 
GeneralRe: ClassWizard Problem : Help Me Pin
John R. Shaw2-Jul-05 20:46
John R. Shaw2-Jul-05 20:46 
QuestionAnyone with Boost::Graph experience? Pin
Nathan Addy2-Jul-05 9:35
Nathan Addy2-Jul-05 9:35 
AnswerRe: Anyone with Boost::Graph experience? Pin
John R. Shaw2-Jul-05 18:03
John R. Shaw2-Jul-05 18:03 
GeneralDynamic Buttons Pin
Ger Hayden2-Jul-05 8:53
Ger Hayden2-Jul-05 8:53 
GeneralRe: Dynamic Buttons Pin
PJ Arends2-Jul-05 9:30
professionalPJ Arends2-Jul-05 9:30 

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.