Answer:
#include <iostream>
#include <stack>
#include <queue>
#include <string>
int main()
{
while ( true )
{
std::string letters;
std::cout << "Please enter a word (Enter - exit): ";
std::getline( std::cin, letters );
if ( letters.empty() ) break;
std::stack<char>
s( std::stack<char>::container_type( letters.begin(), letters.end() ) );
std::queue<char>
q( std::queue<char>::container_type( letters.begin(), letters.end() ) );
while ( !s.empty() && s.top() == q.front() )
{
s.pop();
q.pop();
}
if ( s.empty() ) std::cout << "The word is a palindrome" << std::endl;
else std::cout << "The word is not a palindrome" << std::endl;
}
return 0;
}
Explanation:
A <em>stack</em> is used to replicate a stack data structure in C++ while <em>Queue </em>container is a replica of the queue data structure in C++, Unlike stack, in the queue container, there are two ends, i.e. front, and back.
In the code above to be able to use used stack and queue, we included the headers #include <stack> and#include <queue>.
Answer:
IN MY PROFILE
Explanation:
I HAVE AWNSERED THIS QUESTION THROUGHOUT MY BEING HERE PLEASE DO NOT BE AFRAID TO CLICK ON MY PROFILE AND FIND THE ANSWER
Answer:
The answer is creators.
Explanation:
<em>Creators are contributors capable to inovate and share creative ideas. They are not necessarily advertising and marketing professionals. They can have art, design, music, and other backgrounds, but the most relevant characteristic of this group of people is their creativity.</em>
<em>They are behind all the great ideas we see at the most relevant social medias nowadays.</em>
Answer:
Option B
Explanation:
The top most reason for the bankruptcy of many small businesses is the inaccurate credit management.
Credit management deals with granting credits, recovery of credit granted on its due time, terms of grant of credits, other related issues and to make sure it comply with the company's policies.
The main aim of credit management is to work for the improvement of profits generated and the revenues within a bank or a firm.
Therefore, any inaccuracy in these will result in major set back to many small businesses.