~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

No such error in my case. Which compiler are you using ? Just a thought, try keeping different variable names for the GOTO labels and your normal variables and see if that makes a difference.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Nvidia - ATI

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

The place where you add them, makes all the difference in the world. Posting the code would have made it really clear. Please do as requested to get maximum help. BTW here is the working code, I just made the additions in the right place. ;)

#include <iostream>
#include <string>
using namespace std;

class Person
{
public:
    Person() { }
    Person( string nam, string day);
    string get_name()const;
    string get_date()const;
    void print()const;
private:
    string name;
    string date;
};

Person::Person( string nam,string day)
{
    name= nam;
    date= day;
}

string Person::get_name() const
{
    return name;
}
string Person::get_date() const
{
    return date;
}

void Person::print()const
{
    cout<<"\nMr/Mrs: "<<name<<" was born on "<<date<<"\n";
}

class Student : public Person
{
public:
    Student() {}
    Student(string maj);
    string get_major()const;
    void print()const;
private:
    string major;
};

Student::Student(string maj)
{
    major=maj;
}

string Student::get_major() const
{
    return major;
}

void Student::print() const
{
    cout<<"Studying : "<<major<<"\n";
}

class Instructor : public Person
{
public:
    Instructor(double sal);
    double get_salry() const;
    void print()const;
private:
    double salry;
};

Instructor::Instructor(double sal)
{
    salry=sal;
}

double Instructor::get_salry() const
{
    return salry;
}

void Instructor::print()const
{
    cout<<"Earns : "<<salry<<"\n";
}

int main ()
{

    string nam1;
    string dat1;
    string maj1;
    int val;
    double sal1;


    cout<< "Please enter the name of Person \n";
    getline (cin,nam1);

    cout<< "Please enter the date of birth in the format dd/mm/yyyy \n";
    cin>>dat1;

    cout<< " Please Enter one of the below choices \n 1 for student \n 2 for instructor \n";
    cout<< " 0 for none of the …
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You get a bastardsword and a blood shield.

I put in elixir of strength.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Post the most recent code and the lines which flag an error.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

dance

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You get me, a die hard fan of Neverwinter Nights.

I put in a long sword.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

PCI slots - AGP cards

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Immoral slackers of Linux gate began improving their kissing while preparing to kiss paris hilton.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Alive - POD

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

is so difficult

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

girl. Gone are

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Correctly doing things takes a lot of effort, but its worth it.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

SOS.. i think you got confused with Fantastic Word game -> 1..

Oops.. ;) I think we need to close a few games, too much confusion here....

Game rats enter athletic teams.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Normally C++ provides the default constructor for any class you create but once you decide to create your own constructors, it is mandatory to provide a default constructor on your own. Its like when you deny a free ride, you have to walk all the way home on your own.

Add the following lines of code:

Person::Person() { }
Student::Student() { }
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

If you want IDE's specifically aimed for C++, you can read this. Oh and btw, conio.h is not a standard header, so no point in searching for one.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Maybe you didn't read my previous post. It does exactly what you are asking for i.e. invoking the print function of the instance of class Person.

Maybe you ought to read this.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

you would never

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

chillax - axe

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

ever dream of.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Hey Joe - Jimi Hendrix

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

I get to recollect painful memories.

I put in some Java Beans.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Classes in Java can inherit from on a single class.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Died is not a good word to continue this game.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

pixies

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Moralist slackers of Linux gate began debugging their problems while preparing to kill Lindows.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

I meant, do something like:

Person obj(nam1, dat1);
obj.print();  // call the member function print
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You don't as such get the contents of the resopnse. Reponse in general is sent to the client -- what to do with it depends on the client, which is normally browser in our case. You can let the browser know you are sending an XML file or video by setting the content type of the response.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You need to call the print function after creating the object. Something along the lines of obj.print().

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Girlfriends are your worst advisors.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

If you are talking about reading the contents of the form submitted using the GET or POST method, try looking into getParameter(input_type_name) method of the request class.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Why should it cost? Aren't there members who can click pixels in a 19x19 grid?

You obviously didn't like mine. :cry:

Ah..no nothing like that Walt, you are really good at Paint Shop Pro. Your smileys gave me an idea....why not start a competition at Daniweb wherein members can submit their own smileys and the best smileys win. :D

Anyway I'd rather have ads and free membership than no ads and have to cough up every month.

Yes, esp. when we can disable ads... ;)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Hello there Peter, welcome to Daniweb. :D

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

reflex

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

> Religious people tend to argue that if something cannot be explained, then it must be b/c of some supernatural being.

Great, now I finally know the bug in my project is nothing but a supernatural doing...;)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Technically though if 3 copies of a single row existed you would only delete 1 with that script, hence why I used the 1 to keep instead of 1 to delete

Nope. Take a look at it once again. I delete those tuples who don't satisfy the criteria of having the max ROWID. In any case when duplicate exists, only one row will have the max rowid among all the duplicates. Hence the query. Try running it and you will know.

> Also in large tables that will be much slower

Correlated queries are generally faster as compared to other types of queries. On what basis can you say that the query would be slow ?

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

You get an excited audience.

I put in a window.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

CSS - tableless layout

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

OK, with super fast broadband arriving, well, super fast, it begs the question what would you use it for?

So go on then, what would you do with such speedy broadband that you couldn't do before?

I would make me really happy since the current 100 kbps scheme kind of sucks... ;)

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Does this occur for specific values of size ? If yes, which compiler are you using ? Also post the relevant code..

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

...and do a favour to the members of this forum by posting code in code tags. :D

ajay_tabbu commented: thanks for wishing.but i m thankfull to u who help me. +1
~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

GoLive CS2 - CS Programme

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

our life more

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Moralist hackers of Linux gate debugging their problems while preparing to crack Lindows

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Day in and day out, I only think about you baby.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

to cry really

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

reduce

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

I put the code throwing exception in try and catch block.

I put in Photoshop.

~s.o.s~ 2,560 Failure as a human Team Colleague Featured Poster

Some olives mixed eternally, take infinite motion every serving.