Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #2K
~897 People Reached
Favorite Forums
Favorite Tags

5 Posted Topics

Member Avatar for Xeuron

i define a structure that contains a constant member. the problem is, when i use [icode]malloc[/icode] to make such a struct, i fail to initialize its const member, for example: [code] struct C { int* const p; }; int main() { int i = 0; struct C s = { …

Member Avatar for kenji
0
90
Member Avatar for jeevsmyd

are you want something that allows you to define a function in another function?... c / c++ forbid it. you should define [I]long factorial(int);[/I] before [I]main[/I], or leave a declaration before [I]main[/I] and make the implementation anywhere you like. by the way, dont forget return in [I]main[/I].

Member Avatar for StuXYZ
0
142
Member Avatar for lmastex
Member Avatar for elitedragoon
Member Avatar for shadwickman

c++ regard arrays just as pointers. you'd better use more complex datastruct if some other information like the size of the array is needed.

Member Avatar for daviddoria
0
365

The End.