Click here to Skip to main content
15,040,003 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
Posted: 1 Oct 2010   Updated: 1 Oct 2010   Views: 9,770   Rating: 4.80/5    Votes: 4   Popularity: 2.89
Licence: The Code Project Open License (CPOL)      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#
Posted: 29 Apr 2010   Updated: 29 Apr 2010   Views: 8,280   Rating: 3.27/5    Votes: 11   Popularity: 3.41
Licence: The Code Project Open License (CPOL)      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.

Sauro Viti
Engineer Cutlite Penta S.r.l.
Italy Italy
No Biography provided