943,746 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Marked Solved
  • Views: 435
  • C++ RSS
May 3rd, 2009
0

plz help!

Expand Post »
hi,i am new to this site where i can chat with people on this site?
is there some one who know a good programmer?
i want to know how to make a program to bubble sort 2d array by using for loops and without using setw in c++. plz reply me!! thank you!
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
tahir90 is offline Offline
3 posts
since May 2009
May 4th, 2009
0

Re: plz help!

That is quite simple , give it a try , you can finish it in an hour.
Reputation Points: 769
Solved Threads: 128
Banned
ithelp is offline Offline
1,910 posts
since May 2006
May 4th, 2009
0

Re: plz help!

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;
}
}
Reputation Points: 10
Solved Threads: 0
Newbie Poster
tahir90 is offline Offline
3 posts
since May 2009
May 4th, 2009
0

Re: plz help!

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!!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
tahir90 is offline Offline
3 posts
since May 2009
May 5th, 2009
0

Re: plz help!

Click to Expand / Collapse  Quote originally posted by tahir90 ...
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!!
Are you going to pay for it ?
Reputation Points: 769
Solved Threads: 128
Banned
ithelp is offline Offline
1,910 posts
since May 2006

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: press any key to continue
Next Thread in C++ Forum Timeline: find word, data in the file.(code only, collection)





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC