Click here to Skip to main content
15,892,298 members

Articles by Sauro Viti (Tip/Tricks: 2)

Tip/Tricks: 2

RSS Feed

Average article rating:

No articles have been posted.

Average blogs rating:

No blogs have been submitted.

Average tips rating: 4.04

General Programming
1 Oct 2010   Updated: 1 Oct 2010   Rating: 4.80/5    Votes: 4   Popularity: 2.89
Licence: CPOL    Views: 11,370     Bookmarked: 1   Downloaded: 0
Please Sign up or sign in to vote.
The C++ comes with a rich standard library: the STL (Standard Template Library).So, why we should re-invent the wheel while we already have it done, safe and written to be light-weighed and performant?It's too much better to use the vector Class (Standard C++ Library)[^]:#include...
Programming Languages
C#
29 Apr 2010   Updated: 29 Apr 2010   Rating: 3.27/5    Votes: 11   Popularity: 3.41
Licence: CPOL    Views: 10,250     Bookmarked: 2   Downloaded: 0
Please Sign up or sign in to vote.
Use C++ exceptions:try{ if (condition1_fails) throw 1; ... if (condition2_fails) throw 2; ... ... if (conditionN_fails) throw N; PerformActionOnAllSuccess(); DoNormalCleanup();}catch (int condition){ printf("The condition %d fails!\n",...

Average reference rating:

No reference articles have been posted.

Average project rating:

No projects have been posted.
Engineer Cutlite Penta S.r.l.
Italy Italy
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.