Double Queue in Program C++. Now I will give an example of program code corresponding to double the material in the queue on the programming language C ++ for that if you want to learn more about the C ++ programming language you can understand through this that I can give the code below before the start then you must prepare beforehand tools such as:
- Notepad ++
- Code Block
- Sublime Text
- and others
#include <iostream>
using std::cout;
using std::endl;
#include <queue>
int main()
{
std::queue< double > values;
values.push( 3.2 );
values.push( 9.8 );
values.push( 5.4 );
cout << "Popping from values: ";
while ( !values.empty() )
{
cout << values.front() << ' ';
values.pop();
}
cout << endl;
return 0;
}
and when executed it will produce output like in the picture below:
Code Program
Output Program
That code is a simple program on a double queue in the programming language C ++ that I can give. less clear if it can directly comment
0 komentar:
Post a Comment