Skip to content

Instantly share code, notes, and snippets.

fddemora / SelectionSort.cpp
Last active Jul 16, 2021
cpp selection sort algorithm
View SelectionSort.cpp
Imagine a struct like:
struct Bid {
string title;
string fund;
double amount;
Then taking a csv, reading the data into the bid, and then adding it to a vector.
fddemora / BubbleSort.cpp
Last active Jul 16, 2021
C++ bubble sort
View BubbleSort.cpp
using namespace std;
void SortVector(vector<int>& myVec);
int main(){
int size, input;
cin >> size; // get size from user.
vector<int> x(size);