tag:blogger.com,1999:blog-5151621111105694623.post2245813346365486310..comments2023-06-21T13:10:59.834+04:00Comments on CanvaS: Sign Languagecanvashttp://www.blogger.com/profile/13582827505584227408noreply@blogger.comBlogger11125tag:blogger.com,1999:blog-5151621111105694623.post-74690663140095009532014-01-26T11:17:07.652+04:002014-01-26T11:17:07.652+04:00//Circular queue
#include
#include
#include
#inclu...//Circular queue<br />#include<br />#include<br />#include<br />#include<br /><br /><br />class circularqueue<br />{<br /> int a[50], front, rear,n;<br /> public:<br /> circularqueue()<br /> {<br /> cout<<"Enter the number of elements to create an array with\n";<br /> cin>>n;<br /> front=-1;<br /> rear=-1;<br /> clrscr();<br /> }<br /> void geta()<br /> {<br /> cout<<"Enter the element to be inserted\n";<br /> int c;<br /> cin>>c;<br /> if((rear==front-1)||((rear==n-1)&&(front==0)))<br /> {<br /> cout<<"Element cannot be inserted as the queue is full\n";<br /> getch();<br /> }<br /> else if(front==-1)<br /> {<br /> front=rear=0;<br /> a[rear]=c;<br /> cout<<"Queue was empty and element was inserted\n";<br /> getch();<br /> }<br /> else if(rear==n-1)<br /> {<br /> rear=0;<br /> a[rear]=c;<br /> cout<<"Rear was at the end. It was moved to zero and element was inserted\n";<br /> getch();<br /> }<br /> else<br /> {<br /> rear++;<br /> a[rear]=c;<br /> cout<<"Rear was incremented and then element was inserted\n";<br /> getch();<br /> }<br /> }<br /> void dele()<br /> {<br /> if(front==-1)<br /> {<br /> cout<<"Queue is empty. Delete operation cannot be performed.\n";<br /> getch();<br /> }<br /> else if((front==rear-1)||((front==n-1)&&(rear==0)))<br /> {<br /> rear=front=-1;<br /> cout<<"Queue was completely emptied\n";<br /> getch();<br /> }<br /> else if(front==n-1)<br /> {<br /> front=0;<br /> cout<<"Front was at the end of the array and it was moved to 0\n";<br /> getch();<br /> }<br /> else<br /> {<br /> front++;<br /> cout<<"Front was incremented\n";<br /> getch();<br /> }<br /> }<br /> void disp()<br /> { int i=front;<br /> if(front==-1)<br /> {<br /> cout<<"No elements to display\n";<br /> getch();<br /> }<br /> else if(rearrear)<br /> {<br /> cout<<"Front is greater than rear. Displaying elements from front till end and then from beginning till rear.\n";<br /> while(i>h;<br /> switch(h)<br /> {<br /> case 1:cq.geta(); break;<br /> case 2:cq.dele(); break;<br /> case 3:cq.disp(); break;<br /> default:exit(0);<br /> }<br /> }while(1);<br />}<br />Anonymoushttps://www.blogger.com/profile/17162415715735432907noreply@blogger.comtag:blogger.com,1999:blog-5151621111105694623.post-67485167508376745872014-01-26T11:17:06.742+04:002014-01-26T11:17:06.742+04:00//Circular queue
#include
#include
#include
#inclu...//Circular queue<br />#include<br />#include<br />#include<br />#include<br /><br /><br />class circularqueue<br />{<br /> int a[50], front, rear,n;<br /> public:<br /> circularqueue()<br /> {<br /> cout<<"Enter the number of elements to create an array with\n";<br /> cin>>n;<br /> front=-1;<br /> rear=-1;<br /> clrscr();<br /> }<br /> void geta()<br /> {<br /> cout<<"Enter the element to be inserted\n";<br /> int c;<br /> cin>>c;<br /> if((rear==front-1)||((rear==n-1)&&(front==0)))<br /> {<br /> cout<<"Element cannot be inserted as the queue is full\n";<br /> getch();<br /> }<br /> else if(front==-1)<br /> {<br /> front=rear=0;<br /> a[rear]=c;<br /> cout<<"Queue was empty and element was inserted\n";<br /> getch();<br /> }<br /> else if(rear==n-1)<br /> {<br /> rear=0;<br /> a[rear]=c;<br /> cout<<"Rear was at the end. It was moved to zero and element was inserted\n";<br /> getch();<br /> }<br /> else<br /> {<br /> rear++;<br /> a[rear]=c;<br /> cout<<"Rear was incremented and then element was inserted\n";<br /> getch();<br /> }<br /> }<br /> void dele()<br /> {<br /> if(front==-1)<br /> {<br /> cout<<"Queue is empty. Delete operation cannot be performed.\n";<br /> getch();<br /> }<br /> else if((front==rear-1)||((front==n-1)&&(rear==0)))<br /> {<br /> rear=front=-1;<br /> cout<<"Queue was completely emptied\n";<br /> getch();<br /> }<br /> else if(front==n-1)<br /> {<br /> front=0;<br /> cout<<"Front was at the end of the array and it was moved to 0\n";<br /> getch();<br /> }<br /> else<br /> {<br /> front++;<br /> cout<<"Front was incremented\n";<br /> getch();<br /> }<br /> }<br /> void disp()<br /> { int i=front;<br /> if(front==-1)<br /> {<br /> cout<<"No elements to display\n";<br /> getch();<br /> }<br /> else if(rearrear)<br /> {<br /> cout<<"Front is greater than rear. Displaying elements from front till end and then from beginning till rear.\n";<br /> while(i>h;<br /> switch(h)<br /> {<br /> case 1:cq.geta(); break;<br /> case 2:cq.dele(); break;<br /> case 3:cq.disp(); break;<br /> default:exit(0);<br /> }<br /> }while(1);<br />}<br />Anonymoushttps://www.blogger.com/profile/17162415715735432907noreply@blogger.comtag:blogger.com,1999:blog-5151621111105694623.post-13328087527368743732011-04-19T07:53:33.848+04:002011-04-19T07:53:33.848+04:00hai thomman.
varakale koottu pidikkukka, ethra ras...hai thomman.<br />varakale koottu pidikkukka, ethra rasakaramanu.very creative. keep it up.Nirakkaazhchahttps://www.blogger.com/profile/04125507037792500444noreply@blogger.comtag:blogger.com,1999:blog-5151621111105694623.post-16620952546307426452011-04-19T07:50:16.212+04:002011-04-19T07:50:16.212+04:00This comment has been removed by the author.Nirakkaazhchahttps://www.blogger.com/profile/04125507037792500444noreply@blogger.comtag:blogger.com,1999:blog-5151621111105694623.post-21749350388498206382011-04-18T22:23:19.168+04:002011-04-18T22:23:19.168+04:00Thanks Mathew NavalThanks Mathew NavalSapna Anu B.Georgehttps://www.blogger.com/profile/08562137146285955074noreply@blogger.comtag:blogger.com,1999:blog-5151621111105694623.post-38536357171723448802011-04-18T19:17:18.240+04:002011-04-18T19:17:18.240+04:00Beautiful paintings.Beautiful paintings.NAVAL LANGAhttps://www.blogger.com/profile/12954455340860119085noreply@blogger.comtag:blogger.com,1999:blog-5151621111105694623.post-81745089843310417672011-04-18T17:23:44.734+04:002011-04-18T17:23:44.734+04:00Nice creations Dikshith.
Go ahead and try to impro...Nice creations Dikshith.<br />Go ahead and try to improve your creativity<br />day by day. Best Wishes.മഴത്തുള്ളികള്http://www.mazhathullikal.comnoreply@blogger.comtag:blogger.com,1999:blog-5151621111105694623.post-15234102014193059642011-04-18T17:10:18.816+04:002011-04-18T17:10:18.816+04:00Thanks Dear Dunia Berkarya...............its my s...Thanks Dear Dunia Berkarya...............its my son, but thanks for the good wordsSapna Anu B.Georgehttps://www.blogger.com/profile/08562137146285955074noreply@blogger.comtag:blogger.com,1999:blog-5151621111105694623.post-81588785819819255162011-04-18T16:08:32.293+04:002011-04-18T16:08:32.293+04:00Very creative, thanks friend, fraternal greetings ...Very creative, thanks friend, fraternal greetings and best friend visited the house.Anonymoushttps://www.blogger.com/profile/05335453900883643759noreply@blogger.comtag:blogger.com,1999:blog-5151621111105694623.post-69650840694666307142011-01-27T12:58:37.544+04:002011-01-27T12:58:37.544+04:00good picture, you always have a brilliant idea to ...good picture, you always have a brilliant idea to develop the progress to success, thank you friend, hope you are also happy, greeting from Indonesian bloggers.Dunia Berkaryahttp://duniaberkarya.blogspot.com/noreply@blogger.comtag:blogger.com,1999:blog-5151621111105694623.post-53899464831860491932010-07-27T10:56:07.962+04:002010-07-27T10:56:07.962+04:00mon,u r very creative-keep doing
best wishesmon,u r very creative-keep doing<br /><br />best wishesjyo.mdshttps://www.blogger.com/profile/01241416461862181323noreply@blogger.com