The simplest sort, although inefficient. Below is a demonstration of
bubble sort and insertion sort.
The bubble sort just consists of 2 for loops and std::swap.
The insertion sort uses 2 loops as well but not as much swap
as bubble sort.
Any questions ?
(Read More) Hello everyone i'm a new member , i need ur help with this code ,
i want to write a for loop that assigns the 3rd row of the array to 0,, and then print out the array after setting the 3rd row to 0.
(Read More) The function adds two large numeric string together, like "12345667" + "12345678" = ?
It does not have complete error checking, I'll leave that up to you.
It should work but I am prone to bugs, so do advise if bugs are found.
Included are also helper function that helps us add the large...
(Read More) #ifndef _READFILE_H_
#define _READFILE_H_
#include<string>
#include<vector>
#include<map>
using namespace std;
class Readfile{
(Read More) Hello
i am a musician and not a programmer. i assume this is completely obvious to you by now.
do listen to my music if you please. something to do while you read my long enquiry.
samantha.mp3
I am attempting my first c++ program to create a program for a midi control device..... a...
(Read More) You can access the sound chip to play midi voices using winmm.lib, or in case of Dev C++ the libwinmm.a library. There are 128 midi voices to pick from, anything from the Acoustic Grand Piano = 0 to the Gunshot = 127.
(Read More) I am given the class definition of stack and queue classes where I have to write a templated function called reverseQueue(?) that takes a pointer to queue as a parameter and uses stack object to reverse the given queue. The function call to reverseQueue should reverse the data of the passed as a...
(Read More) What will be the value of "++n" in the above code? Pls help..
(Read More) Can someone help me with this problem here about Binary Trees. I was given this code...
and I am required to write a function void count_nodes(?) to determine the total number of nodes in a Binary Tree.
(Read More) I previously posted an MS-Windows example program about how to recursively search folders and create a list of their filename. This program is similar in concept but is for linux. It c++ and uses std::string and std::vector classes to hold the strings. When the program encounters a directory...
(Read More)