Even a Working Code in Turbo C++
is not working in Dev++
.. I have Just installed ...... in C: and All Lib /Bin/Dir/Include Paths Are Correct as it was........But still Not working...........
I have Tryed To rebuild it But No use
any Help me out
or Provide me a good C++ compiler ..............
C++ Code:
include<iostream>
#include<stdio>
#include<conio>
int main(void)
{
//clrscr();
int a[10];
int s=3;
int i,j,temp;
cout<<"\t\t *SORTING OF THREE ElEMENTS * ";
for(i=0;i<s;i++)
{
cout<<"Enter the "<<i+1<<" Element: ";
cin>>a;
}
cout<<"\n\nBefore Sorting : \n\n";
for(i=0;i<s;i++)
cout<<a<<" ";
for(i=0;i<s;i++)
for(j=0;j<(s-i);j++)
if(a[j]>a[j+1])
{
temp=a[j];
a[j]=a[j+1];
a[j+1]=temp;
}
cout<<"\n\nAfter Sorting : \n\n";
for(i=0;i<s;i++)
{
cout<<a<<" ";
}
getch();
}