Click here to Skip to main content
15,889,216 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: C++ syntax question Pin
Aqueel27-Apr-06 21:41
Aqueel27-Apr-06 21:41 
AnswerRe: C++ syntax question Pin
Nishad S27-Apr-06 19:09
Nishad S27-Apr-06 19:09 
GeneralRe: C++ syntax question Pin
includeh1027-Apr-06 19:37
includeh1027-Apr-06 19:37 
GeneralRe: C++ syntax question Pin
toxcct27-Apr-06 22:28
toxcct27-Apr-06 22:28 
AnswerRe: C++ syntax question Pin
Michael Dunn27-Apr-06 19:46
sitebuilderMichael Dunn27-Apr-06 19:46 
GeneralRe: C++ syntax question Pin
Nishad S27-Apr-06 20:15
Nishad S27-Apr-06 20:15 
GeneralRe: C++ syntax question Pin
Michael Dunn27-Apr-06 20:37
sitebuilderMichael Dunn27-Apr-06 20:37 
AnswerRe: C++ syntax question [Edited] Pin
Maxwell Chen27-Apr-06 20:14
Maxwell Chen27-Apr-06 20:14 
The code below compiles and works fine.

[Edited] When you use memcpy in your original version, you will see
nnn[0].ia[0] = 0x0a0a0a0a;
nnn[0].ia[1] = 0x0a0a0a0a; 
// ....
nnn[1].ia[0] = 0x14141414;
// ....
[/Edited]

class NNN
{
  enum { size = 100 };
  int ia[size];
public:
  NNN(int n) {
    for(int i = 0; i < size; i++) {
      ia[i] = n;
    }
  }
};

int main()
{
  NNN  nnn[]={ 10, 20, 30 };
  return 0;
}



Maxwell Chen

-- modified at 2:17 Friday 28th April, 2006
QuestionIs it code optimization problem ? Pin
dharani27-Apr-06 16:28
dharani27-Apr-06 16:28 
AnswerRe: Is it code optimization problem ? Pin
Renjith Ramachandran27-Apr-06 20:04
Renjith Ramachandran27-Apr-06 20:04 
QuestionHow to drag and drop CListCtrl header? Pin
Ajax9527-Apr-06 14:07
Ajax9527-Apr-06 14:07 
AnswerRe: How to drag and drop CListCtrl header? Pin
Naveen27-Apr-06 17:30
Naveen27-Apr-06 17:30 
QuestionWhy does VC++ 2005 produce much larger EXE's than VC++ 2003 or VC++ 6.0 ? Pin
Defenestration27-Apr-06 13:45
Defenestration27-Apr-06 13:45 
AnswerRe: Why does VC++ 2005 produce much larger EXE's than VC++ 2003 or VC++ 6.0 ? Pin
Michael Dunn27-Apr-06 19:49
sitebuilderMichael Dunn27-Apr-06 19:49 
GeneralRe: Why does VC++ 2005 produce much larger EXE's than VC++ 2003 or VC++ 6.0 ? Pin
Defenestration2-May-06 16:12
Defenestration2-May-06 16:12 
QuestionFile's properties - Rt click, Summary Pin
john john mackey27-Apr-06 12:32
john john mackey27-Apr-06 12:32 
AnswerRe: File's properties - Rt click, Summary Pin
valikac27-Apr-06 12:44
valikac27-Apr-06 12:44 
AnswerRe: File's properties - Rt click, Summary Pin
Hamid_RT28-Apr-06 1:47
Hamid_RT28-Apr-06 1:47 
AnswerRe: File's properties - Rt click, Summary Pin
David Crow28-Apr-06 2:53
David Crow28-Apr-06 2:53 
GeneralRe: File's properties - Rt click, Summary Pin
john john mackey28-Apr-06 6:22
john john mackey28-Apr-06 6:22 
Questionstrange c code Pin
xyhan27-Apr-06 11:47
xyhan27-Apr-06 11:47 
AnswerRe: strange c code Pin
Trollslayer27-Apr-06 12:36
mentorTrollslayer27-Apr-06 12:36 
AnswerRe: strange c code Pin
Stephen Hewitt27-Apr-06 16:23
Stephen Hewitt27-Apr-06 16:23 
GeneralRe: strange c code Pin
xyhan28-Apr-06 5:34
xyhan28-Apr-06 5:34 
AnswerRe: strange c code Pin
Michael Dunn27-Apr-06 19:50
sitebuilderMichael Dunn27-Apr-06 19:50 

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.