Search results for #CodingInCPlusPlus
Encoding a text by converting each ascii code to its hexadecimal representation. #365dayscoding #100daysofcode #codedaily #cplusplus #cpp #codingincplusplus #programming #programminghelp
Day 14 of #gfg160 Are your strings anagrams? 🧐 @geeksforgeeks Check it out with this efficient C++ solution that compares character frequencies in O(n) time! 💻✨ #AnagramChecker #CodingInCPlusPlus #GeeksforGeeks #CodeChallenge #geekstreak2024 #womenintech
@geeksforgeeks Day 14 of #gfg160 Are your strings anagrams? 🧐 Check it out with this efficient C++ solution that compares character frequencies in O(n) time! 💻✨ #AnagramChecker #CodingInCPlusPlus #GeeksforGeeks #CodeChallenge #geekstreak2024 #womenintech
Please check out my RayCaster implementation using the DDA algorithm for rendering a 2D map. github.com/zerocool-m12/R… Credit: X: @_Ward42 YT: youtube.com/@thehelloworld… #365dayscoding #100daysofcode #codedaily #cplusplus #cpp #codingincplusplus #programming #programminghelp
The third argument of the function 'std::sort' is about how you want the container to be sorted in. Below is an example of how to sort an array in two different orders: #365dayscoding #100daysofcode #codedaily #cplusplus #cpp #codingincplusplus #programming #programminghelp
I know it's a trivial thing to do but since there is nothing about binary representation in STL such as 'std::hex' & 'std::oct'. I find the below is the simplest way to get binary notation: #365dayscoding #100daysofcode #codedaily #cplusplus #cpp #codingincplusplus #programming
Revolution of dynamic memory allocation #365dayscoding #100daysofcode #codedaily #cplusplus #cpp #codingincplusplus #programming
Static variables inside template functions are always subject to the type of the function. Static counter in below function is restarted when the function type became float. Output = 010 #365dayscoding #100daysofcode #codedaily #cplusplus #cpp #codingincplusplus #programming
When trying to get positive value of int, the + won't change anything The output of 'y' in the below is -4 as the the + is ignored so the assignment was like y=x #365dayscoding #100daysofcodechallenge #100daysofcode #codedaily #cplusplus #cpp #codingincplusplus #DSA #programming
One of the interesting facts about 'sizeof' operator is that it never evaluates. The output of the below snippet of code will be 4 👍🏼 #365dayscoding #100daysofcodechallenge #100daysofcode #codedaily #cplusplus #cpp #codingincplusplus #DSA #programming
Easiest way to print out the content of a file directly to stdout? Nothing better than iterators. Below is a way to copy a text file to the 'std::cout'. #365dayscoding #100daysofcodechallenge #100daysofcode #codedaily #cplusplus #cpp #codingincplusplus #DSA #programming
The header 'iomanip' introduced the 'put_time' function to print out the time. The function is more flexible than the usual 'strftime' #365dayscoding #100daysofcodechallenge #100daysofcode #codedaily #cplusplus #cpp #codingincplusplus #DSA #programming
Legacy random function 'rand()' is not recommended due to its limited range & thread safety issues. Mersenne Twester algo on the other hand is way safer & better #365dayscoding #100daysofcodechallenge #100daysofcode #codedaily #cplusplus #cpp #codingincplusplus #DSA #programming
Iterators are among the most useful tools in the C++ standard library. here is below an easy & safe way to load a file into 'std::vector' buffer using iterators: #365dayscoding #100daysofcodechallenge #100daysofcode #codedaily #cplusplus #cpp #codingincplusplus #DSA #programming
One of the crucial things to do when developing a program that interacts with the user is to secure your program against invalid inputs . Below is a trevial program that is well-secured against any unexpected inputs #codedaily #cplusplus #cpp #codingincplusplus #DSA #programming
'std::cout' is an object of a class, and this object can be used by associating the operator '<<', but it also can be used in another forms #365dayscoding #100daysofcodechallenge #100daysofcode #codedaily #cplusplus #cpp #codingincplusplus #DSA #programming
Passing the size of every dimension of a multi-dimensional array independently to a function is a bit time consuming. Herein below an example of passing a 2d C-style array to function by merely passing the array itself: #programming #codedaily #cplusplus #cpp #codingincplusplus
A simple example of how 'variadic templates' works by enabling a function to accept an arbitary number of arguments. C++17 introduced 'folding expression' which does almost the same. #365dayscoding #programming #100daysofcode #codedaily #cplusplus #cpp #codingincplusplus #DSA
The most straightforward & easiest implementation to find the largest number out of three numbers👌🏼: #365dayscoding #100daysofcodechallenge #100daysofcode #codedaily #cplusplus #cpp #codingincplusplus #DSA
DAY – 41: Learning C++ - Section Challenge. Github Link: github.com/mehdiali-mk/cp… LinkedIn: linkedin.com/in/mehdiali-mk/ Instagram: instagram.com/mehdiali_mk/ #365dayscoding #100daysofcodechallenge #100daysofcode #codedaily #cplusplus #cpp #codingincplusplus #cplusplusprogramming