Click here to Skip to main content
15,884,473 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: CWinThread Termination Pin
Richard MacCutchan29-Aug-17 21:02
mveRichard MacCutchan29-Aug-17 21:02 
AnswerRe: CWinThread Termination Pin
Jochen Arndt29-Aug-17 21:27
professionalJochen Arndt29-Aug-17 21:27 
GeneralRe: CWinThread Termination Pin
Lakshminaryana A29-Aug-17 23:17
Lakshminaryana A29-Aug-17 23:17 
GeneralRe: CWinThread Termination Pin
Jochen Arndt29-Aug-17 23:33
professionalJochen Arndt29-Aug-17 23:33 
AnswerRe: CWinThread Termination Pin
Victor Nijegorodov30-Aug-17 5:54
Victor Nijegorodov30-Aug-17 5:54 
GeneralRe: CWinThread Termination Pin
David Crow30-Aug-17 10:27
David Crow30-Aug-17 10:27 
QuestionC: warning: excess elements in array initializer Pin
Member 1326117527-Aug-17 22:27
Member 1326117527-Aug-17 22:27 
AnswerRe: C: warning: excess elements in array initializer Pin
Jochen Arndt27-Aug-17 22:47
professionalJochen Arndt27-Aug-17 22:47 
Please stop posting such large code blocks (and repeating similar error messages). You question in QA brokes the system and lets the Firefox thread trying to show your message use 100 % CPU core load!

rog.c:60:34: error: expected ';', ',' or ')' before '&' token
 void ModulationSchemeValues (int &modulationScheme, int &noOfSymbols, double &var, float &d, int &col, float &rate, double &snr)
That is a C++ style function using references. C does not know references.

prog.c:281:105: note: (near initialization for 'x')
prog.c:281:107: warning: excess elements in array initializer
     int x[col]={0,0,1, ...

You are passing more initialisers to the array then specified. Don't use variable based sizes with initialised arrays. Just use
int x[] = {0,0,1,/* ... */ };
or specify the size literally.

Note also that such variable based array sizes are not supported by all compilers.
GeneralRe: C: warning: excess elements in array initializer Pin
Richard Andrew x6430-Aug-17 13:06
professionalRichard Andrew x6430-Aug-17 13:06 
GeneralRe: C: warning: excess elements in array initializer Pin
Jochen Arndt30-Aug-17 21:42
professionalJochen Arndt30-Aug-17 21:42 
GeneralRe: C: warning: excess elements in array initializer Pin
Richard MacCutchan30-Aug-17 22:39
mveRichard MacCutchan30-Aug-17 22:39 
GeneralRe: C: warning: excess elements in array initializer Pin
Jochen Arndt30-Aug-17 23:15
professionalJochen Arndt30-Aug-17 23:15 
GeneralRe: C: warning: excess elements in array initializer Pin
Richard MacCutchan30-Aug-17 23:30
mveRichard MacCutchan30-Aug-17 23:30 
GeneralRe: C: warning: excess elements in array initializer Pin
Jochen Arndt30-Aug-17 23:59
professionalJochen Arndt30-Aug-17 23:59 
GeneralRe: C: warning: excess elements in array initializer Pin
Richard MacCutchan31-Aug-17 0:47
mveRichard MacCutchan31-Aug-17 0:47 
GeneralRe: C: warning: excess elements in array initializer Pin
Richard Andrew x6431-Aug-17 11:55
professionalRichard Andrew x6431-Aug-17 11:55 
GeneralRe: C: warning: excess elements in array initializer Pin
k505431-Aug-17 12:21
mvek505431-Aug-17 12:21 
GeneralRe: C: warning: excess elements in array initializer Pin
Richard Andrew x6431-Aug-17 12:23
professionalRichard Andrew x6431-Aug-17 12:23 
GeneralRe: C: warning: excess elements in array initializer Pin
k505431-Aug-17 12:47
mvek505431-Aug-17 12:47 
GeneralRe: C: warning: excess elements in array initializer Pin
Jochen Arndt31-Aug-17 13:14
professionalJochen Arndt31-Aug-17 13:14 
QuestionError deleting first column in CListCtrl Pin
Member 86892625-Aug-17 10:09
Member 86892625-Aug-17 10:09 
AnswerRe: Error deleting first column in CListCtrl Pin
Rick York25-Aug-17 12:35
mveRick York25-Aug-17 12:35 
GeneralRe: Error deleting first column in CListCtrl Pin
Member 86892626-Aug-17 11:00
Member 86892626-Aug-17 11:00 
QuestionRe: Error deleting first column in CListCtrl Pin
David Crow25-Aug-17 16:41
David Crow25-Aug-17 16:41 
SuggestionRe: Error deleting first column in CListCtrl Pin
Jochen Arndt25-Aug-17 22:31
professionalJochen Arndt25-Aug-17 22:31 

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.