/Basic-and-Advanced-Programming

Basic and Advanced Programming for beginner

Primary LanguageC++MIT LicenseMIT

Basic and Advanced Programming

Introduction:

Hello and welcome to this repository. These are some of the fundamental and advanced programming tips or techniques that I learned in university. I'll be adding additional exercises here as time goes on. Thank you for looking!

NOTE: I'm not sure whether my program is working properly, perhaps there are a few logical bugs, please feel free to contact me or open issues to fix these bugs. Thank you so much!

PLEASE GIVE MY CREDIT OR MENTION ME @teddythinh WHEN USING. THANKS !☺️☺️☺️

Language uses:

C++

Contribution:

Contributions are encouraged. Simply contact me via email or any of the social media platforms listed in my profile. Thanks!

Contents:

Number Context Description
1 Function Pointer Practice using function pointers and typedef.
2 Sort Array Sort the array using function pointers.
3 Find the maximum day of a month Find the max day in a month, including leap year. (Can apply to calculate the next day or the previous day)
4 Using distribution Use distribution to generate random numbers.
5 Try, catch, exception Practice using try, catch, exception to throw a bug when user input invalid value.
6 Date and Time Get current date and time.
7 Padding when printing Padding something like "0" before day or month.
8 Function Template Use template in functions, borrow the power of compiler to change the type of values.
9 Tuple Some syntaxes and usage of tuple.
10 Map Some syntaxes and usage of map.
11 Pair Some syntaxes and usage of pair.
12 Regex Use regular expression to check a string.
13 Pointer Use pointer to calculate and create array.
14 Smart pointer Using smart pointer in order not to forget to call delete. (Apply to Object-oriented Programming)
15 Function Overload Use function that have same name but different arguments.