The document discusses the origins and features of the C++ programming language. It began as an expanded version of C created by Bjarne Stroustrup in 1979. Key features discussed include input/output using cout and cin operators, manipulators like endl and setw for formatting output, reference variables which provide an alias for another variable, and the different data types in C++ including built-in types like int and char, and derived types like arrays, functions, pointers, references, structures, unions, classes, and enumerations.
This PPT File helps IT freshers with the Basic Interview Questions, which will boost there confidence before going to the Interview. For more details and Interview Questions please log in www.rekruitin.com and click on Job Seeker tools. Also register on the and get employed.
By ReKruiTIn.com
A presentation on core java. in this ppt there are all the basic informations on the core java suvh as-
Features of Java
Java Program Translation
Java Virtual Machine
Java system overview
Java Program-Development phase
Advantage of java
Disadvantage of java
Project
This PPT File helps IT freshers with the Basic Interview Questions, which will boost there confidence before going to the Interview. For more details and Interview Questions please log in www.rekruitin.com and click on Job Seeker tools. Also register on the and get employed.
By ReKruiTIn.com
A presentation on core java. in this ppt there are all the basic informations on the core java suvh as-
Features of Java
Java Program Translation
Java Virtual Machine
Java system overview
Java Program-Development phase
Advantage of java
Disadvantage of java
Project
Abstraction in c++ and Real Life Example of Abstraction in C++Hitesh Kumar
Abstraction in c++ and Real Life Example of Abstraction in C++ - Abstraction is one of the features of Object-Oriented Programming, where you show only relevant details to the user and hide irrelevant details.
In recent days mobile application development has come up with providing a unique solution for the business.
http://www.ndot.in/mobile-application-development.html
A presentation I gave in Expert Days 2012. In this presentations I explain how most of the features in the C# language work, including Iterators, Lambdas, Linq, Dynamics, and more.
C Programming Language is the most popular computer language and most used programming language till now. It is very simple and elegant language. This lecture series will give you basic concepts of structured programming language with C.
Abstraction in c++ and Real Life Example of Abstraction in C++Hitesh Kumar
Abstraction in c++ and Real Life Example of Abstraction in C++ - Abstraction is one of the features of Object-Oriented Programming, where you show only relevant details to the user and hide irrelevant details.
In recent days mobile application development has come up with providing a unique solution for the business.
http://www.ndot.in/mobile-application-development.html
A presentation I gave in Expert Days 2012. In this presentations I explain how most of the features in the C# language work, including Iterators, Lambdas, Linq, Dynamics, and more.
C Programming Language is the most popular computer language and most used programming language till now. It is very simple and elegant language. This lecture series will give you basic concepts of structured programming language with C.
CONSTRUCTOR AND DESTRUCTOR PPT BASED ON OOP SUBJECT ......FULLY CONCEPT EXPLAINED WITH SAMPLE PROGRAM IN IT .....FOR MORE SLIDES PLEASE FOLLOW ME ..... THANK YOU
How to Become a Thought Leader in Your NicheLeslie Samuel
Are bloggers thought leaders? Here are some tips on how you can become one. Provide great value, put awesome content out there on a regular basis, and help others.
Types of C++ functions:
Standard functions
User-defined functions
C++ function structure
Function signature
Function body
Declaring and Implementing C++ functions
C++ and OOPS Crash Course by ACM DBIT | Grejo JobyGrejoJoby1
The slides from the C++ and OOPS Crash Course conducted for ACM DBIT by Grejo Joby.
Learn the concepts of OOPS and C++ Programming in the shortest time with these notes.
Honest Reviews of Tim Han LMA Course Program.pptxtimhan337
Personal development courses are widely available today, with each one promising life-changing outcomes. Tim Han’s Life Mastery Achievers (LMA) Course has drawn a lot of interest. In addition to offering my frank assessment of Success Insider’s LMA Course, this piece examines the course’s effects via a variety of Tim Han LMA course reviews and Success Insider comments.
Unit 8 - Information and Communication Technology (Paper I).pdfThiyagu K
This slides describes the basic concepts of ICT, basics of Email, Emerging Technology and Digital Initiatives in Education. This presentations aligns with the UGC Paper I syllabus.
Operation “Blue Star” is the only event in the history of Independent India where the state went into war with its own people. Even after about 40 years it is not clear if it was culmination of states anger over people of the region, a political game of power or start of dictatorial chapter in the democratic setup.
The people of Punjab felt alienated from main stream due to denial of their just demands during a long democratic struggle since independence. As it happen all over the word, it led to militant struggle with great loss of lives of military, police and civilian personnel. Killing of Indira Gandhi and massacre of innocent Sikhs in Delhi and other India cities was also associated with this movement.
Read| The latest issue of The Challenger is here! We are thrilled to announce that our school paper has qualified for the NATIONAL SCHOOLS PRESS CONFERENCE (NSPC) 2024. Thank you for your unwavering support and trust. Dive into the stories that made us stand out!
The French Revolution, which began in 1789, was a period of radical social and political upheaval in France. It marked the decline of absolute monarchies, the rise of secular and democratic republics, and the eventual rise of Napoleon Bonaparte. This revolutionary period is crucial in understanding the transition from feudalism to modernity in Europe.
For more information, visit-www.vavaclasses.com
Biological screening of herbal drugs: Introduction and Need for
Phyto-Pharmacological Screening, New Strategies for evaluating
Natural Products, In vitro evaluation techniques for Antioxidants, Antimicrobial and Anticancer drugs. In vivo evaluation techniques
for Anti-inflammatory, Antiulcer, Anticancer, Wound healing, Antidiabetic, Hepatoprotective, Cardio protective, Diuretics and
Antifertility, Toxicity studies as per OECD guidelines
How to Make a Field invisible in Odoo 17Celine George
It is possible to hide or invisible some fields in odoo. Commonly using “invisible” attribute in the field definition to invisible the fields. This slide will show how to make a field invisible in odoo 17.
Macroeconomics- Movie Location
This will be used as part of your Personal Professional Portfolio once graded.
Objective:
Prepare a presentation or a paper using research, basic comparative analysis, data organization and application of economic information. You will make an informed assessment of an economic climate outside of the United States to accomplish an entertainment industry objective.
3. Rising Technologies, Jalna (MH). + 91 9423156065, http://www.RisingTechnologies.in 3
Origin of C++
C++ began as an expanded version of C.
The C++ extensions were first invented by Bjarne
Stroustrup in 1979 at Bell Laboratories.
Initially called the new language "C with Classes”
Later in 1983 the name was changed to “C++”
4. Rising Technologies, Jalna (MH). + 91 9423156065, http://www.RisingTechnologies.in 4
Origin of C++
Over the years, computer programs have become larger
and more complex.
Even though C is an excellent programming language, it
has its limits. In C, once a program exceeds from 25,000
to 100,000 lines of code, it becomes so complex that it is
difficult to grasp as a totality.
5. Rising Technologies, Jalna (MH). + 91 9423156065, http://www.RisingTechnologies.in 5
Origin of C++
Although C was one of the most liked and widely used
professional programming languages in the world, the
invention of C++ was necessitated by one major
programming factor: increasing complexity.
The essence of C++ is to allow the programmer to
manage larger, more complex programs.
6. Rising Technologies, Jalna (MH). + 91 9423156065, http://www.RisingTechnologies.in 6
Input/Output in C++
The most common way in which a program
communicates with the outside world is through simple,
character oriented Input/Output (IO) operations.
C++ provides two useful operators for this purpose:
>> for input and
<< for output.
7. Rising Technologies, Jalna (MH). + 91 9423156065, http://www.RisingTechnologies.in 7
Input/Output in C++
Every C++ Program must include the header ‘iostream.h’
It contains declarations for the stream objects
cout & cin
stream insertion & stream extraction operators.
<< (Stream insertion)
>> (Stream Extraction)
8. Rising Technologies, Jalna (MH). + 91 9423156065, http://www.RisingTechnologies.in 8
Input/Output in C++
An Example of console output using cout & << operator
cout << “Hello”;
Causes the string in quotation mark to be displayed on
the screen/console.
10. Rising Technologies, Jalna (MH). + 91 9423156065, http://www.RisingTechnologies.in 10
Input/Output in C++
An Example of console input using cin & >> operator.
cin >> myVariable;
Will receive input from keyboard and store it in
myVariable
12. Rising Technologies, Jalna (MH). + 91 9423156065, http://www.RisingTechnologies.in 12
Manipulators
Manipulators are operators that are used to format the
output data display. The most commonly used
manipulators are…
endl
setw
setprecision
13. Rising Technologies, Jalna (MH). + 91 9423156065, http://www.RisingTechnologies.in 13
Manipulators
The endl manipulator, when used in an output statement,
causes a line feed to be inserted. It has the same effect as
using the newline ‘n’ in ‘C’.
cout << “Rising Technologies” << endl;
14. Rising Technologies, Jalna (MH). + 91 9423156065, http://www.RisingTechnologies.in 14
Manipulators
int a = 2314, b = 28, c = 327;
cout << “A = ” << a << endl;
cout << “B = “ << b << endl;
cout << “C = “ << c << endl;
Above code will print 3 lines of output as follows
A = 2314
B = 28
C = 327
15. Rising Technologies, Jalna (MH). + 91 9423156065, http://www.RisingTechnologies.in 15
Manipulators
A = 2314
B = 28
C = 327
But above form is not ideal, it should rather appear like
this,
A = 2314
B = 28
C = 327
Here output is right aligned.
16. Rising Technologies, Jalna (MH). + 91 9423156065, http://www.RisingTechnologies.in 16
Manipulators
A = 2314
B = 28
C = 327
Above form of output is possible only if we specify a
common field width for all the numbers and force them
to print right aligned.
setw manipulator can do this job.
17. Rising Technologies, Jalna (MH). + 91 9423156065, http://www.RisingTechnologies.in 17
Manipulators
int myVariable = 372;
cout << setw(5) << myVariable;
The manipulator setw(5) specifies a field width 5 for
printing the value of myVariable, this value is right
justified within the field.
3 7 2
18. Rising Technologies, Jalna (MH). + 91 9423156065, http://www.RisingTechnologies.in 18
Manipulators
setprecision(argument);
The setprecision manipulator sets the floating-point
precision to the specified argument.
float myVariable = 1.123456;
cout << setprecision(2) << myVariable;
Will print following output
1.12
19. Rising Technologies, Jalna (MH). + 91 9423156065, http://www.RisingTechnologies.in 19
Reference Variable.
A ‘Reference Variable’ provides an Alias (Alternate Name)
for a previously defined variable.
int a = 10;
int &r = a;
// in above statement „r‟ is declared as
reference to „a‟, hence
r++;
Will increase both ‘a’ & ‘r’ by 1
20. Rising Technologies, Jalna (MH). + 91 9423156065, http://www.RisingTechnologies.in 20
Reference Variable.
int &r = a;
After this declaration ‘a’ and ‘r’ both refer to the same
memory location, as if they were the same variable.
int a = 10;
10
Variable in memory
int &r = a;
One location two names
21. Rising Technologies, Jalna (MH). + 91 9423156065, http://www.RisingTechnologies.in 21
Reference Variable.
Notice that a reference does not create a copy of an
object/variable, it simply provides an alias/alternate
name for it, Hence after following declaration…
int &r = a;
Both ‘a’ and ‘r’ will refer to same memory location.
22. Rising Technologies, Jalna (MH). + 91 9423156065, http://www.RisingTechnologies.in 22
Reference Variable.
A Reference must be initialized when it is declared, it
must be an alias for something upon declaration.
It would be illegal to declare a reference variable and
then initialize it later.
int a;
int &r; // illegal : reference without initializer
r = a;
int a;
int &r = a; // legal
23. Rising Technologies, Jalna (MH). + 91 9423156065, http://www.RisingTechnologies.in 23
C++ Data Types
Derived Types
Array
Function
Pointer
Reference
User defined
Types
Structure
Union
Class
Enumeration
Built In Types
Empty Type Floating TypesIntegral Types
Int char float double
C++ Data Types
void