Calendar

Hello Im trying to make a calendar in C++,
And I was wondering if anyone could explain how to make a table in the output?

If you want to make table in c++ without graphics then you have to make it by printing "|" to draw line.But to do this we need to change the cursor position to our desire position and this is done by using gotoxy(int x,int y);
example
1
2
3
4
5
for(i=1;i<30;i++)
{
gotoxy(5,i);
cout<<"|";
}

This will draw vertical straight line because only y co-ordinate is variable and to make horizontal line change x co-ordinate variable and y constant.But gotoxy is available only in turbo but not in codeblock so you have to write code for it and you can find code here http://codeincodeblock.blogspot.com/2011/03/gotoxy-in-codeblock.html
thanks ill give it a try
Topic archived. No new replies allowed.