Click here to Skip to main content
15,891,431 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Is there a conventional name for accessing e.g. memories with fewer address bits than required, using range a selector? Pin
leon de boer13-Aug-19 5:55
leon de boer13-Aug-19 5:55 
Questionamibroker afl to dll Pin
kuleen10-Aug-19 20:37
kuleen10-Aug-19 20:37 
AnswerRe: amibroker afl to dll Pin
Victor Nijegorodov10-Aug-19 21:30
Victor Nijegorodov10-Aug-19 21:30 
AnswerRe: amibroker afl to dll Pin
Richard MacCutchan10-Aug-19 22:37
mveRichard MacCutchan10-Aug-19 22:37 
QuestionCTreeCtrl get individual item font ? Pin
Maximilien8-Aug-19 4:55
Maximilien8-Aug-19 4:55 
AnswerRe: CTreeCtrl get individual item font ? Pin
Victor Nijegorodov8-Aug-19 9:40
Victor Nijegorodov8-Aug-19 9:40 
GeneralRe: CTreeCtrl get individual item font ? Pin
Maximilien9-Aug-19 5:07
Maximilien9-Aug-19 5:07 
AnswerRe: CTreeCtrl get individual item font ? Pin
Victor Nijegorodov9-Aug-19 1:57
Victor Nijegorodov9-Aug-19 1:57 
GeneralRe: CTreeCtrl get individual item font ? Pin
Maximilien9-Aug-19 5:07
Maximilien9-Aug-19 5:07 
Questionerror C2143: syntax error Pin
_Flaviu8-Aug-19 0:22
_Flaviu8-Aug-19 0:22 
AnswerRe: error C2143: syntax error Pin
Daniel Pfeffer8-Aug-19 1:00
professionalDaniel Pfeffer8-Aug-19 1:00 
AnswerRe: error C2143: syntax error Pin
Stefan_Lang8-Aug-19 21:59
Stefan_Lang8-Aug-19 21:59 
Get rid of the member names in the initalization, it's not valid in C++. You can only pass values, and these will be used to initialize the members of the struct in the order of their definition. You don't need to provide values for all members - if you don't, the rest will use default values:
C++
test_t test_123 = { "Bibi", "Bibi_One" };
Special case: if you try to initialize a C array in this manner with less values than it's size, the remainder of the array will be initialized with the last value of your initializer list. This code will initialize your entire array with 1s:
C++
int my_array[9] = {1};
You can read up on this topic in many articles on the web, just use the correct search term: initializer list.
GOTOs are a bit like wire coat hangers: they tend to breed in the darkness, such that where there once were few, eventually there are many, and the program's architecture collapses beneath them. (Fran Poretto)

GeneralRe: error C2143: syntax error Pin
_Flaviu9-Aug-19 0:20
_Flaviu9-Aug-19 0:20 
Questionzero-sized array in struct/union Pin
_Flaviu5-Aug-19 21:39
_Flaviu5-Aug-19 21:39 
AnswerRe: zero-sized array in struct/union Pin
Victor Nijegorodov5-Aug-19 22:13
Victor Nijegorodov5-Aug-19 22:13 
GeneralRe: zero-sized array in struct/union Pin
_Flaviu5-Aug-19 22:24
_Flaviu5-Aug-19 22:24 
GeneralRe: zero-sized array in struct/union Pin
Victor Nijegorodov5-Aug-19 22:28
Victor Nijegorodov5-Aug-19 22:28 
GeneralRe: zero-sized array in struct/union Pin
Randor 5-Aug-19 22:31
professional Randor 5-Aug-19 22:31 
GeneralRe: zero-sized array in struct/union Pin
CPallini5-Aug-19 22:36
mveCPallini5-Aug-19 22:36 
JokeRe: zero-sized array in struct/union Pin
Randor 5-Aug-19 22:43
professional Randor 5-Aug-19 22:43 
GeneralRe: zero-sized array in struct/union Pin
CPallini5-Aug-19 23:02
mveCPallini5-Aug-19 23:02 
GeneralRe: zero-sized array in struct/union Pin
Randor 5-Aug-19 23:34
professional Randor 5-Aug-19 23:34 
GeneralRe: zero-sized array in struct/union Pin
_Flaviu5-Aug-19 22:40
_Flaviu5-Aug-19 22:40 
QuestionRe: zero-sized array in struct/union Pin
CPallini5-Aug-19 23:29
mveCPallini5-Aug-19 23:29 
AnswerRe: zero-sized array in struct/union Pin
Randor 5-Aug-19 23:38
professional Randor 5-Aug-19 23:38 

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.