The Mouse’s tale “Mine is a long and a sad tale!”said the Mouse, turning to Alice, and sighing. “It is a long tail, certainly,” said Alice, looking down.

Slides:



Advertisements
Similar presentations
Lecture Computer Science I - Martin Hardwick Strings #include using namespace std; int main () { string word; cout
Advertisements

Of.
High Frequency Words List A Group 1
The.
For(int i = 1; i
Computer Science 1620 Math Library. Remember this program? suppose that I invest $25000 into a mutual fund that returns 8% per year. Write a program to.
PHYS707: Special Topics C++ Lectures Lecture 3. Summary of Today’s lecture: 1.Functions (call-by-referencing) 2.Arrays 3.Pointers 4.More Arrays! 5.More.
Chapter 16 Exception Handling. What is Exception Handling? A method of handling errors that informs the user of the problem and prevents the program from.
A Little Mouse Once upon a time, there was a mouse who lived in the village, he did not have any friends. His ears was the biggest in the village.
Vectors, lists and queues
Chapter 6 Advanced Function Features Pass by Value Pass by Reference Const parameters Overloaded functions.
 2003 Prentice Hall, Inc. All rights reserved. 1 Functions and Recursion Outline some useful problems.
ELEC 206 Computer Applications for Electrical Engineers Dr. Ron Hayne
Class Scope class Student { private: string id; string firstName, lastName; float gpa; public: void Read() { cin >> id >> firstName >> lastName >> gpa;
Derived data types Dealing with data –Where the information is stored –What value is kept there –What kind of information is stored Address operator Pointers.
Exercise 2.
Data Structures (Second Part) Lecture 2 : Pointers Bong-Soo Sohn Assistant Professor School of Computer Science and Engineering Chung-Ang University.
第三次小考. #include using namespace std; int aaa(int *ib,int a1,int a2) { int u,v; int m=(a1+a2)/2; if(a1==a2)return ib[a1]; u=aaa(ib,a1,m); cout
The book “Alice in Wonderland” is not only remarkable for its narration, which is vivid, informative and interesting. One of the most important and interesting.
Tinaliah, S. Kom.. * * * * * * * * * * * * * * * * * #include using namespace std; void main () { for (int i = 1; i
Triana Elizabeth, S.Kom. #include using namespace std; void main () { for (int i = 1; i
Watch out for homonyms!. The subject of the investigation is homonyms. The objects of the investigation are some newspaper articles, scripts of TV programmes,
The.
The Princeton Egg The Global Consciousness Project (video)The Global Consciousness Project (video) Princeton Egg Website Our Egg: PrincetonEgg.cppPrincetonEgg.cpp.
Conditional Operator (?:) Conditional operator (?:) takes three arguments (ternary) Syntax for using the conditional operator:
#include using namespace std; void main() { int a[3]={10,11,23}; for(int i=0;i
Correction of the Handout #include //Preprocessor using namespace std; int main (){ ………….. return 0; } A namespace is a named group of definitions. When.
General Computer Science for Engineers CISC 106 Lecture 26 Dr. John Cavazos Computer and Information Sciences 04/24/2009.
High-Frequency Sight Words
First Grade Spelling Words
VARIABLES, TYPES, INPUT/OUTPUT, ASSIGNMENT OPERATION Shieu-Hong Lin MATH/CS Department Chapel.
Using Classes Classes and Function Members. Review We’ve seen that the iostream library provides the objects cin, cout and cerr: These objects were not.
String Constructors string str; // creates an empty //string string str(“abc”); // creates a string // from a C-string string str(aString); // creates.
Chapter 1 Quiz Questions (CGS-3464) Mahendra Kumar
List A Sight Words.
February 11, 2005 More Pointers Dynamic Memory Allocation.
TEXT FILES. Text Files Files Data saved in external storage and can be referenced by a single name File types Document, image, audio, video, etc. Program.
The.
First steps Jordi Cortadella Department of Computer Science.
Lecture 19 CIS 208 Wednesday, April 06, Welcome to C++ Basic program style and I/O Class Creation Templates.
Language Arts Teaching Poetry to students of all ages.
Objective: Students will be able to: Declare and use variables Input integers.
Quiz 2 Results. What Is Wrong? #include using namespace std int Main() { // Say Hello 4 times for(i == 0; i < 3; i++) { cout >> "Hello World!"
1 Principles of Computer Science I Honors Section Note Set 9 CSE 1341.
Once upon a time, a girl called Zoe had a best friend, it was a flower and she had it for Christmas.
1 17/4/1435 h Monday Lecture 3 The Parts of a C++ Program.
Introduction to C++ October 2, 2017.
solve the following problem...
Programming -2 برمجة -2 المحاضرة-5 Lecture-5.
Random Number Generation
كيــف تكتـب خطـة بحـث سيئـة ؟؟
الدكتـور/ عبدالناصـر محمـد عبدالحميـد
Starting Out with C++: From Control Structures through Objects
Pointers & Functions.
Vocabulary Intro.
Alice is going to a party with her brother Mike
Jeff West - Quiz Section 4
Arrays of Two-Dimensions
Lecture 8-2 : STL Iterators and Algorithms
High Frequency Words Set #1.
Pointers & Functions.
(Dreaded) Quiz 2 Next Monday.
“What do you see. What do you think about that
Get ready... What word comes next?
Programming Strings.
Introduction to Algorithms and Programming COMP151
What’s your nationality? Where are you from?
CSE Module 1 A Programming Primer
The.
Reading Reactions Write about what is happening in your book
Presentation transcript:

The Mouse’s tale “Mine is a long and a sad tale!”said the Mouse, turning to Alice, and sighing. “It is a long tail, certainly,” said Alice, looking down with wonder at the Mouse’s tail; “but why do you call it sad?” And she kept on puzzling about it while the Mouse was speaking, so that her idea of the tale was something like this:

The Mouse’s tail

C++ string class #include using namespace std; int main() { string aString = “some words”; }

C++ string class operators aString += aSuffix; cout << aString; cin >> aString; cString = aString + bString; aString[2] = ‘!’;, =, ==, !=

C++ string class methods aString.length(); aString.empty(); aString.find(‘z’, pos); aString.assign(n, ‘z’); aString.copy(str, x, n); aString.insert(x,n, ‘z’); aString.substr(x, n);