Words

Description:

how to write a c++ program that reads a sequence of words that end with "end". Then print the number of words followed by the word itself by using queue. Do not push end to the queue..

Input format; The first line is an integer N represents the number of test case. Followed by N lines, where each line consists of sequence of words that end with "end"

output format:
<number of words> : <space><sequence of words that are separated by a space>

Posted by:

Fahim

Post date:

12-07-2015

Category:

Programming


Download link: words2.rar

upload program



    This website intents to provide free and high quality tutorials, examples, exercises and solutions, questions and answers of programming and scripting languages:
    C, C++, C#, Java, VB.NET, Python, VBA,PHP & Mysql, SQL, JSP, ASP.NET,HTML, CSS, JQuery, JavaScript and other applications such as MS Excel, MS Access, and MS Word. However, we don't guarantee all things of the web are accurate. If you find any error, please report it then we will take actions to correct it as soon as possible.