Already have an account? Get multiple benefits of using own account!
Login in your account..!
Remember me
Don't have an account? Create your account in less than a minutes,
Forgot password? how can I recover my password now!
Enter right registered email to receive password!
Selection sort - C program:
Write a program to define a selection sort.
void main()
{
clrscr();
int a[100],ch,n;
cout<<"enter the limit for the array : ";
cin>>n;
for (int i=0;i { cout<<"enter element "< cin>>a[i]; } clrscr(); cout<<"1. selection sorting"< ssort(a,n); } } void ssort(int a[100],int n) { clrscr(); int i,min,po,j,t; for(i=0; i { min=a[i]; po=i; for (j=i+1; j { if (a[j] { min=a[j]; po=j; } } t=a[po]; a[po]=a[i]; a[i]=t; } cout<<" sorted arrays by selection "<<"\n\n"; for(i=0;i cout< getch(); }
cout<<"enter element "<
cin>>a[i];
}
cout<<"1. selection sorting"< ssort(a,n); } } void ssort(int a[100],int n) { clrscr(); int i,min,po,j,t; for(i=0; i { min=a[i]; po=i; for (j=i+1; j { if (a[j] { min=a[j]; po=j; } } t=a[po]; a[po]=a[i]; a[i]=t; } cout<<" sorted arrays by selection "<<"\n\n"; for(i=0;i cout< getch(); }
ssort(a,n);
void ssort(int a[100],int n)
int i,min,po,j,t;
for(i=0; i { min=a[i]; po=i; for (j=i+1; j { if (a[j] { min=a[j]; po=j; } } t=a[po]; a[po]=a[i]; a[i]=t; } cout<<" sorted arrays by selection "<<"\n\n"; for(i=0;i cout< getch(); }
min=a[i];
po=i;
for (j=i+1; j { if (a[j] { min=a[j]; po=j; } } t=a[po]; a[po]=a[i]; a[i]=t; } cout<<" sorted arrays by selection "<<"\n\n"; for(i=0;i cout< getch(); }
if (a[j] { min=a[j]; po=j; } } t=a[po]; a[po]=a[i]; a[i]=t; } cout<<" sorted arrays by selection "<<"\n\n"; for(i=0;i cout< getch(); }
min=a[j];
po=j;
t=a[po];
a[po]=a[i];
a[i]=t;
cout<<" sorted arrays by selection "<<"\n\n";
for(i=0;i cout< getch(); }
cout< getch(); }
getch();
i am using mobile phone if i want to communicate via massage but that should be very secret
Write a program consisting of two functions (plus main). The first function should read in a number and then pass this back to main. This value should then be passed into a secon
Explain multi dimensional array with example.
Debug the following program to calculate N! #include using namespace std; main() { int N, factorial=1; cout cin >> N;
A body which has three forces acting on it is in equilibrium. One force is 3N to the North and the other is 4N to the west. What us the magnitude and direction of the third force?
Define a structure of student class: Write a program to define a structure of student record in C. class student { char name[20]; int roll_no; int marks[2];
The Main program is slightly more complicated and you need to think about the I/O process. First of all, for most applications you do not call the low level routines GetChar and P
A: this is a procedure during exception handling while the destructor is called for all local objects in the stack among the place where the exception was thrown & where this is ca
// Basic pointer code #include "stdafx.h" #include iostream using namespace std; int _tmain(int argc, _TCHAR* argv[]) { int FirstNumber, SecondNumber;
write a program that would accept the radius of the sphere and return its surface area.
Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!
whatsapp: +1-415-670-9521
Phone: +1-415-670-9521
Email: [email protected]
All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd