ProCynic 0 Newbie Poster

I'm a beginer and I need some help with an assignment. I've looked around, but i have not been able to find an explination that I can understand. I am sure that I have done plenty of things wrong, and I could use some help. Here is the code.

// bubble sort test.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
using namespace std;
void bubble_sort(array[][],num_cols);
double get_numbers();
void main()
{
int num_cols;
cin >> num_cols;
new double array[2][num_cols];
for(int count = 0; count < (num_cols - 1); count++)
{
array[][] = count;
array[][] = get_numbers; // inputs #s from user, calculates, and returns double
}
}
void bubble_sort(array[][],num_cols)
{
bool swap;
double test1;
double test2;
int bottom = num_cols - 1;
do
{
swap = false
for (int count = 0; count < (bottom); count++)
{
if (array[2][count] > array[2][count + 1])
{
test1 = array[1][count];
test2 = array[2][count];
array[1][count] = array[1][count + 1];
array[2][count] = array[2][count + 1];
array[1][count + 1] = temp1;
array[2][count + 1] = temp2;
swap = true;
}
}
bottom--
} while (swap = true)
}
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.