#include<iostream.h>
#include<string.h>
#include<stdio.h>
class MY
{
private:
char time[10];
char place[10];
public:
char *heart;
void feeling(char *feel);
void course(char time[10],char place[10]);
};
class MM
{
private:
int *heart;
void feeling();
public:
void image()
{
double height=1.60;
char hair[10]="yellowlong";
char skin_color[10]="blong";
bool alone=true;
}
char answer;
};
void MY::course(char time[10],char place[10])
{
cout<<"today,""<<time<<," i saw a pretty girl in the "<<place;"
}
void MY::feeling(char *feel)
{
int i;
for(i=1;i<=100;i++)
{
cout<<" i "<<feel;
}
}
void main()
{
MY my;
MM your;
my.course("2014.09.30","college");
my.feeling("was moved");
cout<<endl<<"then i asked for love:"<<"(chose Y or N)"<<endl;
cin>>your.answer;
if(your.answer=='y'||your.answer=='Y')
{
my.heart=new char[9999];
int date=0;
do{
my.feeling("love you");
date++;
}while(date<=10000*365);
}
else
{
delete my.heart;
int date=0;
do{
my.feeling("was alone");
}while(date);
}
}
#include<string.h>
#include<stdio.h>
class MY
{
private:
char time[10];
char place[10];
public:
char *heart;
void feeling(char *feel);
void course(char time[10],char place[10]);
};
class MM
{
private:
int *heart;
void feeling();
public:
void image()
{
double height=1.60;
char hair[10]="yellowlong";
char skin_color[10]="blong";
bool alone=true;
}
char answer;
};
void MY::course(char time[10],char place[10])
{
cout<<"today,""<<time<<," i saw a pretty girl in the "<<place;"
}
void MY::feeling(char *feel)
{
int i;
for(i=1;i<=100;i++)
{
cout<<" i "<<feel;
}
}
void main()
{
MY my;
MM your;
my.course("2014.09.30","college");
my.feeling("was moved");
cout<<endl<<"then i asked for love:"<<"(chose Y or N)"<<endl;
cin>>your.answer;
if(your.answer=='y'||your.answer=='Y')
{
my.heart=new char[9999];
int date=0;
do{
my.feeling("love you");
date++;
}while(date<=10000*365);
}
else
{
delete my.heart;
int date=0;
do{
my.feeling("was alone");
}while(date);
}
}