Well what do you think about my round-robin scheduling tournament?
Is it good n complete?

http://rapidshare.com/files/19116739...edule.exe.html

your link doesn't work

Error - The file could not be found. Please check the download link

I don't trust executables.

I don't trust executables.

Then how the hell do you run any programs on your computer? :icon_rolleyes:

Re-word: He like many others does not trust exectuables presented to them from foreign, unknown sources on a programming website.

I know. It was an attempt to be funny. Apperantly I failed ;)

More likely to be me, rather than you lol.

@OP
Agreed, post the source....or nobody will look at it.

More likely to be me, rather than you lol.

@OP
Agreed, post the source....or nobody will look at it.

#include <iostream>
#include <conio.h>
#include <windows.h>
#include <string.h>
using namespace std;

void schedule(int,int []);
int main()
{
    int n,f[20],i;


       
    cout<<"enter the number of teams:"<<endl;
    cin>>n;
  
    cout<<"enter the name of the teams:"<<endl;
    for(i=0;i<n;i++)
    cin>>f[i];
    if(n%2!=0)
    {f[i]=0;
    n=n+1;}   //0 is a dummy team

    schedule(n,f);

    return 0;
}
void schedule(int n,int f[20])
{int *t,l,x;

for(int i=0;i<n-1;i++)
{
t=&f[n-1];
 cout<<"\n\n\n\n\n\n"<<"            Week "<<i+1<<endl;
    for(int j=0;j<n/2;j++)
    {

        cout<<"         "<<f[j]<<"         "<<*t<<endl;
        t--;

        }
        x=f[n-1];
        for(l=n-1;l>1;l--)
        f[l]=f[l-1];
        f[l]=x;





    }
    }

Is there a way to rewrite this code using divide and conquer method?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.