| | |
plz help!
Thread Solved
![]() |
That is quite simple , give it a try , you can finish it in an hour.
•
•
Join Date: May 2009
Posts: 3
Reputation:
Solved Threads: 0
2dimensional buuble sort there may be some syntax errors so check it!
#include<iostream>
using namespace std;
void main()
{
int a[3][3]={{5,8,2},{9,4,0},{8,1,7}},temp;
for(int i=0;i<4;i++)
{
for(int i1=0;i1<4;i1++)
{
for(int j=0;j<4;j++)
{
for(int j1=0;j1<4;j1++)
{
if(a[i][i1]>a[j][j1])
{
temp=a[i][i1];
a[i][i1]=a[j][j1];
a[j][j1]=temp;
}
}
}
}
cout<<endl;
}
}
#include<iostream>
using namespace std;
void main()
{
int a[3][3]={{5,8,2},{9,4,0},{8,1,7}},temp;
for(int i=0;i<4;i++)
{
for(int i1=0;i1<4;i1++)
{
for(int j=0;j<4;j++)
{
for(int j1=0;j1<4;j1++)
{
if(a[i][i1]>a[j][j1])
{
temp=a[i][i1];
a[i][i1]=a[j][j1];
a[j][j1]=temp;
}
}
}
}
cout<<endl;
}
}
•
•
Join Date: May 2009
Posts: 3
Reputation:
Solved Threads: 0
my sorting problem is solved now but i still want to know a programmers address to access who can help me in learning c++. if any programmer have achance to see this post then plz plz contact me at tahir90_ashraf@yahoo.com. i'll be waiting!!
•
•
•
•
my sorting problem is solved now but i still want to know a programmers address to access who can help me in learning c++. if any programmer have achance to see this post then plz plz contact me at tahir90_ashraf@yahoo.com. i'll be waiting!!
![]() |
Similar Threads
- can someone plz help me with this? (Visual Basic 4 / 5 / 6)
- I NEED SUPPORT **"IMPORTANT"** PLZ HELP (Windows NT / 2000 / XP)
- Windows media player (Windows NT / 2000 / XP)
- Bridge.dll...Make it go away, Plz (Viruses, Spyware and other Nasties)
- can sum1 look @ dis plz (Viruses, Spyware and other Nasties)
- Hijackthis log file - plz help (Viruses, Spyware and other Nasties)
- IE not working...PLZ help :cry: (Web Browsers)
- PLZ help it's urgent! (Web Browsers)
- plz help ppl...... (Computer Science)
Other Threads in the C++ Forum
- Previous Thread: Call function from class
- Next Thread: find word, data in the file.(code only, collection)
| Thread Tools | Search this Thread |
anyfile api array based binary bitmap c++ c/c++ char class classes code coding compile console conversion count delete deploy desktop developer directshow dll download draw dynamic dynamiccharacterarray email encryption error file forms fstream function functions game gdi+ givemetehcodez gnu graph gui homeworkhelp homeworkhelper http iamthwee ibm ifstream input int integer java lib linkedlist linker loop looping loops map math matrix memory multiple news node number numbertoword output packing parameter pointer problem program programming project python random read recursion reference rpg string strings temperature template test text text-file tree url variable vector video visualc++ visualizationtoolkit win32 windows winsock word wordfrequency wxwidgets






