23 lines
276 B
C++
23 lines
276 B
C++
#include <iostream>
|
|
|
|
using namespace std;
|
|
|
|
typedef struct
|
|
{
|
|
string id;
|
|
string name;
|
|
double price;
|
|
} book;
|
|
|
|
void swap(double &num1, double &num2)
|
|
{
|
|
double temp = num1;
|
|
num1 = num2;
|
|
num2 = temp;
|
|
}
|
|
|
|
book sort(book &books)
|
|
{
|
|
book new_books[100];
|
|
|
|
} |