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
~195 People Reached
Favorite Forums
Favorite Tags
Member Avatar for leoni

Hi all!! I'm using stl map to store some data here is the example: [CODE] struct MapKey { int i, j; void Set(int pI, int pJ) { //this guarantee that i is always lesser than j if (pI < pJ) { i = pI; j = pJ; } else { …

0
53
Member Avatar for leoni

Hi All! I have a doubt about returning reference. I'll show you an example: [CODE] Vector &MakeVector() { Vector *result = new Vector<Dim>(); /*some more code*/ return *result; } [/CODE] now I can call the function MakeVector to assign it result in this two ways: [CODE] Vector v = MakeVector(); …

Member Avatar for leoni
0
142