<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: C++ program to implement circular queue using array	</title>
	<atom:link href="https://studentprojects.in/software-development/cpp/cpp-programs/cpp-advanced/c-program-to-implement-circular-queue-using-array/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in/software-development/cpp/cpp-programs/cpp-advanced/c-program-to-implement-circular-queue-using-array/</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Wed, 02 Sep 2015 20:22:39 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>
	<item>
		<title>
		By: hina		</title>
		<link>https://studentprojects.in/software-development/cpp/cpp-programs/cpp-advanced/c-program-to-implement-circular-queue-using-array/comment-page-1/#comment-128233</link>

		<dc:creator><![CDATA[hina]]></dc:creator>
		<pubDate>Wed, 02 Sep 2015 20:22:39 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=1269#comment-128233</guid>

					<description><![CDATA[in above comment i read that there is no concept of Full...   but i run it  There is concept of IS FULL... just type  Int  in place of void and run it,,,]]></description>
			<content:encoded><![CDATA[<p>in above comment i read that there is no concept of Full&#8230;   but i run it  There is concept of IS FULL&#8230; just type  Int  in place of void and run it,,,</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: iqra		</title>
		<link>https://studentprojects.in/software-development/cpp/cpp-programs/cpp-advanced/c-program-to-implement-circular-queue-using-array/comment-page-1/#comment-128232</link>

		<dc:creator><![CDATA[iqra]]></dc:creator>
		<pubDate>Wed, 02 Sep 2015 20:21:38 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=1269#comment-128232</guid>

					<description><![CDATA[in above comment i read that there is no concept of Full...   but i run it  There is concept of IS FULL... just type  Int  in place of void and run it,,,]]></description>
			<content:encoded><![CDATA[<p>in above comment i read that there is no concept of Full&#8230;   but i run it  There is concept of IS FULL&#8230; just type  Int  in place of void and run it,,,</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: iqra		</title>
		<link>https://studentprojects.in/software-development/cpp/cpp-programs/cpp-advanced/c-program-to-implement-circular-queue-using-array/comment-page-1/#comment-128231</link>

		<dc:creator><![CDATA[iqra]]></dc:creator>
		<pubDate>Wed, 02 Sep 2015 20:19:29 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=1269#comment-128231</guid>

					<description><![CDATA[the above code is correct 100%. just one mistake there , in void main( ). type int main () . then program will run correctly.. i run it .. it works with all operation like is Full , is Empty , Dequeue and enqueue etc.. it works all .. in c-Free or Dev]]></description>
			<content:encoded><![CDATA[<p>the above code is correct 100%. just one mistake there , in void main( ). type int main () . then program will run correctly.. i run it .. it works with all operation like is Full , is Empty , Dequeue and enqueue etc.. it works all .. in c-Free or Dev</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: C++ Program Using Arrays Functions		</title>
		<link>https://studentprojects.in/software-development/cpp/cpp-programs/cpp-advanced/c-program-to-implement-circular-queue-using-array/comment-page-1/#comment-69730</link>

		<dc:creator><![CDATA[C++ Program Using Arrays Functions]]></dc:creator>
		<pubDate>Sat, 10 Jan 2015 19:39:39 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=1269#comment-69730</guid>

					<description><![CDATA[[&#8230;] PDF File Name: C++ program to implement circular queue using array Source: studentprojects.in  »  DOWNLOAD  «  [&#8230;]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] PDF File Name: C++ program to implement circular queue using array Source: studentprojects.in  »  DOWNLOAD  «  [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: edzel		</title>
		<link>https://studentprojects.in/software-development/cpp/cpp-programs/cpp-advanced/c-program-to-implement-circular-queue-using-array/comment-page-1/#comment-26605</link>

		<dc:creator><![CDATA[edzel]]></dc:creator>
		<pubDate>Tue, 16 Sep 2014 11:22:20 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=1269#comment-26605</guid>

					<description><![CDATA[I Hope , This Code will Help you!!! :)]]></description>
			<content:encoded><![CDATA[<p>I Hope , This Code will Help you!!! 🙂</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: edzel		</title>
		<link>https://studentprojects.in/software-development/cpp/cpp-programs/cpp-advanced/c-program-to-implement-circular-queue-using-array/comment-page-1/#comment-26604</link>

		<dc:creator><![CDATA[edzel]]></dc:creator>
		<pubDate>Tue, 16 Sep 2014 11:19:59 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=1269#comment-26604</guid>

					<description><![CDATA[/*
 * C++ Program to Implement Circular Queue
 */
#include 
#define MAX 5
using namespace std;
/*
 * Class Circular Queue
 */
class Circular_Queue
{
    private:
        int *cqueue_arr;
        int front, rear;
    public:
        Circular_Queue()
        {
            cqueue_arr = new int [MAX];
            rear = front = -1;
        }
        /*
         * Insert into Circular Queue
         */
        void insert(int item)
        {
            if ((front == 0 &#038;&#038; rear == MAX-1) &#124;&#124; (front == rear+1))
            {
                cout&#060;&#060;&#034;Queue Overflow \n&#034;;
                return;
            }
            if (front == -1)
            {
                front = 0;
                rear = 0;
            }
            else
            {
                if (rear == MAX - 1)
                    rear = 0;
                else
                    rear = rear + 1;
            }
            cqueue_arr[rear] = item ;
        }
        /*
         * Delete from Circular Queue
         */
        void del()
        {
            if (front == -1)
            {
                cout&#060;&#060;&#034;Queue Underflow\n&#034;;
                return ;
            }
            cout&#060;&#060;&#034;Element deleted from queue is : &#034;&#060;&#060;cqueue_arr[front]&#060;&#060;endl;
            if (front == rear)
            {
                front = -1;
                rear = -1;
            }
            else
            {
                if (front == MAX - 1)
                    front = 0;
                else
                    front = front + 1;
            }
        }
        /*
         * Display Circular Queue
         */
        void display()
        {
            int front_pos = front, rear_pos = rear;
            if (front == -1)
            {
                cout&#060;&#060;&#034;Queue is empty\n&#034;;
                return;
            }
            cout&#060;&#060;&#034;Queue elements :\n&#034;;
            if (front_pos &#060;= rear_pos)
            {
                while (front_pos &#060;= rear_pos)
                {
                    cout&#060;&#060;cqueue_arr[front_pos]&#060;&#060;&#034;  &#034;;
                    front_pos++;
                }
            }
            else
            {
                while (front_pos &#060;= MAX - 1)
                {
                    cout&#060;&#060;cqueue_arr[front_pos]&#060;&#060;&#034;  &#034;;
                    front_pos++;
                }
                front_pos = 0;
                while (front_pos &#060;= rear_pos)
                {
                    cout&#060;&#060;cqueue_arr[front_pos]&#060;&#060;&#034;  &#034;;
                    front_pos++;
                }
            }
            cout&#060;&#060;endl;
        }
};
/*
 * Main
 */
int main()
{
    int choice, item;
    Circular_Queue cq;
    do
    {
        cout&#060;&#060;&#034;1.Insert\n&#034;;
        cout&#060;&#060;&#034;2.Delete\n&#034;;
        cout&#060;&#060;&#034;3.Display\n&#034;;
        cout&#060;&#060;&#034;4.Quit\n&#034;;
        cout&#060;&#062;choice;
        switch(choice)
        {
        case 1:
            cout&#060;&#062;item;	
            cq.insert(item);
	    break;
	case 2:
            cq.del();
	    break;
        case 3:
            cq.display();
	    break;
	case 4:
	    break;
	default:
	    cout&#060;&#060;&#034;Wrong choice\n&#034;;
	}/*End of switch*/
    }
    while(choice != 4);
    return 0;
}]]></description>
			<content:encoded><![CDATA[<p>/*<br />
 * C++ Program to Implement Circular Queue<br />
 */<br />
#include<br />
#define MAX 5<br />
using namespace std;<br />
/*<br />
 * Class Circular Queue<br />
 */<br />
class Circular_Queue<br />
{<br />
    private:<br />
        int *cqueue_arr;<br />
        int front, rear;<br />
    public:<br />
        Circular_Queue()<br />
        {<br />
            cqueue_arr = new int [MAX];<br />
            rear = front = -1;<br />
        }<br />
        /*<br />
         * Insert into Circular Queue<br />
         */<br />
        void insert(int item)<br />
        {<br />
            if ((front == 0 &amp;&amp; rear == MAX-1) || (front == rear+1))<br />
            {<br />
                cout&lt;&lt;&quot;Queue Overflow \n&quot;;<br />
                return;<br />
            }<br />
            if (front == -1)<br />
            {<br />
                front = 0;<br />
                rear = 0;<br />
            }<br />
            else<br />
            {<br />
                if (rear == MAX &#8211; 1)<br />
                    rear = 0;<br />
                else<br />
                    rear = rear + 1;<br />
            }<br />
            cqueue_arr[rear] = item ;<br />
        }<br />
        /*<br />
         * Delete from Circular Queue<br />
         */<br />
        void del()<br />
        {<br />
            if (front == -1)<br />
            {<br />
                cout&lt;&lt;&quot;Queue Underflow\n&quot;;<br />
                return ;<br />
            }<br />
            cout&lt;&lt;&quot;Element deleted from queue is : &quot;&lt;&lt;cqueue_arr[front]&lt;&lt;endl;<br />
            if (front == rear)<br />
            {<br />
                front = -1;<br />
                rear = -1;<br />
            }<br />
            else<br />
            {<br />
                if (front == MAX &#8211; 1)<br />
                    front = 0;<br />
                else<br />
                    front = front + 1;<br />
            }<br />
        }<br />
        /*<br />
         * Display Circular Queue<br />
         */<br />
        void display()<br />
        {<br />
            int front_pos = front, rear_pos = rear;<br />
            if (front == -1)<br />
            {<br />
                cout&lt;&lt;&quot;Queue is empty\n&quot;;<br />
                return;<br />
            }<br />
            cout&lt;&lt;&quot;Queue elements :\n&quot;;<br />
            if (front_pos &lt;= rear_pos)<br />
            {<br />
                while (front_pos &lt;= rear_pos)<br />
                {<br />
                    cout&lt;&lt;cqueue_arr[front_pos]&lt;&lt;&quot;  &quot;;<br />
                    front_pos++;<br />
                }<br />
            }<br />
            else<br />
            {<br />
                while (front_pos &lt;= MAX &#8211; 1)<br />
                {<br />
                    cout&lt;&lt;cqueue_arr[front_pos]&lt;&lt;&quot;  &quot;;<br />
                    front_pos++;<br />
                }<br />
                front_pos = 0;<br />
                while (front_pos &lt;= rear_pos)<br />
                {<br />
                    cout&lt;&lt;cqueue_arr[front_pos]&lt;&lt;&quot;  &quot;;<br />
                    front_pos++;<br />
                }<br />
            }<br />
            cout&lt;&lt;endl;<br />
        }<br />
};<br />
/*<br />
 * Main<br />
 */<br />
int main()<br />
{<br />
    int choice, item;<br />
    Circular_Queue cq;<br />
    do<br />
    {<br />
        cout&lt;&lt;&quot;1.Insert\n&quot;;<br />
        cout&lt;&lt;&quot;2.Delete\n&quot;;<br />
        cout&lt;&lt;&quot;3.Display\n&quot;;<br />
        cout&lt;&lt;&quot;4.Quit\n&quot;;<br />
        cout&lt;&gt;choice;<br />
        switch(choice)<br />
        {<br />
        case 1:<br />
            cout&lt;&gt;item;<br />
            cq.insert(item);<br />
	    break;<br />
	case 2:<br />
            cq.del();<br />
	    break;<br />
        case 3:<br />
            cq.display();<br />
	    break;<br />
	case 4:<br />
	    break;<br />
	default:<br />
	    cout&lt;&lt;&quot;Wrong choice\n&quot;;<br />
	}/*End of switch*/<br />
    }<br />
    while(choice != 4);<br />
    return 0;<br />
}</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: dasa		</title>
		<link>https://studentprojects.in/software-development/cpp/cpp-programs/cpp-advanced/c-program-to-implement-circular-queue-using-array/comment-page-1/#comment-9594</link>

		<dc:creator><![CDATA[dasa]]></dc:creator>
		<pubDate>Mon, 11 Mar 2013 04:36:23 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=1269#comment-9594</guid>

					<description><![CDATA[bkwass mariiii hoi haiiiiiiiiiiiiiiiiii]]></description>
			<content:encoded><![CDATA[<p>bkwass mariiii hoi haiiiiiiiiiiiiiiiiii</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: unknown		</title>
		<link>https://studentprojects.in/software-development/cpp/cpp-programs/cpp-advanced/c-program-to-implement-circular-queue-using-array/comment-page-1/#comment-9305</link>

		<dc:creator><![CDATA[unknown]]></dc:creator>
		<pubDate>Sun, 09 Dec 2012 13:47:36 +0000</pubDate>
		<guid isPermaLink="false">http://studentprojects.in/?p=1269#comment-9305</guid>

					<description><![CDATA[this code is wrong it doesn&#039;t move the item inside it]]></description>
			<content:encoded><![CDATA[<p>this code is wrong it doesn&#8217;t move the item inside it</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
