update
This commit is contained in:
parent
921ca197bf
commit
c50ef8bfe3
1 changed files with 6 additions and 4 deletions
10
src/io.h
10
src/io.h
|
@ -1,12 +1,13 @@
|
|||
#pragma once
|
||||
#include <iostream> // for std::cout
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
void add_two_numbers();
|
||||
int read_number();
|
||||
void write_answer(int x);
|
||||
void convert_char_to_ascii();
|
||||
void print_type_size_bytes();
|
||||
|
||||
#include <string>
|
||||
template <typename T>
|
||||
struct TypeName
|
||||
{
|
||||
|
@ -39,7 +40,8 @@ void bubble_sort(int size, T *a)
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
template <typename T>
|
||||
void bubble_sort_print(int size, T *a)
|
||||
{
|
||||
|
@ -53,4 +55,4 @@ void bubble_sort_print(int size, T *a)
|
|||
for (int i = 0; i < size; i++)
|
||||
std::cout << a[i] << ", ";
|
||||
std::cout << "\n";
|
||||
}
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue