Click here to Skip to main content
13,250,883 members (52,313 online)
Rate this:
Please Sign up or sign in to vote.
See more:
how to indicate variables in c++ ?
Posted 9-Feb-13 6:37am
ProgramFOX 9-Feb-13 11:39am
What do you mean exactly?
It looks like you are too much underqualified to ask questions. In other words, learning programming by asking such questions are utterly ineffective, just a waste of time...
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

The syntax for simple variable declarations in C++ is
<type> <varname> [ <assignment> ];
int a;
char ACharacter = 'T'

The type integer or character or one of many others says what kind of variable it will be, the name gives it an identity so you can refer to it and the optional assignment = gives it an initial value. The value assigned should of course be of the same type as the variable.
The power of C++ is in the ability not just to use the ~25 built in types that the language already knows about or sequences of them but to construct from them entirely new types which did not previously exist in the language and to use those types in every way the existing types can be used, including to construct yet further types. This power of extension is what lies behind Object Oriented programming and Patterns and many of the other 'advanced' programming techniques developed up till now.
Albert Holguin 12-Feb-13 13:36pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 4

Try to use this tutorial[^] or similar tutorial. You are then welcome to ask questions that may appear.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

you learn programming in any language by writing code in it and also reading the related theory and learning the data structures . So for starters, start by writing simple programs involving basic language structs like declaring variables,conditional decesion making,loops etc. then proceed to learn object oriented concepts with simple programs having classes, inheritance, etc.
you can follow how they present theory and code on following online resources :

i would also recommend C++ How to Program[^]

go coding !!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.171114.1 | Last Updated 11 Feb 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100