Wednesday 11 April 2012

[Pak Youth] Fwd: [Blue Heaven] 19 Assignments Solutions Spring 2012

#include<iostream.h>
#include<string.h>

using namespace std;

class Khiladi{
public:
string KhiladiName;
int KhiladiScore;
Khiladi *Next;

Khiladi(string name, int scor)
{
this->KhiladiName = name;
this->KhiladiScore = scor;
this->Next=NULL;
}

};
Khiladi *Sirr;
int khiladies;

void NawaKhuladi(string name, int score)
{
Khiladi * current;
if(Sirr==NULL)
{
Sirr=new Khiladi(name, score);
++khiladies;
}
else
{
current=Sirr;
while(current->Next!=NULL)
{
current= current->Next;
}
current->Next = new Khiladi(name,score);
++khiladies;
}
}





void DikhaoSarayKhiladi()
{
Khiladi * current;
current=Sirr;
while(current !=NULL)
{
cout<< current->KhiladiName <<"\t\t\t";
cout<< current->KhiladiScore<<endl;
current= current->Next;
}

}

main(){

NawaKhuladi("abc",15);
NawaKhuladi("ccc",15);
DikhaoSarayKhiladi();

system("pause");
}
Quote this message in a reply

« Next Oldest | Next Newest »


---------- Forwarded message ----------
From: Syed Omer Shah <deeplysaddend@gmail.com>
Date: Thu, Apr 12, 2012 at 7:06 AM
Subject: [Blue Heaven] 19 Assignments Solutions Spring 2012
To: vu-and-company@googlegroups.com, vuZs@googlegroups.com, vuaskari_com@googlegroups.com, discussion_vu@googlegroups.com, weblyceum@googlegroups.com, vu-club@googlegroups.com, VU-CS-Experts@googlegroups.com, vuhelp_pk@googlegroups.com, vuhelps@googlegroups.com, vustudymania@googlegroups.com, VU-Study-Corner@googlegroups.com, coool_vu_students@googlegroups.com, virtualiansnet@googlegroups.com, vuguyscom@googlegroups.com, vu-rose@googlegroups.com, vusr@googlegroups.com, virtualposition@googlegroups.com, blue_heaven@googlegroups.com, vumasters@googlegroups.com, dare-arqam-vu@googlegroups.com, vu-it-section@googlegroups.com, pak-youth@googlegroups.com
Cc: Al-Mualim@googlegroups.com


Assalamu Alaykum Warahmatullahi WaBarakatuhu,
Here are all latest Assignment solutions of spring 2012.


--
███████████████{ Follow The Group Rules }██████████████████
 
You received this message because you are subscribed to the Google
Groups "Blue Heaven" group.
To post to this group, send email to blue_heaven@googlegroups.com
To unsubscribe from this group, send email to
blue_heaven+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/blue_heaven?hl=en_US?hl=en



--
join this :
http://www.facebook.com/pages/Vu-Tution/328636263856735

--
You received this message because you are subscribed to the Google Groups "Pak Youth" group.
To post to this group, send email to pak-youth@googlegroups.com.
To unsubscribe from this group, send email to pak-youth+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pak-youth?hl=en.

No comments:

Post a Comment