English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Assuming Point is a class type with a public copy constructor, iden¬tify each use of the copy constructor in this program fragment:
Point global;
Point foo_bar(Point arg)
{
Point local = arg;
Point *heap = new Point(global);
*heap = local;
Point pa[ 4 ] = { local, *heap };
return *heap;

2006-11-21 06:11:58 · 4 answers · asked by ABC 1 in Computers & Internet Programming & Design

4 answers

A short explanation of your program... hmmm how about: lazy people like you who get other people to do your schoolwork for you without even trying first by yourself make me sick.

At least when you get out into the real world you'll be discovered when you absolutely suck at whatever it is you end up doing.

Ahhh... I feel better :)

2006-11-21 06:41:05 · answer #1 · answered by scruffy 5 · 1 0

you ask alot of c++ questions... i assume you are taking a class or something that provides you with these questions... maybe you should take more notes in class, find a tutor, or talk to your teacher or classmates if you are really having this much trouble and cannot understand the code that is given to you. i'm not trying to be mean by saying this, it just might help you understand the concepts better, which would allow you to also understand how to reapply them in later programs.

2006-11-21 06:28:24 · answer #2 · answered by nemos 2 · 2 0

Go read a book.
And if you're a computer science or electrical computer engineering major in college I would tell you to stop right now, otherwise if you aren't then disregard the last and go with the first segment of my answer.

2006-11-21 06:47:46 · answer #3 · answered by Anonymous · 0 0

this would produce a black fox humping a rabbit.

2006-11-21 06:20:39 · answer #4 · answered by Anonymous · 2 0

fedest.com, questions and answers