<?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: Graphics in C Language</title>
	<atom:link href="http://www.mycplus.com/tutorials/c-programming-tutorials/graphics-programming/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.mycplus.com/tutorials/c-programming-tutorials/graphics-programming/</link>
	<description>C and C++ Programming Tutorials and Source code</description>
	<lastBuildDate>Sat, 30 Mar 2013 10:31:50 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.1</generator>
	<item>
		<title>By: smartanu</title>
		<link>http://www.mycplus.com/tutorials/c-programming-tutorials/graphics-programming/comment-page-3/#comment-21741</link>
		<dc:creator>smartanu</dc:creator>
		<pubDate>Mon, 13 Aug 2012 18:28:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.mycplus.com/?p=358#comment-21741</guid>
		<description>i using a tc3 to do a graphical in C..this error be occur what should i do…
#include
#include
#include
#include
#include
void draw(int x1,int y1,int x2,int y2);
void main()
{

    int x1,y1,x2,y2;
    int gdriver=DETECT,gmode,errorcode;
    initgraph(&amp;gdriver,&amp;gmode,&quot;C:\\TC\\BGI&quot;);
    printf(&quot;Enter the first point \n&quot;);
    scanf(&quot;%d%d&quot;,&amp;x1,&amp;y1);
    printf(&quot;\n\n Enter the second point&quot;);
    scanf(&quot;%d%d&quot;,&amp;x2,&amp;y2);
    printf(&quot;\n\n The line is shown below&quot;);
    draw(x1,y1,x2,y2);
    getch();
}
void draw(int x1,int y1,int x2,int y2)
{
  int x,y,e,i,dx,dy,a;
  x=x1;
  y=y1;
  dx=x2-x1;
  dy=y2-y1;
  a=dx;
  dx=dy;
  dy=a;
  e=2*dy-dx;
  for(i=1;i0)
    {
      x=x+1;
      e=e-2*dx;
    }
    y=y+1;
    e=e+2*dy;
  }
  getch();
}
when i run this programme getting error
Linker error:undefined symbol  _putpixel in module myfile name.
i have executed this programme in lab pc.</description>
		<content:encoded><![CDATA[<p>i using a tc3 to do a graphical in C..this error be occur what should i do…<br />
#include<br />
#include<br />
#include<br />
#include<br />
#include<br />
void draw(int x1,int y1,int x2,int y2);<br />
void main()<br />
{</p>
<p>    int x1,y1,x2,y2;<br />
    int gdriver=DETECT,gmode,errorcode;<br />
    initgraph(&amp;gdriver,&amp;gmode,&#8221;C:\\TC\\BGI&#8221;);<br />
    printf(&#8220;Enter the first point \n&#8221;);<br />
    scanf(&#8220;%d%d&#8221;,&amp;x1,&amp;y1);<br />
    printf(&#8220;\n\n Enter the second point&#8221;);<br />
    scanf(&#8220;%d%d&#8221;,&amp;x2,&amp;y2);<br />
    printf(&#8220;\n\n The line is shown below&#8221;);<br />
    draw(x1,y1,x2,y2);<br />
    getch();<br />
}<br />
void draw(int x1,int y1,int x2,int y2)<br />
{<br />
  int x,y,e,i,dx,dy,a;<br />
  x=x1;<br />
  y=y1;<br />
  dx=x2-x1;<br />
  dy=y2-y1;<br />
  a=dx;<br />
  dx=dy;<br />
  dy=a;<br />
  e=2*dy-dx;<br />
  for(i=1;i0)<br />
    {<br />
      x=x+1;<br />
      e=e-2*dx;<br />
    }<br />
    y=y+1;<br />
    e=e+2*dy;<br />
  }<br />
  getch();<br />
}<br />
when i run this programme getting error<br />
Linker error:undefined symbol  _putpixel in module myfile name.<br />
i have executed this programme in lab pc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: suryana</title>
		<link>http://www.mycplus.com/tutorials/c-programming-tutorials/graphics-programming/comment-page-3/#comment-21575</link>
		<dc:creator>suryana</dc:creator>
		<pubDate>Wed, 09 May 2012 06:45:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.mycplus.com/?p=358#comment-21575</guid>
		<description>i using a turbo c++ to do a graphical in C..this error be occur what should i do...
Fatal ..\INCLUDE\GRAPHICS.H 19: Error directive: BGI graphics not supported under Windows</description>
		<content:encoded><![CDATA[<p>i using a turbo c++ to do a graphical in C..this error be occur what should i do&#8230;<br />
Fatal ..\INCLUDE\GRAPHICS.H 19: Error directive: BGI graphics not supported under Windows</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: suryana</title>
		<link>http://www.mycplus.com/tutorials/c-programming-tutorials/graphics-programming/comment-page-3/#comment-21574</link>
		<dc:creator>suryana</dc:creator>
		<pubDate>Wed, 09 May 2012 06:40:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.mycplus.com/?p=358#comment-21574</guid>
		<description>can u give a tutorial about this.

Project Name: Implementation of Recursion and Tracing its Stack (Graphically)

Description: This project will implement and trace recursive functions graphically.</description>
		<content:encoded><![CDATA[<p>can u give a tutorial about this.</p>
<p>Project Name: Implementation of Recursion and Tracing its Stack (Graphically)</p>
<p>Description: This project will implement and trace recursive functions graphically.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sadi</title>
		<link>http://www.mycplus.com/tutorials/c-programming-tutorials/graphics-programming/comment-page-3/#comment-20235</link>
		<dc:creator>sadi</dc:creator>
		<pubDate>Thu, 06 Oct 2011 05:20:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.mycplus.com/?p=358#comment-20235</guid>
		<description>I need a program in computer graphics using c language. please write a program for moving a person with flag.thank you.</description>
		<content:encoded><![CDATA[<p>I need a program in computer graphics using c language. please write a program for moving a person with flag.thank you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: vivek</title>
		<link>http://www.mycplus.com/tutorials/c-programming-tutorials/graphics-programming/comment-page-3/#comment-20179</link>
		<dc:creator>vivek</dc:creator>
		<pubDate>Tue, 13 Sep 2011 10:41:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.mycplus.com/?p=358#comment-20179</guid>
		<description>took your cursur to the header file in the c program and then press 
&quot;ctrl+f1&quot; then u found all the functions of that header file</description>
		<content:encoded><![CDATA[<p>took your cursur to the header file in the c program and then press<br />
&#8220;ctrl+f1&#8243; then u found all the functions of that header file</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: suchit</title>
		<link>http://www.mycplus.com/tutorials/c-programming-tutorials/graphics-programming/comment-page-3/#comment-19671</link>
		<dc:creator>suchit</dc:creator>
		<pubDate>Tue, 15 Feb 2011 21:32:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.mycplus.com/?p=358#comment-19671</guid>
		<description>could anyone help me to get a code for conversion of a digital image file into the matrix containing the pixels values of the image..</description>
		<content:encoded><![CDATA[<p>could anyone help me to get a code for conversion of a digital image file into the matrix containing the pixels values of the image..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: juhihumera</title>
		<link>http://www.mycplus.com/tutorials/c-programming-tutorials/graphics-programming/comment-page-3/#comment-19638</link>
		<dc:creator>juhihumera</dc:creator>
		<pubDate>Sun, 26 Sep 2010 14:54:44 +0000</pubDate>
		<guid isPermaLink="false">http://www.mycplus.com/?p=358#comment-19638</guid>
		<description>can i have the list of all the funcions in c graphics......</description>
		<content:encoded><![CDATA[<p>can i have the list of all the funcions in c graphics&#8230;&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ankit</title>
		<link>http://www.mycplus.com/tutorials/c-programming-tutorials/graphics-programming/comment-page-3/#comment-19609</link>
		<dc:creator>Ankit</dc:creator>
		<pubDate>Sun, 11 Apr 2010 13:57:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.mycplus.com/?p=358#comment-19609</guid>
		<description>//This is a game cross and nought( Zero Katta) in c++.


void show_game_box();
char m[3][3];
void main()
{
	int p,q;
	char ans;
	cout&lt;&lt;&quot;\t\tCROSS &amp; NOUGHT GAME\n&quot;;
	do
	{
		for(p=1;p&lt;=3;p++)
		{
			for(q=1;q&lt;=3;q++)
			{
				m[p][q]=&#039;&#039;;
			}
		}
		int i,j,sum=0;
		while(sum&lt;10)
		{
		if(sum==0)
		show_game_box();
		cout&lt;&lt;&quot;\n\n\nPlayer 1 is&#039;0&#039;\n&quot;;
		cout&lt;&lt;&quot;Player 1&#039;s turn\n&quot;;
		cout&lt;&gt;i;
		cout&lt;&gt;j;
		for(;(i&gt;3)&#124;&#124;(j&lt;1)&#124;&#124;(&#039;X&#039;==m[i][j])&#124;&#124;(&#039;0&#039;==m[i][j]);)
		{
			cout&lt;&lt;&quot;Sorry you entered wrong choice\n&quot;;
			cout&lt;&lt;&quot;Enter your choice again\n&quot;;
			cout&lt;&gt;i;
			cout&lt;&gt;j;
		}
		m[i][j]=&#039;0&#039;;
		sum++;
		show_game_box();
		if((m[1][1]==&#039;0&#039;)&amp;&amp;(m[1][1]==m[1][2])&amp;&amp;(m[1][1]==m[1][3]))
		{
			cout&lt;&lt;&quot;CONGRATULATIONS!!!!!!!!!!\n&quot;;
			cout&lt;&lt;&quot;player 1 wins the game\n&quot;;
			break;
		}
		if((m[2][1]==&#039;0&#039;)&amp;&amp;(m[2][1]==m[2][2])&amp;&amp;(m[2][1]==m[2][3]))
		{
			cout&lt;&lt;&quot;CONGRATULATIONS!!!!!!!!!!\n&quot;;
			cout&lt;&lt;&quot;player 1 wins the game\n&quot;;
			break;
		}
		if((m[3][1]==&#039;0&#039;)&amp;&amp;(m[3][1]==m[3][2])&amp;&amp;(m[3][1]==m[3][3]))
		{
			cout&lt;&lt;&quot;CONGRATULATIONS!!!!!!!!!!\n&quot;;
			cout&lt;&lt;&quot;player 1 wins the game\n&quot;;
			break;
		}
		if((m[1][1]==&#039;0&#039;)&amp;&amp;(m[1][1]==m[2][2])&amp;&amp;(m[1][1]==m[3][3]))
		{
			cout&lt;&lt;&quot;CONGRATULATIONS!!!!!!!!!!\n&quot;;
			cout&lt;&lt;&quot;player 1 wins the game\n&quot;;
			break;
		}
		if((m[1][3]==&#039;0&#039;)&amp;&amp;(m[1][3]==m[2][2])&amp;&amp;(m[1][1]==m[3][1]))
		{
			cout&lt;&lt;&quot;CONGRATULATIONS!!!!!!!!!!\n&quot;;
			cout&lt;&lt;&quot;player 1 wins the game\n&quot;;
			break;
		}
		if((m[1][1]==&#039;0&#039;)&amp;&amp;(m[1][1]==m[2][1])&amp;&amp;(m[1][1]==m[3][1]))
		{
			cout&lt;&lt;&quot;CONGRATULATIONS!!!!!!!!!!\n&quot;;
			cout&lt;&lt;&quot;player 1 wins the game\n&quot;;
			break;
		}
		if((m[1][2]==&#039;0&#039;)&amp;&amp;(m[1][2]==m[2][2])&amp;&amp;(m[1][2]==m[3][2]))
		{
			cout&lt;&lt;&quot;CONGRATULATIONS!!!!!!!!!!\n&quot;;
			cout&lt;&lt;&quot;player 1 wins the game\n&quot;;
			break;
		}
		if((m[1][3]==&#039;0&#039;)&amp;&amp;(m[1][3]==m[2][3])&amp;&amp;(m[1][1]==m[3][3]))
		{
			cout&lt;&lt;&quot;CONGRATULATIONS!!!!!!!!!!\n&quot;;
			cout&lt;&lt;&quot;player 1 wins the game\n&quot;;
			break;
		}
		if(sum==9)
		{
			cout&lt;&lt;&quot;\t\tHURRAY!!!!! The game is over\n&quot;;
			cout&lt;&lt;&quot;\t\tNO ONE WINS\n&quot;;
			cout&lt;&lt;&quot;The game is draw\n&quot;;
			break;
		}
		cout&lt;&lt;&quot;\n\n\nPlayer 2 is&#039;X&#039;\n&quot;;
		cout&lt;&lt;&quot;Player 2&#039;s turn\n&quot;;
		cout&lt;&gt;i;
		cout&lt;&gt;j;
		for(;(i&gt;3)&#124;&#124;(j&lt;1)&#124;&#124;(&#039;X&#039;==m[i][j])&#124;&#124;(&#039;0&#039;==m[i][j]);)
		{
			cout&lt;&lt;&quot;Sorry you entered wrong choice\n&quot;;
			cout&lt;&lt;&quot;Enter your choice again\n&quot;;
			cout&lt;&gt;i;
			cout&lt;&gt;j;
		}
		m[i][j]=&#039;X&#039;;
		sum++;
		show_game_box();
		if((m[1][1]==&#039;X&#039;)&amp;&amp;(m[1][1]==m[1][2])&amp;&amp;(m[1][1]==m[1][3]))
		{
			cout&lt;&lt;&quot;CONGRATULATIONS!!!!!!!!!!\n&quot;;
			cout&lt;&lt;&quot;player 2 wins the game\n&quot;;
			break;
		}
		if((m[2][1]==&#039;X&#039;)&amp;&amp;(m[2][1]==m[2][2])&amp;&amp;(m[2][1]==m[2][3]))
		{
			cout&lt;&lt;&quot;CONGRATULATIONS!!!!!!!!!!\n&quot;;
			cout&lt;&lt;&quot;player 2 wins the game\n&quot;;
			break;
		}
		if((m[3][1]==&#039;X&#039;)&amp;&amp;(m[3][1]==m[3][2])&amp;&amp;(m[3][1]==m[3][3]))
		{
			cout&lt;&lt;&quot;CONGRATULATIONS!!!!!!!!!!\n&quot;;
			cout&lt;&lt;&quot;player 2 wins the game\n&quot;;
			break;
		}
		if((m[1][1]==&#039;X&#039;)&amp;&amp;(m[1][1]==m[2][2])&amp;&amp;(m[1][1]==m[3][3]))
		{
			cout&lt;&lt;&quot;CONGRATULATIONS!!!!!!!!!!\n&quot;;
			cout&lt;&lt;&quot;player 2 wins the game\n&quot;;
			break;
		}
		if((m[1][3]==&#039;X&#039;)&amp;&amp;(m[1][3]==m[2][2])&amp;&amp;(m[1][1]==m[3][1]))
		{
			cout&lt;&lt;&quot;CONGRATULATIONS!!!!!!!!!!\n&quot;;
			cout&lt;&lt;&quot;player 2 wins the game\n&quot;;
			break;
		}
		if((m[1][1]==&#039;X&#039;)&amp;&amp;(m[1][1]==m[2][1])&amp;&amp;(m[1][1]==m[3][1]))
		{
			cout&lt;&lt;&quot;CONGRATULATIONS!!!!!!!!!!\n&quot;;
			cout&lt;&lt;&quot;player 2 wins the game\n&quot;;
			break;
		}
		if((m[1][2]==&#039;X&#039;)&amp;&amp;(m[1][2]==m[2][2])&amp;&amp;(m[1][2]==m[3][2]))
		{
			cout&lt;&lt;&quot;CONGRATULATIONS!!!!!!!!!!\n&quot;;
			cout&lt;&lt;&quot;player 2 wins the game\n&quot;;
			break;
		}
		if((m[1][3]==&#039;X&#039;)&amp;&amp;(m[1][3]==m[2][3])&amp;&amp;(m[1][1]==m[3][3]))
		{
			cout&lt;&lt;&quot;CONGRATULATIONS!!!!!!!!!!\n&quot;;
			cout&lt;&lt;&quot;player 2 wins the game\n&quot;;
			break;
		}
		if(sum==9)
		{
			cout&lt;&lt;&quot;\t\tHURRAY The game is over\n&quot;;
			cout&lt;&lt;&quot;\t\tNO ONE WINS\n&quot;;
			cout&lt;&lt;&quot;\t\tThe game is drawn\n&quot;;
			break;
		}
		}
		cout&lt;&gt;ans;
	}while((ans==&#039;y&#039;)&#124;&#124;(ans==&#039;Y&#039;));
	system(&quot;PAUSE&quot;);
	getch();
}
void show_game_box()
{
	cout&lt;&lt;&quot;\n    1 2 3\n&quot;&lt;&lt;endl;
	cout&lt;&lt;&quot;  1 &quot;&lt;&lt;m[1][1]&lt;&lt;&quot;&#124;&quot;&lt;&lt;m[1][2]&lt;&lt;&quot;&#124;&quot;&lt;&lt;m[1][3]&lt;&lt;endl;
	cout&lt;&lt;&quot;    -&#124;-&#124;-\n&quot;;
	cout&lt;&lt;&quot;  2 &quot;&lt;&lt;m[2][1]&lt;&lt;&quot;&#124;&quot;&lt;&lt;m[2][2]&lt;&lt;&quot;&#124;&quot;&lt;&lt;m[2][3]&lt;&lt;endl;
	cout&lt;&lt;&quot;    -&#124;-&#124;-\n&quot;;
	cout&lt;&lt;&quot;  3 &quot;&lt;&lt;m[3][1]&lt;&lt;&quot;&#124;&quot;&lt;&lt;m[3][2]&lt;&lt;&quot;&#124;&quot;&lt;&lt;m[3][3]&lt;&lt;&quot;\n\n\n&quot;;
}</description>
		<content:encoded><![CDATA[<p>//This is a game cross and nought( Zero Katta) in c++.</p>
<p>void show_game_box();<br />
char m[3][3];<br />
void main()<br />
{<br />
	int p,q;<br />
	char ans;<br />
	cout&lt;&lt;&quot;\t\tCROSS &amp; NOUGHT GAME\n&quot;;<br />
	do<br />
	{<br />
		for(p=1;p&lt;=3;p++)<br />
		{<br />
			for(q=1;q&lt;=3;q++)<br />
			{<br />
				m[p][q]=&#039;&#039;;<br />
			}<br />
		}<br />
		int i,j,sum=0;<br />
		while(sum&lt;10)<br />
		{<br />
		if(sum==0)<br />
		show_game_box();<br />
		cout&lt;&lt;&quot;\n\n\nPlayer 1 is&#039;0&#039;\n&quot;;<br />
		cout&lt;&lt;&quot;Player 1&#039;s turn\n&quot;;<br />
		cout&lt;&gt;i;<br />
		cout&lt;&gt;j;<br />
		for(;(i&gt;3)||(j&lt;1)||(&#039;X&#039;==m[i][j])||(&#039;0&#039;==m[i][j]);)<br />
		{<br />
			cout&lt;&lt;&quot;Sorry you entered wrong choice\n&quot;;<br />
			cout&lt;&lt;&quot;Enter your choice again\n&quot;;<br />
			cout&lt;&gt;i;<br />
			cout&lt;&gt;j;<br />
		}<br />
		m[i][j]=&#8217;0&#8242;;<br />
		sum++;<br />
		show_game_box();<br />
		if((m[1][1]==&#8217;0&#8242;)&amp;&amp;(m[1][1]==m[1][2])&amp;&amp;(m[1][1]==m[1][3]))<br />
		{<br />
			cout&lt;&lt;&quot;CONGRATULATIONS!!!!!!!!!!\n&quot;;<br />
			cout&lt;&lt;&quot;player 1 wins the game\n&quot;;<br />
			break;<br />
		}<br />
		if((m[2][1]==&#039;0&#039;)&amp;&amp;(m[2][1]==m[2][2])&amp;&amp;(m[2][1]==m[2][3]))<br />
		{<br />
			cout&lt;&lt;&quot;CONGRATULATIONS!!!!!!!!!!\n&quot;;<br />
			cout&lt;&lt;&quot;player 1 wins the game\n&quot;;<br />
			break;<br />
		}<br />
		if((m[3][1]==&#039;0&#039;)&amp;&amp;(m[3][1]==m[3][2])&amp;&amp;(m[3][1]==m[3][3]))<br />
		{<br />
			cout&lt;&lt;&quot;CONGRATULATIONS!!!!!!!!!!\n&quot;;<br />
			cout&lt;&lt;&quot;player 1 wins the game\n&quot;;<br />
			break;<br />
		}<br />
		if((m[1][1]==&#039;0&#039;)&amp;&amp;(m[1][1]==m[2][2])&amp;&amp;(m[1][1]==m[3][3]))<br />
		{<br />
			cout&lt;&lt;&quot;CONGRATULATIONS!!!!!!!!!!\n&quot;;<br />
			cout&lt;&lt;&quot;player 1 wins the game\n&quot;;<br />
			break;<br />
		}<br />
		if((m[1][3]==&#039;0&#039;)&amp;&amp;(m[1][3]==m[2][2])&amp;&amp;(m[1][1]==m[3][1]))<br />
		{<br />
			cout&lt;&lt;&quot;CONGRATULATIONS!!!!!!!!!!\n&quot;;<br />
			cout&lt;&lt;&quot;player 1 wins the game\n&quot;;<br />
			break;<br />
		}<br />
		if((m[1][1]==&#039;0&#039;)&amp;&amp;(m[1][1]==m[2][1])&amp;&amp;(m[1][1]==m[3][1]))<br />
		{<br />
			cout&lt;&lt;&quot;CONGRATULATIONS!!!!!!!!!!\n&quot;;<br />
			cout&lt;&lt;&quot;player 1 wins the game\n&quot;;<br />
			break;<br />
		}<br />
		if((m[1][2]==&#039;0&#039;)&amp;&amp;(m[1][2]==m[2][2])&amp;&amp;(m[1][2]==m[3][2]))<br />
		{<br />
			cout&lt;&lt;&quot;CONGRATULATIONS!!!!!!!!!!\n&quot;;<br />
			cout&lt;&lt;&quot;player 1 wins the game\n&quot;;<br />
			break;<br />
		}<br />
		if((m[1][3]==&#039;0&#039;)&amp;&amp;(m[1][3]==m[2][3])&amp;&amp;(m[1][1]==m[3][3]))<br />
		{<br />
			cout&lt;&lt;&quot;CONGRATULATIONS!!!!!!!!!!\n&quot;;<br />
			cout&lt;&lt;&quot;player 1 wins the game\n&quot;;<br />
			break;<br />
		}<br />
		if(sum==9)<br />
		{<br />
			cout&lt;&lt;&quot;\t\tHURRAY!!!!! The game is over\n&quot;;<br />
			cout&lt;&lt;&quot;\t\tNO ONE WINS\n&quot;;<br />
			cout&lt;&lt;&quot;The game is draw\n&quot;;<br />
			break;<br />
		}<br />
		cout&lt;&lt;&quot;\n\n\nPlayer 2 is&#039;X&#039;\n&quot;;<br />
		cout&lt;&lt;&quot;Player 2&#039;s turn\n&quot;;<br />
		cout&lt;&gt;i;<br />
		cout&lt;&gt;j;<br />
		for(;(i&gt;3)||(j&lt;1)||(&#039;X&#039;==m[i][j])||(&#039;0&#039;==m[i][j]);)<br />
		{<br />
			cout&lt;&lt;&quot;Sorry you entered wrong choice\n&quot;;<br />
			cout&lt;&lt;&quot;Enter your choice again\n&quot;;<br />
			cout&lt;&gt;i;<br />
			cout&lt;&gt;j;<br />
		}<br />
		m[i][j]=&#8217;X';<br />
		sum++;<br />
		show_game_box();<br />
		if((m[1][1]==&#8217;X')&amp;&amp;(m[1][1]==m[1][2])&amp;&amp;(m[1][1]==m[1][3]))<br />
		{<br />
			cout&lt;&lt;&quot;CONGRATULATIONS!!!!!!!!!!\n&quot;;<br />
			cout&lt;&lt;&quot;player 2 wins the game\n&quot;;<br />
			break;<br />
		}<br />
		if((m[2][1]==&#039;X&#039;)&amp;&amp;(m[2][1]==m[2][2])&amp;&amp;(m[2][1]==m[2][3]))<br />
		{<br />
			cout&lt;&lt;&quot;CONGRATULATIONS!!!!!!!!!!\n&quot;;<br />
			cout&lt;&lt;&quot;player 2 wins the game\n&quot;;<br />
			break;<br />
		}<br />
		if((m[3][1]==&#039;X&#039;)&amp;&amp;(m[3][1]==m[3][2])&amp;&amp;(m[3][1]==m[3][3]))<br />
		{<br />
			cout&lt;&lt;&quot;CONGRATULATIONS!!!!!!!!!!\n&quot;;<br />
			cout&lt;&lt;&quot;player 2 wins the game\n&quot;;<br />
			break;<br />
		}<br />
		if((m[1][1]==&#039;X&#039;)&amp;&amp;(m[1][1]==m[2][2])&amp;&amp;(m[1][1]==m[3][3]))<br />
		{<br />
			cout&lt;&lt;&quot;CONGRATULATIONS!!!!!!!!!!\n&quot;;<br />
			cout&lt;&lt;&quot;player 2 wins the game\n&quot;;<br />
			break;<br />
		}<br />
		if((m[1][3]==&#039;X&#039;)&amp;&amp;(m[1][3]==m[2][2])&amp;&amp;(m[1][1]==m[3][1]))<br />
		{<br />
			cout&lt;&lt;&quot;CONGRATULATIONS!!!!!!!!!!\n&quot;;<br />
			cout&lt;&lt;&quot;player 2 wins the game\n&quot;;<br />
			break;<br />
		}<br />
		if((m[1][1]==&#039;X&#039;)&amp;&amp;(m[1][1]==m[2][1])&amp;&amp;(m[1][1]==m[3][1]))<br />
		{<br />
			cout&lt;&lt;&quot;CONGRATULATIONS!!!!!!!!!!\n&quot;;<br />
			cout&lt;&lt;&quot;player 2 wins the game\n&quot;;<br />
			break;<br />
		}<br />
		if((m[1][2]==&#039;X&#039;)&amp;&amp;(m[1][2]==m[2][2])&amp;&amp;(m[1][2]==m[3][2]))<br />
		{<br />
			cout&lt;&lt;&quot;CONGRATULATIONS!!!!!!!!!!\n&quot;;<br />
			cout&lt;&lt;&quot;player 2 wins the game\n&quot;;<br />
			break;<br />
		}<br />
		if((m[1][3]==&#039;X&#039;)&amp;&amp;(m[1][3]==m[2][3])&amp;&amp;(m[1][1]==m[3][3]))<br />
		{<br />
			cout&lt;&lt;&quot;CONGRATULATIONS!!!!!!!!!!\n&quot;;<br />
			cout&lt;&lt;&quot;player 2 wins the game\n&quot;;<br />
			break;<br />
		}<br />
		if(sum==9)<br />
		{<br />
			cout&lt;&lt;&quot;\t\tHURRAY The game is over\n&quot;;<br />
			cout&lt;&lt;&quot;\t\tNO ONE WINS\n&quot;;<br />
			cout&lt;&lt;&quot;\t\tThe game is drawn\n&quot;;<br />
			break;<br />
		}<br />
		}<br />
		cout&lt;&gt;ans;<br />
	}while((ans==&#8217;y')||(ans==&#8217;Y'));<br />
	system(&#8220;PAUSE&#8221;);<br />
	getch();<br />
}<br />
void show_game_box()<br />
{<br />
	cout&lt;&lt;&quot;\n    1 2 3\n&quot;&lt;&lt;endl;<br />
	cout&lt;&lt;&quot;  1 &quot;&lt;&lt;m[1][1]&lt;&lt;&quot;|&quot;&lt;&lt;m[1][2]&lt;&lt;&quot;|&quot;&lt;&lt;m[1][3]&lt;&lt;endl;<br />
	cout&lt;&lt;&quot;    -|-|-\n&quot;;<br />
	cout&lt;&lt;&quot;  2 &quot;&lt;&lt;m[2][1]&lt;&lt;&quot;|&quot;&lt;&lt;m[2][2]&lt;&lt;&quot;|&quot;&lt;&lt;m[2][3]&lt;&lt;endl;<br />
	cout&lt;&lt;&quot;    -|-|-\n&quot;;<br />
	cout&lt;&lt;&quot;  3 &quot;&lt;&lt;m[3][1]&lt;&lt;&quot;|&quot;&lt;&lt;m[3][2]&lt;&lt;&quot;|&quot;&lt;&lt;m[3][3]&lt;&lt;&quot;\n\n\n&quot;;<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Junjun</title>
		<link>http://www.mycplus.com/tutorials/c-programming-tutorials/graphics-programming/comment-page-3/#comment-19575</link>
		<dc:creator>Junjun</dc:creator>
		<pubDate>Sat, 30 Jan 2010 16:48:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.mycplus.com/?p=358#comment-19575</guid>
		<description>I need to make a programming that works like a voting system...compute votes...and calculates score for finalist and display them in a data text file...using classes and object can anyone help me...</description>
		<content:encoded><![CDATA[<p>I need to make a programming that works like a voting system&#8230;compute votes&#8230;and calculates score for finalist and display them in a data text file&#8230;using classes and object can anyone help me&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ajay Reddy</title>
		<link>http://www.mycplus.com/tutorials/c-programming-tutorials/graphics-programming/comment-page-2/#comment-19553</link>
		<dc:creator>Ajay Reddy</dc:creator>
		<pubDate>Fri, 25 Dec 2009 13:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.mycplus.com/?p=358#comment-19553</guid>
		<description>graphics.h</description>
		<content:encoded><![CDATA[<p>graphics.h</p>
]]></content:encoded>
	</item>
</channel>
</rss>
