Everything about OOPs (Object-oriented programming) in this slide we cover the all details about object-oriented programming using C++. we also discussed why C++ is called a subset of C.
Everything about OOPs (Object-oriented programming) in this slide we cover the all details about object-oriented programming using C++. we also discussed why C++ is called a subset of C.
The aim of this list of programming languages is to include all notable programming languages in existence, both those in current use and ... Note: This page does not list esoteric programming languages. .... Computer programming portal ...
Presentation on C++ Programming Languagesatvirsandhu9
It consists information about c++ programming language which is a object oriented language. This presentation is very useful for those who want to learn c++ from beginning.
This C tutorial covers every topic in C with the programming exercises. This is the most extensive tutorial on C you will get your hands on. I hope you will love the presentation. All the best. Happy learning.
Feedbacks are most welcome. Send your feedbacks to dwivedi.2512@gmail.com. You can download this document in PDF format from the link, http://www.slideshare.net/dwivedi2512/learning-c-an-extensive-guide-to-learn-the-c-language
This presentation deals with pure object oriented concepts and defines basic principles of OOP's like Encapsulation , polymorphism , Inheritance and Abstraction.
A pointer is a variable whose value is the address of another variable, i.e., direct address of the memory location. Like any variable or constant, you must declare a pointer before you can use it to store any variable address.
There are few important operations, which we will do with the help of pointers very frequently. (a) we define a pointer variable (b) assign the address of a variable to a pointer and (c) finally access the value at the address available in the pointer variable. This is done by using unary operator * that returns the value of the variable located at the address specified by its operand.
The aim of this list of programming languages is to include all notable programming languages in existence, both those in current use and ... Note: This page does not list esoteric programming languages. .... Computer programming portal ...
Presentation on C++ Programming Languagesatvirsandhu9
It consists information about c++ programming language which is a object oriented language. This presentation is very useful for those who want to learn c++ from beginning.
This C tutorial covers every topic in C with the programming exercises. This is the most extensive tutorial on C you will get your hands on. I hope you will love the presentation. All the best. Happy learning.
Feedbacks are most welcome. Send your feedbacks to dwivedi.2512@gmail.com. You can download this document in PDF format from the link, http://www.slideshare.net/dwivedi2512/learning-c-an-extensive-guide-to-learn-the-c-language
This presentation deals with pure object oriented concepts and defines basic principles of OOP's like Encapsulation , polymorphism , Inheritance and Abstraction.
A pointer is a variable whose value is the address of another variable, i.e., direct address of the memory location. Like any variable or constant, you must declare a pointer before you can use it to store any variable address.
There are few important operations, which we will do with the help of pointers very frequently. (a) we define a pointer variable (b) assign the address of a variable to a pointer and (c) finally access the value at the address available in the pointer variable. This is done by using unary operator * that returns the value of the variable located at the address specified by its operand.
The presentation gives an overview about the ruby programming language and Rails, the web framework built over it ruby. It does highlight some of the key features of ruby programming language and mentions the key benefits of using Rails framework for web application development.
Basic introduction to "R", a free and open source statistical programming language designed to help users analyze data sets by creating scripts to increase automation. The program can also be used as a free substitute for Microsoft Excel.
Overview of Java EE 6 by Roberto Chinnici at SFJUGMarakana Inc.
Roberto Chinnici, Java EE 6 spec lead, gives an overview of Java EE 6 for San Francisco Java User Group on August 10th, 2010.
http://www.sfjava.org/calendar/13940755/
What is Python? An overview of Python for science.Nicholas Pringle
A brief introduction on the use of Python for scientists. Python is fast becoming a popular programming language for scientists. It is free, open source and constantly improving. Being an easy language to learn, it has a large a community of users. Its many favourable qualities make it the perfect language for scientific collaboration.
This set of slides introduces the reader to the concept of multidimensional arrays in C++ (with elements of C++11 and C++14). The true nature of multidimensional arrays is discussed by means of an intermediate type alias. The pheonomenon of array-to-pointer decay and pointer arithmetic is then generalized to arrays of arrays. The presentation proceeds with a discussion on how to pass multidimensional arrays to functions.
Types of C++ functions:
Standard functions
User-defined functions
C++ function structure
Function signature
Function body
Declaring and Implementing C++ functions
It tells about functions in C++,Types,Use,prototype,declaration,Arguments etc
function with
A function with no parameter and no return value
A function with parameter and no return value
A function with parameter and return value
A function without parameter and return value
Call by value and address
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
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
A Strategic Approach: GenAI in EducationPeter Windle
Artificial Intelligence (AI) technologies such as Generative AI, Image Generators and Large Language Models have had a dramatic impact on teaching, learning and assessment over the past 18 months. The most immediate threat AI posed was to Academic Integrity with Higher Education Institutes (HEIs) focusing their efforts on combating the use of GenAI in assessment. Guidelines were developed for staff and students, policies put in place too. Innovative educators have forged paths in the use of Generative AI for teaching, learning and assessments leading to pockets of transformation springing up across HEIs, often with little or no top-down guidance, support or direction.
This Gasta posits a strategic approach to integrating AI into HEIs to prepare staff, students and the curriculum for an evolving world and workplace. We will highlight the advantages of working with these technologies beyond the realm of teaching, learning and assessment by considering prompt engineering skills, industry impact, curriculum changes, and the need for staff upskilling. In contrast, not engaging strategically with Generative AI poses risks, including falling behind peers, missed opportunities and failing to ensure our graduates remain employable. The rapid evolution of AI technologies necessitates a proactive and strategic approach if we are to remain relevant.
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdfTechSoup
In this webinar you will learn how your organization can access TechSoup's wide variety of product discount and donation programs. From hardware to software, we'll give you a tour of the tools available to help your nonprofit with productivity, collaboration, financial management, donor tracking, security, and more.
Palestine last event orientationfvgnh .pptxRaedMohamed3
An EFL lesson about the current events in Palestine. It is intended to be for intermediate students who wish to increase their listening skills through a short lesson in power point.
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...Levi Shapiro
Letter from the Congress of the United States regarding Anti-Semitism sent June 3rd to MIT President Sally Kornbluth, MIT Corp Chair, Mark Gorenberg
Dear Dr. Kornbluth and Mr. Gorenberg,
The US House of Representatives is deeply concerned by ongoing and pervasive acts of antisemitic
harassment and intimidation at the Massachusetts Institute of Technology (MIT). Failing to act decisively to ensure a safe learning environment for all students would be a grave dereliction of your responsibilities as President of MIT and Chair of the MIT Corporation.
This Congress will not stand idly by and allow an environment hostile to Jewish students to persist. The House believes that your institution is in violation of Title VI of the Civil Rights Act, and the inability or
unwillingness to rectify this violation through action requires accountability.
Postsecondary education is a unique opportunity for students to learn and have their ideas and beliefs challenged. However, universities receiving hundreds of millions of federal funds annually have denied
students that opportunity and have been hijacked to become venues for the promotion of terrorism, antisemitic harassment and intimidation, unlawful encampments, and in some cases, assaults and riots.
The House of Representatives will not countenance the use of federal funds to indoctrinate students into hateful, antisemitic, anti-American supporters of terrorism. Investigations into campus antisemitism by the Committee on Education and the Workforce and the Committee on Ways and Means have been expanded into a Congress-wide probe across all relevant jurisdictions to address this national crisis. The undersigned Committees will conduct oversight into the use of federal funds at MIT and its learning environment under authorities granted to each Committee.
• The Committee on Education and the Workforce has been investigating your institution since December 7, 2023. The Committee has broad jurisdiction over postsecondary education, including its compliance with Title VI of the Civil Rights Act, campus safety concerns over disruptions to the learning environment, and the awarding of federal student aid under the Higher Education Act.
• The Committee on Oversight and Accountability is investigating the sources of funding and other support flowing to groups espousing pro-Hamas propaganda and engaged in antisemitic harassment and intimidation of students. The Committee on Oversight and Accountability is the principal oversight committee of the US House of Representatives and has broad authority to investigate “any matter” at “any time” under House Rule X.
• The Committee on Ways and Means has been investigating several universities since November 15, 2023, when the Committee held a hearing entitled From Ivory Towers to Dark Corners: Investigating the Nexus Between Antisemitism, Tax-Exempt Universities, and Terror Financing. The Committee followed the hearing with letters to those institutions on January 10, 202
The Roman Empire A Historical Colossus.pdfkaushalkr1407
The Roman Empire, a vast and enduring power, stands as one of history's most remarkable civilizations, leaving an indelible imprint on the world. It emerged from the Roman Republic, transitioning into an imperial powerhouse under the leadership of Augustus Caesar in 27 BCE. This transformation marked the beginning of an era defined by unprecedented territorial expansion, architectural marvels, and profound cultural influence.
The empire's roots lie in the city of Rome, founded, according to legend, by Romulus in 753 BCE. Over centuries, Rome evolved from a small settlement to a formidable republic, characterized by a complex political system with elected officials and checks on power. However, internal strife, class conflicts, and military ambitions paved the way for the end of the Republic. Julius Caesar’s dictatorship and subsequent assassination in 44 BCE created a power vacuum, leading to a civil war. Octavian, later Augustus, emerged victorious, heralding the Roman Empire’s birth.
Under Augustus, the empire experienced the Pax Romana, a 200-year period of relative peace and stability. Augustus reformed the military, established efficient administrative systems, and initiated grand construction projects. The empire's borders expanded, encompassing territories from Britain to Egypt and from Spain to the Euphrates. Roman legions, renowned for their discipline and engineering prowess, secured and maintained these vast territories, building roads, fortifications, and cities that facilitated control and integration.
The Roman Empire’s society was hierarchical, with a rigid class system. At the top were the patricians, wealthy elites who held significant political power. Below them were the plebeians, free citizens with limited political influence, and the vast numbers of slaves who formed the backbone of the economy. The family unit was central, governed by the paterfamilias, the male head who held absolute authority.
Culturally, the Romans were eclectic, absorbing and adapting elements from the civilizations they encountered, particularly the Greeks. Roman art, literature, and philosophy reflected this synthesis, creating a rich cultural tapestry. Latin, the Roman language, became the lingua franca of the Western world, influencing numerous modern languages.
Roman architecture and engineering achievements were monumental. They perfected the arch, vault, and dome, constructing enduring structures like the Colosseum, Pantheon, and aqueducts. These engineering marvels not only showcased Roman ingenuity but also served practical purposes, from public entertainment to water supply.
2. HISTORY OF C++
C++ is a multi-paradigm programming language that
supports object oriented programming (OOP) created
by Bjarne Stroustrup in 1983 at Bell labs, C++ is an
extension of C programming and the programs written
in C language can run in C++ compiler.
The development of C++ actually began four years
before its release, in 1979. It did not start with the
name C++. Its first name was C with classes.
3. In the late part of 1983, C with classes was first used for
AT&T’s internal programming needs. Its name was
changed to C++ later in the same year.
It is of course also used in a wide range of other
application domains, notable graphics programming. C++
supports inheritance through class derivation. Dynamic
binding is provided by Virtual class function.
4. DIFFERENCE BETWEEN C AND C++
C C++
C is Procedural Language. C++ is non-Procedural i.e. Object oriented
Language.
Top down approach is used in Program
Design.
Bottom up approach adopted in Program
Design.
Multiple Declaration of global variables are
allowed.
Multiple Declaration of global variables are
not allowed.
C requires all the variables to be defined at
the starting of a scope.
C++ allows the declaration of variable
anywhere in the scope i.e. at time of its First
use.
In C, malloc () and calloc () Functions are
used for Memory Allocation and free ()
function for memory Deallocating.
In C++, new and delete operators are used
for Memory Allocating and Deallocating.
5. USES OF C++ LANGUAGE
C++ is used by programmers to develop computer
software
It is used to create general system software
Used to build drivers for various computer devices
Software for servers and software for specific
applications
Used in the creation of video games.
6. ADVANTAGE OF C++
C++ is relatively-low level and is a systems programming
language.
It has a large community.
It has a relatively clear and mature standard.
Modularity’
Reusability and readability
7. DISADVANTAGE OF C++
× Data is global or local.
× It emphasis on instructions bur not on data.
× It can be generally heavy if not careful.
× Data is global and global data does not have security.
8. STANDARD LIBRARIES
The C++ Standard Library can be categories into two
parts:
The standard function library: This library consists of
general-purpose, stand-alone function that are not part of
any class. The function library is inherited from C.
The object oriented class library: This is a collection of
classes and associated function.
Standard C++ library incorporates all the standard C
libraries also, with small additions and changes to support
type safety.
11. C++ DATA TYPES
Primary data type int, float, char, void
User defined data type structure, union, class, enumeration
Derived data type array, function, pointer, reference
12. C++ VARIABLES SCOPE
A scope is a region of the program and broadly
speaking there are three places, where variables can
be declared −
Inside a function or a block which is called local
variables,
In the definition of function parameters which is called
formal parameters.
Outside of all functions which is called global
variables.
13. LOCAL VARIABLES
#include <iostream.h>
int main ()
{
int a, b;
int c;
a = 10;
b = 20;
c = a + b;
cout << c;
return 0;
}
Output = ?
Output = 30
// Local variable declaration
// actual initialization
14. GLOBAL VARIABLES
#include <iostream.h>
// Global variable declaration:
Int g;
int main ()
{
// Local variable declaration:
int a, b;
// actual initialization
a = 10;
b = 20;
g = a + b;
cout << g;
return 0;
}
Output = ?
Output = 30
17. #include<iostream.h>
#include<conio.h>
void main()
{
int a,b; a=10;b=13;
if(a<b)
{ cout<<“a is less than b”; }
if(a>b)
{ cout<<”a is greater than b”; }
if(a<=b)
{ cout<<”a is less than or equal
to b”; }
if(a>=b)
{ cout<<“a is greater than or
equal to b”; }
if(a==b)
{ cout<<”a is equal to b”; }
if(a!=b)
{ cout<<”a is not equal to b”);
}
}
RELATIONAL OPERATORS
19. BITWISE OPERATOR
Bitwise operator works on bits and perform bit-by-bit operation.
P Q P&Q P|Q P^Q
0 0 0 0 0
0 1 0 1 1
1 0 0 1 1
1 1 1 1 0
20. Assume if A = 60; and B = 13; now in binary format they will
be as follows:
A = 0011 1100 ----> Binary Number for 60
B = 0000 1101 ----> Binary Number for 13
-----------------
A&B = 0000 1100
A|B = 0011 1101
A^B = 0011 0001
~A = 1100 0011
21. #include <iostream.h>
int main() {
int a = 7; // a = 111
int b = 5; // b = 101
cout << "Bitwise Operatorsn";
cout << "a & b = " << (a&b) << "n";
cout << "a | b = " << (a|b) << "n";
cout << "a ^ b = " << (a^b) << "n";
cout << "~a = " << (~a) << "n";
cout << "~b = " << (~b) << "n";
cout << "a >> b = " << (a>>b) << "n";
cout << "a << b = " << (a<<b) << "n";
}
Bitwise Operators
a & b = 5
a | b = 7
a ^ b = 2
~a = -8
~b = -6
a >> b = 0
a << b = 224
Output = ?
Output
22. ASSIGNMENT OPERATOR
An assignment operator, in the context of the C
programming language, is a basic component denoted as
"=".
int x = 25;
x = 50;
23. FUNCTIONS
Function is a set of statements to perform some task.
Every C++ program has at least one function, which is
main(), and all the most trivial programs can define
additional functions.
Syntax of Function
return-type function-name (parameters)
{
// function-body
}
24. DECLARING, DEFINING AND CALLING FUNCTION
#include < iostream.h>
int sum (int x, int y); //declaring function
int main()
{
int a = 10;
int b = 20;
int c = sum (a, b); //calling function
cout << c;
}
int sum (int x, int y) //defining function
{
return (x+ y);
}
Output = ?
Output = 30
25. CALLING A FUNCTION
Functions are called by their names. If the function is
without argument, it can be called directly using its
name. But for functions with arguments, we have two
ways to call them,
Call by Value
Call by Reference
26. CALL BY VALUE
#include <iostream.h>
void swap(int x, int y); // function declaration
int main ()
{
int a = 100;
int b = 200;
cout << "Before swap, value of a :" << a << endl;
cout << "Before swap, value of b :" << b << endl;
swap(a, b); // calling a function to swap the values.
cout << "After swap, value of a :" << a << endl;
cout << "After swap, value of b :" << b << endl;
return 0; }
// local variable declaration:
OUTPUT:
Before swap, value of a :100
Before swap, value of b :200
After swap, value of a :200
After swap, value of b :100
27. CALL BY REFERENCE
#include <iostream.h>
void swap(int &x, int &y); // function declaration
int main ()
{
int a = 100;
int b = 200;
cout << "Before swap, value of a :" << a << endl;
cout << "Before swap, value of b :" << b << endl;
swap(a, b); // calling a function to swap the values using variable reference.*/
cout << "After swap, value of a :" << a << endl;
cout << "After swap, value of b :" << b << endl;
return 0;
}
// local variable declaration:
OUTPUT:
Before swap, value of a :100
Before swap, value of b :200
After swap, value of a :200
After swap, value of b :100
28. ARRAYS
Array is defined as a set of homogeneous data items. An Array
is a group of elements that share a common name that are
differentiated from one another by their positions within the
array.
It is a data structure which allows a collective name to be given
to a group of elements which all have the same type.
Syntax
datatype arrayname[array size];
The Array which is declared as above is called single-dimension
array
29. Example: float salary[10];
float data type
salary array name
[10] array size(integer)
The size of an array must be an integer constant and
the data type can be any valid C++ data type.
30. ARRAY INITIALIZATION
In C++ elements of an array can be initialized one by one or
using a single statement
float balance[5]={1000.0, 2.0, 3.4,7.0, 50};
The number of values between braces { } cannot be larger than
the number of elements that we declare for the array between
square brackets [ ].
31. C++ ARRAY IN DETAIL
CONCEPT DESCRIPTION
Multi-dimensional arrays C++ supports multidimensional arrays. The simplest
form of the multidimensional array is the two-
dimensional array.
Pointer to an array You can generate a pointer to the first element of an
array by simply specifying the array name, without any
index.
Passing arrays to functions You can pass to the function a pointer to an array by
specifying the array's name without an index.
Return array from functions C++ allows a function to return an array.
32. POINTERS
Pointer is a user defined data type which creates special types
of variables which can hold the address of primitive data type
like char, int, float, double or user defined data type like
function, pointer etc. or derived data type like array, structure,
union, enum.
What Are Pointers?
A pointer is a variable whose value is the address of another
variable. Like any variable or constant, you must declare a
pointer before you can work with it.
Syntax
datatype *var-name;
33. int *ip; // pointer to an integer
double *dp; // pointer to a double
float *fp; // pointer to a float
char *ch // pointer to character
34. USING POINTERS IN C++
There are few important operations, which we will do with the
pointers very frequently.
(a) we define a pointer variables
(b) assign the address of a variable to a pointer and
(c) finally access the value at the address available in the
pointer variable.
This is done by using unary operator * that returns the value of
the variable located at the address specified by its operand.
35. C++ POINTERS IN DETAIL
CONCEPT DESCRIPTION
C++ Null Pointers C++ supports null pointer, which is a constant with a value
of zero defined in several standard libraries.
C++ pointer arithmetic There are four arithmetic operators that can be used on
pointers: ++, --, +, -
C++ pointers vs. arrays There is a close relationship between pointers and arrays.
Let us check how?
C++ array of pointers You can define arrays to hold a number of pointers.
C++ pointer to pointer C++ allows you to have pointer on a pointer and so on.
Passing pointers to functions Passing an argument by reference or by address both
enable the passed argument to be changed in the calling
function by the called function.
Return pointer from functions C++ allows a function to return a pointer to local variable,
static variable and dynamically allocated memory as well.
36. C++ STRINGS
The following declaration and initialization create a string
consisting of the word "Hello". To hold the null character at the
end of the array, the size of the character array containing the
string is one more than the number of characters in the word
"Hello.“
Method 1: char greeting[6] = {'H', 'e', 'l', 'l', 'o', '0'};
Method 2: char greeting[] = "Hello";
39. Functions Purpose
strcpy(s1, s2); Copies string s2 into string s1.
strcat(s1, s2); Concatenates string s2 onto the end of string s1.
strlen(s1); Returns the length of string s1.
strcmp(s1, s2); Returns 0 if s1 and s2 are the same; less than 0 if s1<s2;
greater than 0 if s1>s2.
strchr(s1, ch); Returns a pointer to the first occurrence of character ch in string
s1.
strstr(s1, s2); Returns a pointer to the first occurrence of string s2 in string s1.
40. #include <iostream>
#include <cstring>
int main () {
char str1[10] = "Hello";
char str2[10] = "World";
char str3[10];
int len;
strcpy( str3, str1); // copy str1 into str3
cout << "strcpy( str3, str1) : " << str3 << endl;
strcat( str1, str2); // concatenates str1 and str2
cout << "strcat( str1, str2): " << str1 << endl;
len = strlen(str1); // total length of str1 after concatenation
cout << "strlen(str1) : " << len << endl;
return 0;
}
41. FILE HANDLING IN C++
File Handling concept in C++ language is used for store a data
permanently in computer. Using file handling we can store our
data in Secondary memory (Hard disk).
Why use File Handling
For permanent storage.
The transfer of input - data or output - data from one
computer to another can be easily done by using files.
42. For read and write from a file you need another standard C++
library called fstream, which defines three new data types:
Datatype Description
ofstream This is used to create a file and write
data on files
ifstream This is used to read data from files
fstream This is used to both read and write
data from/to files
43. HOW TO ACHIEVE FILE HANDLING
For achieving file handling in C++ we need follow following steps
Naming a file
Opening a file
Reading data from file
Writing data into file
Closing a file
44. FUNCTIONS USE IN FILE HANDLING
Function Operation
open() To create a file
close() To close an existing file
get() Read a single character from a file
put() write a single character in file.
read() Read data from file
write() Write data into file.