// Sorting Techniques.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include<iostream>
using namespace std;
void Bubble(int x[],int n ){
int temp , j , pass;
int flag=1 ;
for(pass=1;pass<n-1 && flag==1;pass){
flag=0;
for(j=0;j<n-pass-1;j++){
if(x[j]>x[j+1]){
flag =1;
temp=x[j];
x[j]=x[j+1];
x[j+1]=temp;
}
}
}
} // Env\d off Bubble Sort funtion
int main(){
int n=5;
int a[5]={1,5,3,2,4};
for(int i=0;i<5;i++){
Bubble(a,n);
}
}
there is problem , in main