This document discusses various C++ concepts like pointers, polymorphism, streams, and input/output operations. It defines pointers as variables that hold memory addresses and explains pointer syntax. It describes compile-time and run-time polymorphism, virtual functions, and pure virtual functions. It also outlines the stream classes like cin and cout for input and output, and discusses formatted and unformatted input/output operations using manipulators and functions.
Call by value or call by reference in C++Sachin Yadav
Call by value means passing the value directly to a function. The called function uses the value in a local variable; any changes to it DO NOT affect the source variable. In call by value method, the called function creates its own copies of original values sent to it. Any changes, that are made, occur on the function’s copy of values and are not reflected back to the calling function.
Call by value or call by reference in C++Sachin Yadav
Call by value means passing the value directly to a function. The called function uses the value in a local variable; any changes to it DO NOT affect the source variable. In call by value method, the called function creates its own copies of original values sent to it. Any changes, that are made, occur on the function’s copy of values and are not reflected back to the calling function.
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
Esoft Metro Campus - Certificate in c / c++ programmingRasan Samarasinghe
Esoft Metro Campus - Certificate in java basics
(Template - Virtusa Corporate)
Contents:
Structure of a program
Variables & Data types
Constants
Operators
Basic Input/output
Control Structures
Functions
Arrays
Character Sequences
Pointers and Dynamic Memory
Unions
Other Data Types
Input/output with files
Searching
Sorting
Introduction to data structures
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
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.
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.
Embracing GenAI - A Strategic ImperativePeter 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.
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
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.
Acetabularia Information For Class 9 .docxvaibhavrinwa19
Acetabularia acetabulum is a single-celled green alga that in its vegetative state is morphologically differentiated into a basal rhizoid and an axially elongated stalk, which bears whorls of branching hairs. The single diploid nucleus resides in the rhizoid.
Model Attribute Check Company Auto PropertyCeline George
In Odoo, the multi-company feature allows you to manage multiple companies within a single Odoo database instance. Each company can have its own configurations while still sharing common resources such as products, customers, and suppliers.
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.
3. Pointers
Polymorphism
Polymorphism Types
This Pointer
Virtual Functions
Pure Virtual Function
C++ Stream
Stream Classes
Unformatted I/O operations
Formatted I/O operations
.
4. Pointers
Pointer is a variable, that holds the address of
another variable.
Every variable is a memory location and every
memory location has its address defined which can
be accessed using ampersand (&) operator which
denotes an address in memory.
Like any variable or constant, you must declare a
pointer before you can work with it.
5. Syntax of Pointer variable declaration
type *var-name;
type is the pointer's base type
var-name is the name of the pointer variable.
int *ip; // pointer to an integer
float *fp; // pointer to a float
Note: Asterisk is being used to designate a variable as
a pointer.
6. Example
#include <iostream>
#include <conio.h>
int main ()
{
int var = 20;
int *ip;
ip = &var;
cout << "Value of var variable: ";
cout << var << endl;
cout << "Address stored in ip variable: ";
cout << ip << endl;
cout << "Value of *ip variable: ";
cout << *ip << endl;
return 0;
}
Output:
Value of var variable: 20
Address stored in ip variable:
0x7ffc787f0f44
Value of *ip variable: 20
7. Polymorphism
Polymorphism means having many forms.
polymorphism means that a call to a
member function will cause a different
function to be executed depending on the
type of object that invokes the function.
9. COMPILE TIME POLYMORPHISM.
Static Polymorphism also known as
compile time polymorphism.
Polymorphism that is resolved during
compiler time is known as static
polymorphism.
Method overloading is an example of
compile time polymorphism.
Method overloading:
Method Overloading is more than one method having the
same name, if their argument lists are different.
10. Run Time Polymorphism
Dynamic Polymorphism also known as
runtime polymorphism.
Dynamic polymorphism is a process in which
a call to an overridden method is resolved at
runtime, thats why it is called runtime
polymorphism.
11. Virtual Function
A virtual function is a member function in
the base class that you redefine in a derived
class.
A 'virtual' is a keyword preceding the normal
declaration of a function.
Syntax:
virtual return _type f unction name()
{
}
13. Pure Virtual Function
Pure Virtual function are virtual functions with
no definition.
They start with Virtual keyword and ends with =
0.
Virtual void display () = 0
class Test
{
// Data members of class
public:
virtual void show() = 0;
/* Other members */
};
Pure Virtual Function
14. This pointer
This pointer is used to represent the
address of an object inside a member
function.
The this pointer is an implicit parameter to
all member functions.
Friend functions do not have a this pointer,
because friends are not members of a class.
Only member functions have a this pointer.
15. This pointer Example
class Test
{
private:
int x;
public:
void setX (int x)
{
this->x = x;
}
void print()
{
cout << "x = " << x << endl;
}
};
int main()
{
Test obj;
int x = 20;
obj.setX(x);
obj.print();
return 0;
}
16. Streams
A transfer of information in the form of sequence of bytes.
The I/O system of c++ contains:
Istream class supports Input function
Ostream class supports Output function
iostream standard library, which provides cin and cout methods
for reading from standard input and writing to standard output.
19. Cin
Cin is predefined object of istream
class.
The cin object is attached to be
standard input device.
Cin is used in Conjuction with stream
extraction operator, which is written
as >>.
20. #include <iostream.h>
#include <conio.h>
int main()
{
int no;
cout<<"Enter a number ";
cin>>no;
cout<<"Number entered is ="<<no;
return 0;
}
Output:
Enter a number 55
Number entered is = 55
21. Cout
Cout is predefined object ofostream
class.
The cout object is to be connected to
the standard output device, which
display in screen.
Cout object connected with stream
insertion operator as <<.
23. Formatted I/O Operations
Format the I/O operations like determining the
number of digits to be displayed after the decimal
point, specifying number base .
Using the ios class or various ios member functions.
Using manipulators(special functions)
24. ios class functions
width(): The width method is used to set the required
field width. The output will be displayed in the given
width.
precision(): The precision method is used to set the
number of the decimal point to a float value.
fill(): The fill method is used to set a character to fill in
the blank space of a field.
setf(): The setf method is used to set various flags for
formatting output.
unsetf(): The unsetf method is used To remove the
flag setting.
25. Manipulators
Manipulators are operators used in C++ for formatting
output.
The data is manipulated by the programmer’s choice of
display.
Endl
This manipulator has the same functionality as the ‘n’
newline character.
Example:
cout << “exam" << endl;
setw
This manipulator sets the minimum field width on output.
26. Manipulators
Setfill
This is used after setw manipulator.
If a value does not entirely fill a field, then the character
specified in the setfill argument of the manipulator is used
for filling the fields.
27. Manipulators
setprecision :
The setprecision Manipulator is used with floating point
numbers.
It is used to set the number of digits printed to the right of the
decimal point.
Example:
#include <iostream>
#include <iomanip>
void main( )
{
float x = 0.1;
cout << fixed << setprecision(3) << x << endl;
28. Unformatted consol input output
Unformatted console input/output functions are used to read a
single input from the user at console and it also allows us to
display the value in the output to the user at the console.
get () – used to read a single character from the i/p device.
Syntax:
char c=cin.get();
put() – used to print a single character on to the console.
Syntax:
cout.put(variable / character);
29. getline() - reads array of characters that ends with ‘n’
by default or until the limit is reached.
#include<iostream>
#include<conio.h>
int main()
{
cout<<"Enter name :";
char c[10];
cin.getline(c,10);
cout<<c<<endl;
return 0;
}
It takes 10 characters as input;
30. write() – print the array of characters to the console
#include<iostream>
#include<conio.h>
int main()
{ cout<<"Enter name : ";
char c[10]; cin.getline(c,10);
cout.write(c,9);
return 0;
}
It takes 10 characters as input;