Megpoid Monday #6 🎂
Happy 16th Anniversary Gumi!

seen from United States
seen from Brazil
seen from Türkiye
seen from Brazil
seen from China
seen from Malaysia
seen from Australia
seen from United Kingdom
seen from Türkiye
seen from Australia

seen from United Kingdom
seen from United States
seen from United States

seen from United States
seen from T1
seen from United States
seen from United States
seen from United States

seen from Netherlands
seen from Japan
Megpoid Monday #6 🎂
Happy 16th Anniversary Gumi!
CodeBeauty
POINTERS introduction
#include <iostream> using namespace std; int main(){ /* int n = 5; cout << n << endl; output: 5 */
// is for a comment line and /**/ is for multiple line comments //I make it like this so you can paste it immediately into a compiler //variable - &address - *pointers. //START //just like variable, a pointer is a container as well, storing an address (a memory location) //n is a variable meaning that it is a container storing certain value //because it's a container, it has it's address inside the memory, a physical location //in order to check the location / which address :
/* int n = 5; cout << &n << endl; output: 006FFD64 */
//because it's not always fun to remember long address numbers, so we give them names - variables. we create a pointer to name an address and easily access it.
//POINTERS //how to create a pointer holding address of our n variable:
int n = 5; cout << &n << endl;int* ptr = &n; cout << ptr <<endl; //in order to indicate that you're creating a pointer, use * star (int*) //then give it a random name (ptr) //assign it (to ptr) the address of our n variable which is = &n (= assign)(& address)(n variable) cout << *ptr << endl; // a star * before the pointer's name will only reference the pointer and then find the VALUE of the ADDRESS //which is our original variable n //basically we're asking for the value 5, not the address 006FFD64 //CHANGE THE VALUE (5) stored in the pointer ptr address: *ptr = 10 ; //a star * means access the memory location and (=)assign a NEW (10) value //let's check if it's now 10 instead of 5 cout << *ptr <<endl; cout << n ; //both *ptr and n now show 10
//NOTES //pointer has to be of the SAME TYPE as the variable it is pointing to //int pointer to int variable, not int to float //char pointer to char variable, bool pointer to a bool variable, etc //you can't assign a value to a pointer, it has to point to an address //first create a (example) variable to store that variable's & address to the pointer //pointers are problem solvers and not the casual way it's used in these examples system("pause>0"); return 0; }
🎉🎊 Got a 97% on my Calc 3 Test 1 🎉🎊
//Shoutout to professors who grade tests the same day, you are the real ones. Also, my flowers are blooming again after a long summer!
Reblog This If You Are an InfoTech Student. Comment With Your Favorite and Skilled Programming Language.
Source of Picture/Photograph: Google Search Engine. Google Image Search. TechRadar. CNet.
http://openrpg.io
For the programmers out there - This is my current project, so please check it out! :D For the D&D players out there - Keep this on your radar!
2/100 Days of C++: Compile Your First C++ "Hello World" Program
In this day 2 of C++ series, we learn how to compile your first C++ program in this comprehensive "Hello World" tutorial.
In this journey of 100 Days of C++, the aim is not only to understand the basic and intermediate concepts of C++ programming but also to solve practical exercises to develop programming skills. Are you interested in joining the path? Then follow me on Instagram to stay updated on the topics and also get some tips and tricks on programming. Welcome to Day 2 of our “100 Days of C++” series! In the…
View On WordPress
1/100 Days of C++: Introduction to Compiler, Linker, and Libraries
Hello reader, welcome to 100 Days of C++ series. In my previous post on 4 Main Reasons Why I am moving to C++ from Python, I expressed my views on how C++ programming language is more convenient for me as an automobile engineer. Not that Python is bad, I am still a fan of Python. But when you need a real-time execution, when a delay of a few hundred milliseconds is of drastic significance, C++ is…
View On WordPress
C++ Training Institute in Delhi - TCA India
TCA India is the largest software training institution known as C ++ training institute in Delhi. C++ is a high-level computer software programming language that was built of the C language and it helps the programmer to create objects within the code. C++ is mainly used in developing the software suites of a game tool because it is a very fast language that is widely used in developing different games or in gaming engines.