Click here to Skip to main content
15,845,829 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to create OLE object for MS Office Pin
CPallini16-Feb-12 10:23
mveCPallini16-Feb-12 10:23 
GeneralRe: How to create OLE object for MS Office Pin
LionAM16-Feb-12 22:04
LionAM16-Feb-12 22:04 
QuestionMFC Multiple Splitter for MDI Application Pin
SHWRRMSH16-Feb-12 0:29
SHWRRMSH16-Feb-12 0:29 
GeneralRe: MFC Multiple Splitter for MDI Application Pin
Jochen Arndt16-Feb-12 1:11
professionalJochen Arndt16-Feb-12 1:11 
GeneralRe: MFC Multiple Splitter for MDI Application Pin
SHWRRMSH16-Feb-12 1:16
SHWRRMSH16-Feb-12 1:16 
Questioncall C# function from C++ dll Pin
Paulraj G15-Feb-12 21:15
Paulraj G15-Feb-12 21:15 
AnswerRe: call C# function from C++ dll Pin
Code-o-mat15-Feb-12 22:47
Code-o-mat15-Feb-12 22:47 
Questionhow to find time consumed for sorting a given array[sorted/unsorted] Pin
connect2janu15-Feb-12 18:58
connect2janu15-Feb-12 18:58 
hi all

here is the my code[quick_sort),plz point the errors,remove the errors plz
i want run this programme in fedora also[what exactly the header file would be to find time consumed for sorting a given array[sorted/unsorted] ]



#inlcude<stdio.h>
#include<conio.h>
#include<time.h>
Const int MAX=1000;
Int partition(int a[],low,int high)
{
  	Int I,j,,temp,key;
	Key=a[low];
	I=low;
	J=high+1;
    While(i<=j&& key<=a[i]);
	{
 	i++;
	}
     While(key>a[j]);
	{
	j--;
	}
     If(i<j)
	{
 	temp=a[i],a[i]=a[j],a[j]=temp;
	}
      Else
	{ 
	Temp=a[low],a[low]=a[j],a[j]=a[low;
	Return j;
	}
}

Void quick_sort(int a[],int low,int high)
{ 
	Int mid;
	If(low<high)
	{
	mid=partition(a,low,high);
	quick_sort(a,low,mid-1);
	quick_sort(a,mid+1,high);
	}
}

Void main()
	{ 
	Int a[MAX],n,I;
	Clock_t end,start;
	Start=clock();
	Printf("enter the no of elements:");
	Scanf("%d",&n);
	Printf("\n enter the elements to sort\n");
	for(i=0;i<=n:i++);
	scanf("%d",&a[i]);
	quick_sort(a,0,n-1);
	end=clock();
	printf("\n the sorted elemetns are:\n\n"(;
 	for(i=0;i<=n:i++);
	printf("%d\t",a[i]);
	printf("\n\n time consumed the array is: %5.2f sec",(end-start)/CLK_TCK);
	getch();
}

AnswerRe: how to find time consumed for sorting a given array[sorted/unsorted] Pin
Rahul Rajat Singh15-Feb-12 20:50
professionalRahul Rajat Singh15-Feb-12 20:50 
AnswerRe: how to find time consumed for sorting a given array[sorted/unsorted] Pin
Rahul Rajat Singh15-Feb-12 20:55
professionalRahul Rajat Singh15-Feb-12 20:55 
GeneralRe: how to find time consumed for sorting a given array[sorted/unsorted] Pin
connect2janu16-Feb-12 0:07
connect2janu16-Feb-12 0:07 
GeneralRe: how to find time consumed for sorting a given array[sorted/unsorted] Pin
Rahul Rajat Singh16-Feb-12 0:54
professionalRahul Rajat Singh16-Feb-12 0:54 
AnswerRe: how to find time consumed for sorting a given array[sorted/unsorted] Pin
Chuck O'Toole16-Feb-12 5:25
Chuck O'Toole16-Feb-12 5:25 
Generalsegmentation fault??? Pin
connect2janu18-Feb-12 1:12
connect2janu18-Feb-12 1:12 
AnswerRe: segmentation fault??? Pin
Chuck O'Toole18-Feb-12 5:18
Chuck O'Toole18-Feb-12 5:18 
Questionusing SHFileOperationW, how to tell when complete and close dialog box Pin
jkirkerx15-Feb-12 11:36
professionaljkirkerx15-Feb-12 11:36 
QuestionRe: using SHFileOperationW, how to tell when complete and close dialog box Pin
Code-o-mat15-Feb-12 12:48
Code-o-mat15-Feb-12 12:48 
AnswerRe: using SHFileOperationW, how to tell when complete and close dialog box Pin
jkirkerx15-Feb-12 13:25
professionaljkirkerx15-Feb-12 13:25 
GeneralRe: using SHFileOperationW, how to tell when complete and close dialog box Pin
Code-o-mat15-Feb-12 22:41
Code-o-mat15-Feb-12 22:41 
GeneralRe: using SHFileOperationW, how to tell when complete and close dialog box Pin
jkirkerx16-Feb-12 7:22
professionaljkirkerx16-Feb-12 7:22 
GeneralLooking for an open source voice removal algorithm Pin
Yuval Naveh15-Feb-12 6:37
Yuval Naveh15-Feb-12 6:37 
GeneralRe: Looking for an open source voice removal algorithm Pin
Gary Wheeler15-Feb-12 7:02
Gary Wheeler15-Feb-12 7:02 
GeneralRe: Looking for an open source voice removal algorithm Pin
Yuval Naveh15-Feb-12 7:06
Yuval Naveh15-Feb-12 7:06 
GeneralRe: Looking for an open source voice removal algorithm Pin
Gary Wheeler15-Feb-12 7:10
Gary Wheeler15-Feb-12 7:10 
GeneralRe: Looking for an open source voice removal algorithm Pin
Yuval Naveh15-Feb-12 8:41
Yuval Naveh15-Feb-12 8:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.