Click here to Skip to main content
15,887,425 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionArray of size ZERO Pin
AmbiguousName24-Nov-10 5:45
AmbiguousName24-Nov-10 5:45 
AnswerRe: Array of size ZERO Pin
Jalapeno Bob24-Nov-10 5:59
professionalJalapeno Bob24-Nov-10 5:59 
GeneralRe: Array of size ZERO Pin
Eugen Podsypalnikov24-Nov-10 12:23
Eugen Podsypalnikov24-Nov-10 12:23 
AnswerRe: Array of size ZERO Pin
Maximilien24-Nov-10 7:10
Maximilien24-Nov-10 7:10 
AnswerRe: Array of size ZERO Pin
Randor 24-Nov-10 7:10
professional Randor 24-Nov-10 7:10 
AnswerRe: Array of size ZERO Pin
«_Superman_»24-Nov-10 7:22
professional«_Superman_»24-Nov-10 7:22 
AnswerRe: Array of size ZERO Pin
Sauro Viti24-Nov-10 7:37
professionalSauro Viti24-Nov-10 7:37 
AnswerRe: Array of size ZERO Pin
Aescleal24-Nov-10 10:06
Aescleal24-Nov-10 10:06 
You can in C99 (I think VC++ supports this syntax in structures if you use /Ze but it's not a full C99 flexible array thing) but you can't in C90 or C++. The sort of thing it's useful for in C99 is for arrays with variable sized structures. You can write:

struct foo
{
    int number_of_elements_;
    int elements_[];
};


and then have the constructor sort out sizing the array. In C90 and C++ you'd have to have one element and manually size everything.

Cheers,

Ash
QuestionHow to wait until Explorer finishes copying a file (Solved) Pin
ShadowUz24-Nov-10 5:03
ShadowUz24-Nov-10 5:03 
AnswerRe: How to wait until Explorer finishes copying a file Pin
Luc Pattyn24-Nov-10 5:38
sitebuilderLuc Pattyn24-Nov-10 5:38 
AnswerRe: How to wait until Explorer finishes copying a file Pin
Randor 24-Nov-10 6:43
professional Randor 24-Nov-10 6:43 
GeneralRe: How to wait until Explorer finishes copying a file [modified] Pin
ShadowUz24-Nov-10 20:57
ShadowUz24-Nov-10 20:57 
QuestionVS/C++ runaway process debugging Pin
Alan Kurlansky24-Nov-10 4:06
Alan Kurlansky24-Nov-10 4:06 
AnswerRe: VS/C++ runaway process debugging Pin
Randor 24-Nov-10 6:56
professional Randor 24-Nov-10 6:56 
QuestionNotification in Multi CListBox Pin
002comp23-Nov-10 23:39
002comp23-Nov-10 23:39 
QuestionRe: Notification in Multi CListBox Pin
CPallini23-Nov-10 23:46
mveCPallini23-Nov-10 23:46 
AnswerRe: Notification in Multi CListBox Pin
002comp24-Nov-10 0:24
002comp24-Nov-10 0:24 
GeneralRe: Notification in Multi CListBox Pin
CPallini24-Nov-10 0:32
mveCPallini24-Nov-10 0:32 
GeneralRe: Notification in Multi CListBox Pin
002comp24-Nov-10 1:10
002comp24-Nov-10 1:10 
QuestionRe: Notification in Multi CListBox Pin
CPallini24-Nov-10 1:38
mveCPallini24-Nov-10 1:38 
AnswerRe: Notification in Multi CListBox Pin
002comp24-Nov-10 1:58
002comp24-Nov-10 1:58 
QuestionRe: Notification in Multi CListBox [modified] Pin
CPallini24-Nov-10 2:15
mveCPallini24-Nov-10 2:15 
AnswerRe: Notification in Multi CListBox Pin
002comp24-Nov-10 19:30
002comp24-Nov-10 19:30 
Questionwhat data type use in String concatination function in vc++ DLL? Pin
mathivanaan23-Nov-10 17:22
mathivanaan23-Nov-10 17:22 
AnswerRe: what data type use in String concatination function in vc++ DLL? Pin
KingsGambit23-Nov-10 17:51
KingsGambit23-Nov-10 17:51 

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.