Category: Basic

Github keep tracking and what is for ?

Github keep tracking and what is for ?

When working with github, we usually do “push” and “pull” followed by “origin master” or “origin branch-name”. We can just use “git pull” or “git push” and will followed by the current branch. For global push config using current: 1git config –global push.default current Example, we currently at branch “dev”. To push update, we can …

+ Read More

How to reverse variable array using pointer to pointer in C++

How to reverse variable array using pointer to pointer in C++

Pointer to pointer is an reference that contain another pointer memory address. Remember, the reason it’s called pointer because it’s just pointing to another place that have “value”. Pointer is different with pointer to pointer. This is the simple explanation: 123456789101112131415#include<iostream> #include<str using namespace std; int main() {     int customer = 1;   …

+ Read More

How to counting array size and total element in C++

How to counting array size and total element in C++

Array in C++ is just same as variables that organized into one place. Basically, each element in array just stored sequentially in memory. To get the length of array, it just simple by get the size of array and divided it by the data type size. Since the way array stored the value sequentially, then …

+ Read More