Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~116 People Reached
Favorite Forums
Favorite Tags
c++ x 1
Member Avatar for ViXXeY

struct node { char str[10]; int val; node *next; }; void main() { clrscr(); node *head=NULL;int cnt=0; cout<<"Continue... [Y/N]";char ch;cin>>ch; while(ch!='n') { node *temp; cout<<"Str= ";cin>>temp->str; cout<<"val= ";cin>>temp->val; temp->next=head; head=temp; cnt++; cout<<"Continue... [Y/N]";cin>>ch; } node *temp1; temp1=head; while(temp1!=NULL) { cout<<temp1->str<<" "; cout<<temp1->val<<endl; temp1=temp1->next; } getch(); } Plz help me out....... …

Member Avatar for daviddoria
0
116