C++ Programming Homework 11 Speaker: Ching-Chen Chang Date: 2008/05/02.

Slides:



Advertisements
Similar presentations
Safe Touch Middle School Grades 6-8
Advertisements

Constructor. 2 constructor The main use of constructors is to initialize objects. A constructor is a special member function, whose name is same as class.
Introduction to Programming Lecture 39. Copy Constructor.
Gender Roles in Things Fall Apart
UNIT spelling SOFT C – HARD C.
Pregnancy Myths & Truths. 1.A female can’t get pregnant if she is on her period. False Sperm can survive inside of a female anywhere from a day to up.
CCHS English 10 Animal Farm Notes from Activity #4: Analyzing Old Major’s Speech January 9, 2014 Thursday.
Intermediate Grades 3-5 Safe Touch Material for this presentation was attained from West County Psychological Associates© PowerPoint presentation created.
My Personal Reading Of Eveline Giulia Paparot4^aA.S. 2009/2010.
Sex, Hugs, and Self-Control: Matters of Marriage
Writing a Good Program 6. Pointers and Arrays
The Island of Liars and Truth-Tellers
Privacy Issues and Techniques for Monitoring Applications Vibhor Rastogi RFID Security Group.
Introduction to Classes and Objects CS-2303, C-Term Introduction to Classes and Objects CS-2303 System Programming Concepts (Slides include materials.
1 Classes and Objects. 2 Outlines Class Definitions and Objects Member Functions Data Members –Get and Set functions –Constructors.
Introduction to C++. Overview C++? What are references Object orientation Classes Access specifiers Constructor/destructor Interface-implementation separation.
Polymorphism. Introduction ‘one name multiple forms’ Implemented using overloaded functions and operators Early binding or static binding or static linking.
In the Presence of God May 2. Think About It … What are some ways our current society might complete this statement? “Marriage is________.”
Internet Safety. Disguises Going on the Internet is like going out on Halloween Everyone’s identity is hidden Unless you know your friends’ costume, you.
Introduction to fertility In Demography, the word ‘fertility’ refers to the number live births women have It is a major component of population change.
Who Are Our Troops Struggling Against in Our Efforts to Help Afghanistan? Is this a fight Is this a fight worth fighting?worth fighting? Key Questions:Key.
WALKABOUT NOTES Additional analysis. JOURNEY Walkabout refers to a journey of maturation and self-discovery This experiential ‘journey’ is an extended.
CS212: Object Oriented Analysis and Design Lecture 7: Arrays, Pointers and Dynamic Memory Allocation.
Digital Citizenship Grade Create a map that shows all of the places your family goes online and with whom you connect With a parent, find three.
First 150 Words from the Fry List
What’s the difference between Internet friends and in-person friends? Talking Safely Online Hueneme Elementary School District Digital Citizenship 5th.
Kislingbury Neighbourhood Plan 2014 Supplementary Questionnaire Analysis 1.
English Trainer Stephen Giguere Your partner for Business English Training.
DAILY EXPRESSIONS Subject + Adjective. Subject + Adjective + ma? S + Adverb + Adj. S + negative form +Adj.
Differences between Genders And Age groups. Hypothesis: Male students believe they perform better in traditional classes over online classes while female.
Chapter 9 Classes: A Deeper Look, Part I Part II.
Copyright © 2012 by Nelson Education Limited.1-1 Chapter 1 Introduction.
Module 1. INTRODUCTIO N Reading and vocabulary.
Pronoun Cases. Subjective pronouns – These words take the place of nouns or other pronouns and work as the subject of a verb. The person or object referred.
Kailyn Smith Mr. Bourne BTT1O.  Cyber stalking is a way for men and woman to stalk older or younger people.  Now a days it’s easier to cyber stalk because.
THE HUNGER GAMES OPENING ANALYSIS 9 FRAME ANALYSIS.
Pronouns ~ Person 1st person is the speaker. (I, me, we, us) 2nd person is the person spoken to (you) 3rd person is the person spoken about (he, she, it,
You must study this PowerPoint, play the Rags to Riches game and take and pass the quiz before continuing with class assignments.
Container Classes. How do we do better? Tough to delete correctly: startLocation.
FEMINIST. FEMINIST CRITICISM Concerned with the ways in which literature reinforces or undermines the… o Political o Economic o Social o Psychological.
Communication Getting Along With Others Write a paragraph entitled “The Secret to Good Relationships” and describe the qualities and skills needed to get.
EBC + Evangelizing the World + Bringing Believers to Spiritual Maturity + Caring for Others EBC + Evangelizing the World + Bringing Believers to Spiritual.
Responding to Literature Ramona Quimby, Age 8 Houghton Mifflin Grade 3 D. Crisler 2012/2013 HM Strategy Focus/Obj.: Summarize Comprehension Focus/Obj:
DROPBOX A place to store all of your files A place to share folders with others A place to store all of your pictures Access your files from anywhere!
About the novel- Dead Man’s Island. Carol Sanders live in England, but when she was younger, she lived in Hong Kong. Carol and her family lived in Hong.
CLASSIFICATION AND DIVISION A type of analysis. Analysis Breaking something down into parts to understand or explain it better Division takes a whole.
{ Prayer & Fasting: Convinced of God’s Goodness Pastor Rod Enos Sunday, January 26, 2014.
C++ Programming HW14 Speaker : Ching-Chen Chang Date: 2008/05/23.
Analysis of the Short Story The Necklace Guy de Maupassant
When my love swears that she is made of truth I do believe her, though I know she lies, That she might think me some untutor'd youth,, Unlearned in the.
Hello Happy New Semester 2 U. Course Instructeur: Dr. Faiza ELhussien Welcome Everybody  Wish You nice  Successful  Amazing Course.
What is Sociology? Unit One, Lesson One Teacher’s Edition.
LITERARY CRITICISM FEMINIST.
Pointer to an Object Can define a pointer to an object:
Procedural and Object-Oriented Programming
If I Stay Signposts By: Jordan.
Linked Lists Chapter 6 Section 6.4 – 6.6
Default Constructors A default constructor is a constructor that takes no arguments. If you write a class with no constructor at all, C++ will write a.
CISC181 Introduction to Computer Science Dr
Class: Special Topics Copy Constructors Static members Friends this
Test for a Difference in Proportions
Introduction of Programming
Online Safety: Rights and Responsibilities
NAME 436.
Welcome to my class! 1.
CS148 Introduction to Programming II
More C++ Classes Systems Programming.
Google Certification Module 5
SPL – PS3 C++ Classes.
Introduction to Classes and Objects
Presentation transcript:

C++ Programming Homework 11 Speaker: Ching-Chen Chang Date: 2008/05/02

HW11 Student name gender age public: private: Askedby() This ia only a character point, so you need to dynamically allocate the memory space from the free store for the name of a student. This data member belongs to a enumeration data type "Gender", which has two possible values Female and Male. The reasonable value of age cannot be larger than 200, so choose an appropriate data type for it. Carefully design the constructor and destructor to allocate and release memory to store student names.

Rule The actual age of a woman is a secret. If a man asks her, then younger students (with ages less than or equal to 20) will reply an age which is 50% more, so that it sounds more "mature". On the contrary, older students will give a reply which is only 80% of her actual age, to make herself "younger". If she is asked by a female friend, she will tell the truth because her friend knows this trick. For a male student, he will tell you his actual age because there is nothing to hide.

Example Alice, Female, 28 Bob, Male, 20 Charlie, Male, 40 Denise, Female, 16 Asked ByAliceBobCharlieDenise Alice Bob20 Charlie40 Denise

Note Deadline:2008/5/4 8:30 AM Upload to the following link  Project Name  e.g. HW11_ Compress the folder to a ZIP or RAR file

MSDN 說明  索引