C++ Variables

DarrahD2290

New Member
Hey guys,

I am starting to get into computers and I have been trying to learn C++. I have bought the book, C++ for dummies while reading, I came across the subject of variables and I really did not understand the whole usage of the variables. So if anyone knows a general explanation, or anything that goes in depth about variables for C++ please tell me.

Thank you.
 
Hi, first off, welcome to CF.

A variable is a location is the computer memory which can store any sort of data specified by the user.

For example, when you want to store an integer in the computer memory for calculation purposes, the number is stored in a place in the memory.
This "place" or "space" is known as a variable.

What you basically have to understand is that variables store data for a short period of time in the RAM(Random Access Memory).
As the name suggests, a variable is a location which can store any sort of data which you specify.

Please let me know if this clears your doubt.
 
DarrahD2290, I would you suggest you to learn Visual Basic before C++. C++ is more complex therefor harder to learn but it would be easier to learn with a knowledge basis on simple coding structures.

But, it's up too you to decide what is best.
 
DarrahD2290, I would you suggest you to learn Visual Basic before C++. C++ is more complex therefor harder to learn but it would be easier to learn with a knowledge basis on simple coding structures.

But, it's up too you to decide what is best.

Nah, visual c++ is ok to learn, and it will allow you to learn a more object orientated code
 
Back
Top