// Referencing
// Demonstrates using references
#include
<iostream>
using
namespace std;
int
main()
{
int myScore = 1000;
int& mikesScore = myScore; //create a reference
cout <<
"myScore is: " << myScore << "\n";
cout <<
"mikesScore is: " << mikesScore << "\n\n";
cout <<
"Adding 500 to myScore\n";
myScore += 500;
cout <<
"myScore is: " << myScore << "\n";
cout <<
"mikesScore is: " << mikesScore << "\n\n";
cout <<
"Adding 500 to mikesScore\n";
mikesScore += 500;
cout <<
"myScore is: " << myScore << "\n";
cout <<
"mikesScore is: " << mikesScore << "\n\n";
return 0;
}
d a tool for analysing c plus plus program
Every C plus plus program that is a main program must have the function 'main'.
example output of c++ calculator
it is a step by step program written in simple English for our understanding
how to write a program that counts automorphic number from 1 to 999
Yes, you can program games with C++.
Exit the program and relaunch it.
d a tool for analysing c plus plus program
By learning how to program on C+.
C++ is an extension of C, and was invented by Bjarne Stroustrup.
Every C plus plus program that is a main program must have the function 'main'.
Yes, you can rewrite a cuda program originally written in c in c plus plus.
A C++ game project program could either be a game written in C++ or a C++ library that helps you develop a game.
example output of c++ calculator
They are bosom-friends.
No.
bghjg