i need it to practice my programming. can anyone help?
Where can i download a free Turbo C v2.01 Compiler?
Straight from the horse's mouth, at the URL below from Borland.
Reply:you can get if free from Yankee.com
and then you can use it
take care
Reply:search google for downloading.
Try the C examples using it.
http://www.pekiyi.150m.com/c.html
Reply:Now there's a piece of history!
http://www.acms.arizona.edu/education/op...
Monday, May 24, 2010
How to write a program using turbo c...output is aquarius using graphics.h as header file...?
the source code must have a comment if you want...tnx
How to write a program using turbo c...output is aquarius using graphics.h as header file...?
It is not that easy. May be you can contact a C expert at websites like http://askexpert.info/
How to write a program using turbo c...output is aquarius using graphics.h as header file...?
It is not that easy. May be you can contact a C expert at websites like http://askexpert.info/
What is the program code in turbo c of insertion sort, shell sort, quick sort and binary search?
Sorts:
http://www.programmersheaven.com/zone3/c...
Binary search:
http://physicsresearch.may.ie/yr3compphy...
cabbage
http://www.programmersheaven.com/zone3/c...
Binary search:
http://physicsresearch.may.ie/yr3compphy...
cabbage
Can anyone who is expert in turbo c can correct my code here? thanks in advance:?
This is my code:
#include%26lt;stdio.h%26gt;
main()
{
int cas,cnt,ctr,x=1,y=2;
clrscr();
printf("Enter case number[1-4]:");
scanf("%d",%26amp;cas);
switch(cas)
{
case 1:
{ for(cnt=5;cnt%26gt;0;cnt--,x++,y++)
{for(ctr=cnt;ctr%26gt;0;ctr--)
gotoxy(x,y);printf("%d",ctr);
printf("\n");
}
break;
}
case 2:
{ for(cnt=1;cnt%26lt;=5;cnt++)
{for(ctr=cnt;ctr%26lt;=5;ctr++)
printf("%d",cnt);
printf("\n");
}
break;
}
case 3:
{ for(cnt=5;cnt%26gt;0 %26amp;%26amp; ctr%26gt;6;cnt--)
{for(ctr=1;ctr%26lt;=5;ctr++)
printf("%d",ctr);
printf("\n%d\n%d\n%d\n%d",ctr-4,ctr-...
}
break;
}
case 4:
{ for(cnt=1;cnt%26lt;=10;cnt++)
{for(ctr=1;ctr%26lt;=10;ctr++)
printf("%d\t",ctr*cnt);
printf("\n");
}
break;
}
}
getch();
}
--------------------------------
which must produce in case 1:
54321
4321
321
21
1
in case 2:
12345
1234
123
12
1
in case 3:
12345
2
3
4
5
in case 4:
10x10 multiplication table
thx in advance.... :-)
Can anyone who is expert in turbo c can correct my code here? thanks in advance:?
There's no need for a gotoxy in case1. In case 2 you're printing cnt, you should be printing ctr. I've rewritten case 3 to something simpler. Case 4 looks fine to me.
Enjoy.
switch(cas)
{
case 1:
for(cnt=5;cnt%26gt;0;cnt--)
{
for(ctr=cnt;ctr%26gt;0;ctr--)
printf("%d",ctr);
printf("\n");
}
break;
case 2:
{
for(cnt=1;cnt%26lt;=5;cnt++)
{
for(ctr=1;ctr%26lt;=6-cnt;ctr++)
printf("%d",ctr);
printf("\n");
}
}
case 3:
{
for(cnt=1;cnt%26lt;=5;cnt++)
{
printf("%d",cnt);
if (cnt==1)
for(ctr=2;ctr%26lt;=5;ctr++)
printf("%d",ctr);
printf("\n");
}
}
break;
case 4:
{
for(cnt=1;cnt%26lt;=10;cnt++)
{
for(ctr=1;ctr%26lt;=10;ctr++)
printf("%d\t",ctr*cnt);
printf("\n");
}
}
break;
}
#include%26lt;stdio.h%26gt;
main()
{
int cas,cnt,ctr,x=1,y=2;
clrscr();
printf("Enter case number[1-4]:");
scanf("%d",%26amp;cas);
switch(cas)
{
case 1:
{ for(cnt=5;cnt%26gt;0;cnt--,x++,y++)
{for(ctr=cnt;ctr%26gt;0;ctr--)
gotoxy(x,y);printf("%d",ctr);
printf("\n");
}
break;
}
case 2:
{ for(cnt=1;cnt%26lt;=5;cnt++)
{for(ctr=cnt;ctr%26lt;=5;ctr++)
printf("%d",cnt);
printf("\n");
}
break;
}
case 3:
{ for(cnt=5;cnt%26gt;0 %26amp;%26amp; ctr%26gt;6;cnt--)
{for(ctr=1;ctr%26lt;=5;ctr++)
printf("%d",ctr);
printf("\n%d\n%d\n%d\n%d",ctr-4,ctr-...
}
break;
}
case 4:
{ for(cnt=1;cnt%26lt;=10;cnt++)
{for(ctr=1;ctr%26lt;=10;ctr++)
printf("%d\t",ctr*cnt);
printf("\n");
}
break;
}
}
getch();
}
--------------------------------
which must produce in case 1:
54321
4321
321
21
1
in case 2:
12345
1234
123
12
1
in case 3:
12345
2
3
4
5
in case 4:
10x10 multiplication table
thx in advance.... :-)
Can anyone who is expert in turbo c can correct my code here? thanks in advance:?
There's no need for a gotoxy in case1. In case 2 you're printing cnt, you should be printing ctr. I've rewritten case 3 to something simpler. Case 4 looks fine to me.
Enjoy.
switch(cas)
{
case 1:
for(cnt=5;cnt%26gt;0;cnt--)
{
for(ctr=cnt;ctr%26gt;0;ctr--)
printf("%d",ctr);
printf("\n");
}
break;
case 2:
{
for(cnt=1;cnt%26lt;=5;cnt++)
{
for(ctr=1;ctr%26lt;=6-cnt;ctr++)
printf("%d",ctr);
printf("\n");
}
}
case 3:
{
for(cnt=1;cnt%26lt;=5;cnt++)
{
printf("%d",cnt);
if (cnt==1)
for(ctr=2;ctr%26lt;=5;ctr++)
printf("%d",ctr);
printf("\n");
}
}
break;
case 4:
{
for(cnt=1;cnt%26lt;=10;cnt++)
{
for(ctr=1;ctr%26lt;=10;ctr++)
printf("%d\t",ctr*cnt);
printf("\n");
}
}
break;
}
What are the headers used in Turbo C?
I am a college student taking up Computer Science and honestly, i have no idea why i took this course. So im realy hoping you could help me on this one. tnx in advance
What are the headers used in Turbo C?
I'm not sure what you mean by "headers", but I'm going to guess you're talking about what we called header files or include files. Here's a couple of common ones:
- stdio.h
- stdin.h
- stdout.h
- string.h
Hope this is helpful!
Reply:i won't give u the direct answer...
but look in your turbo c folder.. see all the files with the extension "H"
also look at your programs , the first few lines are..
#include %26lt; ..................
Reply:The headers are from the C standard library. This is documented on the web. For example, http://cppreference.com
What are the headers used in Turbo C?
I'm not sure what you mean by "headers", but I'm going to guess you're talking about what we called header files or include files. Here's a couple of common ones:
- stdio.h
- stdin.h
- stdout.h
- string.h
Hope this is helpful!
Reply:i won't give u the direct answer...
but look in your turbo c folder.. see all the files with the extension "H"
also look at your programs , the first few lines are..
#include %26lt; ..................
Reply:The headers are from the C standard library. This is documented on the web. For example, http://cppreference.com
What is the Latest version of Turbo C?
From what I've can find out, 2.01.
http://dn.codegear.com/article/20841
http://en.wikipedia.org/wiki/Turbo_C
What is the Latest version of Turbo C?
3.0
http://dn.codegear.com/article/20841
http://en.wikipedia.org/wiki/Turbo_C
What is the Latest version of Turbo C?
3.0
At what site can i get turbo c++ sample programs? can u give me some examples that i can just copy then paste?
hi
i am also a student of tc++.u can mail me at jayant_18_j@yahoo.com
At what site can i get turbo c++ sample programs? can u give me some examples that i can just copy then paste?
go to you-tube.com.
joke.... i think they uses turboc++ programs.
Reply:Y r u using turboc++ ,no body use it in real env.install the linux and u will find the bunch of c++ programs.
Thanks
Rahul
Reply:no i have tried to find such thing but i didn't
phlox
i am also a student of tc++.u can mail me at jayant_18_j@yahoo.com
At what site can i get turbo c++ sample programs? can u give me some examples that i can just copy then paste?
go to you-tube.com.
joke.... i think they uses turboc++ programs.
Reply:Y r u using turboc++ ,no body use it in real env.install the linux and u will find the bunch of c++ programs.
Thanks
Rahul
Reply:no i have tried to find such thing but i didn't
phlox
Subscribe to:
Posts (Atom)