Can someone please explain the concept behind bubble sorting a vector step by step? I know this is a tedious task so whoever answers I will much appreciate it! :)

Questions:

1.) What variables are being used?
2.) How and where is the function placed?
3.) Where and why are the for loops?
4.) Step by step procedure in example of vector bubble sort.

THANK YOU!

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.