Explore tweets tagged as #codingincplusplus
@MhHunjan
Manmohan Hunjan πŸ§‘β€πŸ’»βš›οΈ
2 years
Just coded a simple linear search in C++! πŸš€ It finds the target in an array efficiently. πŸ” Here's how it works: -We iterate through the array and return true if we find the target. -If not, we return false. Easy and effective! πŸ’‘ #CodingInCPlusPlus #Algorithm
0
1
2
@zerocool_m12
zerocool_m12
1 year
2
0
5
@mehdiali_mk
Mehdiali Kadiwala βœͺ
2 years
0
0
5
@mehdiali_mk
Mehdiali Kadiwala βœͺ
2 years
0
0
4
@zerocool_m12
zerocool_m12
2 years
'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
0
0
4
@zerocool_m12
zerocool_m12
2 years
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
0
0
4
@zerocool_m12
zerocool_m12
2 years
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
1
0
6
@mehdiali_mk
Mehdiali Kadiwala βœͺ
2 years
0
0
3
@mehdiali_mk
Mehdiali Kadiwala βœͺ
2 years
0
0
3
@zerocool_m12
zerocool_m12
1 year
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
3
0
4
@mehdiali_mk
Mehdiali Kadiwala βœͺ
2 years
DAY – 34: Learning C++ - Passing pointers of vectors to a Function. Github Link: https://t.co/DerBeFpVvg LinkedIn: https://t.co/MTyaf3ANEj Instagram: https://t.co/5TgWjyTxbT #365dayscoding #100daysofcodechallenge #100daysofcode #codedaily #cplusplus #cpp #codingincplusplus
1
0
5
@mehdiali_mk
Mehdiali Kadiwala βœͺ
2 years
0
0
3
@zerocool_m12
zerocool_m12
1 year
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
0
0
2
@zerocool_m12
zerocool_m12
2 years
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
0
0
3
@mehdiali_mk
Mehdiali Kadiwala βœͺ
2 years
0
1
2
@mehdiali_mk
Mehdiali Kadiwala βœͺ
2 years
DAY – 21: Learning C++ - What is a function? - User-Defined functions. Github Link: https://t.co/DerBeFqtkO LinkedIn: https://t.co/MTyaf3BltR Instagram: https://t.co/5TgWjyU51r #365dayscoding #100daysofcodechallenge #100daysofcode #codedaily #cplusplus #cpp #codingincplusplus
0
0
2
@mehdiali_mk
Mehdiali Kadiwala βœͺ
2 years
0
0
3
@ANNISH_SEN
Annish Sen
2 months
Day 33 of #LeetCode75 Problem: 700. Search in a BST BST rule makes searching super simple If val<root→go left If val>root→go right If equal→found it! Time: O(log N) for balanced BST Space: O(1) #LeetCode #Day31 #DSA #BinarySearchTree #CodingInCPlusPlus #100DaysOfCode
2
0
25
@mehdiali_mk
Mehdiali Kadiwala βœͺ
2 years
DAY – 19: Learning C++ - Practice Questions. - Bill Generator using vector. Github Link: https://t.co/DerBeFqtkO LinkedIn: https://t.co/MTyaf3BltR Instagram: https://t.co/5TgWjyU51r #cplusplus #cpp #codingincplusplus #cplusplusprogramming #cppdeveloper #cpluspluscommunity
0
0
3
@zerocool_m12
zerocool_m12
2 years
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
0
0
1