How can I create a program where the output is name,horoscope,birthdate and birthstone..

#include <iostream>
using namespace std;
int main()
{
char name;
cout << "Please Enter Name" << endl;
cin >> name;

cout << "Your name is" << name << endl;
cin.get();
fflush(stdin);
return 0;
}

thanks for the reply..but I need the whole code including the output of zodiac sign/horoscope,birthday and birthstone..thanks again..

int sign,month,day;
char zodiac description[12],name[20];

int main(){

cout<<"Write your name"<<endl;
cin>>name;
cout<<"When did you born"<<"Wirte the number of the month"<<endl;
cin>>month;
cout<<"Write Day"<<endl;
cin>>day

cout<<"Your name is : "<<name<<"Your bithday is: "<< month<<" "<<day<<endl;
cout<<zodiac description[12-month]<<endl;
return o;
}

hi there..thanks for this code..I already try this one a while ago, there's a lot of error..here's the output of that code ..

write your name
jj
When did you bornWirte the number of the month
08
Write Day
09
name is jjday is month 9
zodiac description[12-month]

that's the output friend..
I think you forgot to write the other cod..:)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.