I.T. Discussion Community!
-Collapse +Expand
C++
Search C++ Group:

Advanced
-Collapse +Expand C++ To/From
To/FromCODEGuides
-Collapse +Expand C++ Study Test
PRESTWOODCERTIFIED
-Collapse +Expand C++ Store
PRESTWOODSTORE
   ► KBProgrammingC++Standard C++C++ Language...   Print This     

C++ KB: C++ Language Basics Topic



20 Articles Found in the C++ Language Basics Topic 

  KB Article    

Mike Prestwood
1. C++ Assignment (=)

C++ uses = for it's assignment operator.

10 years ago, and updated 10 years ago

Code
Nothing New Since Your Last Visit
5079
Hits

C++

Mike Prestwood
2. C++ Case Sensitivity (Yes)

C++ is case sensitive. In C and C++ commands and variable names are case sensitive.

10 years ago, and updated 9 years ago
(1 Comments , last by Geould.m )

Code
Nothing New Since Your Last Visit
5991
Hits

C++

Mike Prestwood
3. C++ Code Blocks ({ })

For C++, Java, JavaScript, and PHP, I prefer to put the first { at the end of the first line of the code block as in the example above because I see more C++ formatted that way.

10 years ago, and updated 9 years ago

Code
Nothing New Since Your Last Visit
5243
Hits

C++

Mike Prestwood
4. C++ Comments (// or /* ... */)

Commenting Code
C++ uses "//" for a single line comment and /* */ for a multiple line comment.

10 years ago, and updated 9 years ago
(4 Comments , last by aadil.k )

Code
Nothing New Since Your Last Visit
5403
Hits

C++

Mike Prestwood
5. C++ Comparison Operators (==, !=)

General Info: Round Floating Point Numbers

When comparing floating point numbers, make sure you round to an acceptable level of rounding for the type of application you are using.

Languages Focus: Comparison Operators

A comparison operator compares two values either literals as in "Hello" and 3 or variables as in X and Counter. Most languages use the same operators for comparing both numbers and strings. Perl, for example, uses separate sets of comparison operators for numbers and strings.

C++ Comparison Operators

Common comparison operators:

== equal
!= not equal
< less than
> greater than
<= less than or equal
>= greater than or equal

9 years ago

Code
Nothing New Since Your Last Visit
7121
Hits

C++

Mike Prestwood
6. C++ Constants (const)

In standard C++, you use const and static const to declare constants.

9 years ago, and updated 9 years ago

Code
Nothing New Since Your Last Visit
6168
Hits

C++

Mike Prestwood
7. C++ Custom Routines

C++ is a hybrid language and as such offers global functions and class methods. A function must come before it's usage or you can prototype the function.

10 years ago, and updated 10 years ago
(1 Comments , last by Kondapalli.R )

Code

KB Post
Nothing New Since Your Last Visit
12331
Hits

C++

Mike Prestwood
8. C++ Deployment Overview

You can use any of the many free and commercially available installation packages.

In Visual Studio.Net, you can create a Setup and Deployment project by using any of the templates available on the New Project dialog (Other Project Types).

C++Builder 2007 and 2009 are bundled with InstallAware Express CodeGear Edition installer.

9 years ago

Code
Nothing New Since Your Last Visit
5648
Hits

C++

Mike Prestwood
9. C++ Development Tools

Languages Focus: Development Tools

Primary development tool(s) used to develop and debug code.

C++ Development Tools

Many compilers and development tools are available. Common development tools include Microsoft Visual C++, CodeGear C++Builder, and Eclipse.

With Visual C++ you use Microsoft's C++ syntax variations based on standard C++ or Microsoft's new C++/CLI syntax standard.

With C++Builder, you code using standard C++ with early support for the upcoming C++0x standard and using the VCL/RTL libraries. The VCL/RTL libraries are in common with Delphi which is based on Object Pascal. Within a project, C++Builder can use both C++ units and Delphi units.

With most C++ tools, you can also use your favorite C and C++ libraries too.

10 years ago, and updated 9 years ago

Code
Nothing New Since Your Last Visit
5172
Hits

C++

Mike Prestwood
10. C++ End of Statement (;)

C++ uses a semicolon ";" as an end of statement specifier and you can put multiple statements on a single line of code if you wish as well as split a single statement into two or more code lines.

9 years ago, and updated 9 years ago
(1 Comments , last by Paul.G6 )

Code
Nothing New Since Your Last Visit
5740
Hits

C++

Mike Prestwood
11. C++ File Extensions (.CPP and .H)

Important standard C++ file extensions:

  • .CPP = C++ Source file. Your startup source file will have a main() routine.
  • .C = C source file (sometimes used for C++ source files too).
  • .H = Header include file.

Some important Visual C++ file extensions:

9 years ago, and updated 9 years ago

Code
Nothing New Since Your Last Visit
5176
Hits

C++

Mike Prestwood
12. C++ If Statement (if..else if..else)

Same as standard C.

9 years ago
(7 Comments , last by sarah.r )

Code
Nothing New Since Your Last Visit
9976
Hits

C++

Mike Prestwood
13. C++ Literals (quote)

Literals are quoted as in "Prestwood". If you need to embed a quote use a slash in front of the quote as in \"

10 years ago, and updated 9 years ago

Code
Nothing New Since Your Last Visit
6092
Hits

C++

Mike Prestwood
14. C++ Logical Operators

C++ logical operators:

&& and, as in this and that
|| or, as in this or that
! Not, as in Not This
^ either or, as in this or that but not both

9 years ago

Code
Nothing New Since Your Last Visit
6386
Hits

C++

Mike Prestwood
15. C++ Overview and History

Language Overview: C++ is a hybrid traditional C and OOP language. You code either in a traditional approach using functions, procedures, and global data, or you code using an OOP approach, or a mixture of both.

Target Platforms: C++ is suitable for creating any type of native code applications for many different platforms. The focus of this information is on creating native code Win32 applications that run on Microsoft Windows.

10 years ago, and updated 9 years ago

Code
Nothing New Since Your Last Visit
5626
Hits

C++

Mike Prestwood
16. C++ String Concatenation (+ or append)

The + operator can be used with any combination of C++ strings, C strings and characters.

9 years ago

Code
Nothing New Since Your Last Visit
5646
Hits

C++

Mike Prestwood
17. C++ Unary Operators

An operation with only one operand (a single input) such as ++X and --Y.

10 years ago, and updated 9 years ago

Code
Nothing New Since Your Last Visit
6625
Hits

C++

Mike Prestwood
18. C++ Variables (int x=0;)

Variable names are case sensitive. The fundamental variable types in C++ are char, short int, int, long int, bool, float, double, long double, and wchar_t. The integer data types char, short, long and int can be either signed or unsigned. Signed variables are positive and negative. Unsigned variables are positive only.

10 years ago, and updated 9 years ago

Code
Nothing New Since Your Last Visit
6096
Hits

C++

Mike Prestwood
19. C++/CLI Code Blocks ({ })

Same as standard C++. For C++, Java, JavaScript, and PHP, I prefer to put the first { at the end of the first line of the code block as in the example above because I see more C++ formatted that way.

9 years ago

Code
Nothing New Since Your Last Visit
5313
Hits

C++

Mike Prestwood
20. C++/CLI File Extensions (.CPP and .H)

The C++/CLI standard file extensions are the same as standard C++. Important C++ file extensions:

  • .CPP = C++ Source file. Your startup source file will have a main() routine.
  • .C = C source file (sometimes used for C++ source files too).
  • .H = Header include file.

Some important Visual C++ file extensions:

9 years ago

Code
Nothing New Since Your Last Visit
5572
Hits

C++

Icon Legend:
Recent or not:
- Recent activity (within last two weeks).
- No activity last two weeks.
 Since your last logged visit:
- New to you or updated since your last visit (sign in now to activate).
- NOT new to you since your last visit (sign in now to activate).

New C++ Knowledge Base Post...

Share your knowledge with the WORLD! In addition to adding comments to existing posts, you can post knowledge you've acquired. We welcome full articles (intro with screen shots), general posts (shorter), and tidbits (tips, FAQs, definitions, etc.).

Post New...

Tidbit Post: Short Flashcard FAQ Definition Quick Tip Code Snippet
Longer Post: Full Article General Post File Link Error News
Other: Blog Topic
Or, if YOU have a question...
  C++ Message Board
-
   Contact Us!
 
PrestwoodBoards.com was developed and is maintainted by me. Do you have a question or suggestion? Do you see a problem? Contact me now. My goal is to build an ad-free and spam-free source of I.T. information with many contributers (ok to promote your website/company in your bio). Yes, my company Prestwood IT Solutions is mentioned in my bio which shows with every post, but you can contribute and promote your pet project too!

4,360 People Online Now!!  
Sign In to see who's online now!  Not a member? Join now. It's free!
Show more stats...


©1995-2018 PrestwoodBoards  [Security & Privacy]
Professional IT Services: Coding | Websites | Computer Tech