> but i don't know how to add the other functions into this part
I'm not surprised you can't.
If you had written the code yourself, then adding the other functions would be self evident.
But as always, you've googled your way to half an answer without understanding anything at all.
Your bubble sort directly lifted from this year old thread.
https://www.reddit.com/r/cpp_questions/comments/7crm75/error_help/
The printing loops you lifted from here
https://www.coursehero.com/file/28370026/Pr8-5cpp/
Look, if you're not prepared to actually start writing your own code from scratch, then frankly you're wasting everyone's time (including your own).
There's no point pretending that at some future time that you'll magically 'know' C++, you won't.
Sure, you might be able to con your educational institution for long enough to get that piece of paper affirming your competence.
It may even be enough for you to get a job as a programmer, but for sure it won't be enough for you to keep that job.