3
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by kamotekid08
0
#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;
}
0

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

0
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;
}

Edited by alexchen: n/a

0

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..:)

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.