Question about Borland Turbo C++ 3.0 Full Version Academic License for PC

2 Answers

How to remove linker error in turbo c++ 3.0??

Posted by on

Ad

2 Answers

  • Level 1:

    An expert who has achieved level 1.

    Mayor:

    An expert whose answer got voted for 2 times.

  • Contributor
  • 1 Answer

Opttion>linker>setting>graphics click.

Posted on Aug 31, 2011

Ad
  • Level 1:

    An expert who has achieved level 1.

  • Contributor
  • 2 Answers

# include <stdio.h>
# include <graphics.h>
# include <stdlib.h>
# include <dos.h>
# include <conio.h>
int gdriver=DETECT,gmode,x1=0,y1=0,x2,y2,k=0,c,a,i=0;
int bufx[150],bufy[150],dist=7,delayspeed=100,d;
int rndx,rndy,tail=2,size,dash=0;
int life=5;
int choice;
void randomnumber(void);
void move(int a);
void statusbar(void);
void main()
{
// registerfarbgidriver(EGAVGA_driver_far);
initgraph(&gdriver,&gmode,"c:\\tc\\bgi");
size=tail;
cleardevice();
printf("Devlopped By IDEAL BERG");
printf("Enter the speed:: \n<1> for slow <2> for slower <3> for slowest\n<4> for normal\n<5> for fast <6> for faster <7> for fastest");
scanf("%d",&choice);
switch(choice)
{
case 1: delayspeed=250;break;
case 2: delayspeed=200;break;
case 3: delayspeed=160;break;
case 4: delayspeed=90;break;
case 5: delayspeed=60;break;
case 6: delayspeed=40;break;
case 7: delayspeed=20;break;
};
cleardevice();
randomnumber();
bar3d(rndx,rndy,rndx+dist,rndy+dist,0,0);
statusbar();
while((c=getch())!='\033')
{
if (c=='\115') a=1;
if (c=='\113') a=2;
if (c=='\120') a=3;
if (c=='\110') a=4;
dash=0;
move(a);
}
}
void move(int a)
{
void checkcollision(int x1,int y1);
void checkcapture(int x1,int y1);
while(!kbhit())
{
if (!dash)
{
k=k++%size;
i++;
setfillstyle(1,7);
bar3d(x1,y1,x1+dist,y1+dist,0,0);
if(i>=size) // Style start
{
setfillstyle(0,0);
setcolor(0);
bar3d(bufx[k],bufy[k],bufx[k]+dist,bufy[k]+dist,0,0);
bufx[k]=x1;
bufy[k]=y1;
setcolor(15);
checkcapture(x1,y1);
}
else
{
bufx[1]=x1;
bufy[1]=y1;
}
if(a==1) x1=x1+dist;
if(a==2) x1=x1-dist;
if(a==3) y1=y1+dist;
if(a==4) y1=y1-dist;
checkcollision(x1,y1);
setfillstyle(1,14);
bar3d(x1,y1,x1+dist,y1+dist,0,0);
sound(300);
delay(delayspeed);
nosound();
delay(delayspeed);
}
}
}

void checkcollision(int x1,int y1)
{
int i;
for(i=1;i<=size;i++) if((bufx[i]==x1)&&(bufy[i]==y1)) dash=1; if((x1<0)''(x1>=400)''(y1<0)''(y1>400)) dash=1;
if(dash)
{
if(--life<0) exit(0); sound(700); delay(300); nosound(); if(size>25) life++;size=tail;
cleardevice();
}
statusbar();
}

void checkcapture(int x1,int y1)
{
int i;
if((x1==rndx)&&(y1==rndy))
{
size++;
sound(500);
delay(100);
randomnumber();
}
setfillstyle(11,14);
bar3d(rndx,rndy,rndx+dist,rndy+dist,0,0);
}
void statusbar()
{
char s[10];
s[1]=life;
setcolor(15);
rectangle(0,0,400,400);
gotoxy(55,2);
printf("Life: %d size: %d",life,size);
gotoxy(55,5);
printf("Down: ");
putchar(31);
printf("\tUP");
putchar(30);
gotoxy(55,6);
printf("RIGHT :");
putchar(16);
printf("\tLEFT :");
putchar(17);
}
void randomnumber()
{
int i,j;
randomize();
i=random(10000)%40;
i=i*dist;
j=random(10000)%40;
j=j*dist;
rndx=i;
rndy=j;
}

Posted on Jun 02, 2012

  • kimravoth
    kimravoth Jun 02, 2012

    #include
    #include
    #include
    #include
    #include
    #include
    const int STEP=5;
    void*bike;
    void drawbike(void)
    {
    circle(50,100,25);
    circle(150,100,25);
    line(50,100,80,85);
    line(80,85,134,85);
    line(77,82,95,100);
    line(130,80,150,100);
    line(128,80,113,82);
    line(128,80,116,78);
    line(72,81,89,81);
    line(73,82,90,82);
    circle(95,100,5);
    line(92,105,98,95);
    line(91,105,93,105);
    line(97,95,99,95);
    line(95,100,136,87);
    bike=malloc(imagesize(25,75,175,125));
    if(bike==NULL)
    {
    closegraph();
    printf("\nFailed to allocate memory for bike image:\n");
    exit(1);
    }
    getimage(25,75,175,125,bike);
    }
    void movebike(void)
    { int i;
    for(i=0;i {
    putimage(25+i,75,bike,XOR_PUT);
    putimage(25+STEP+i,75,bike,XOR_PUT);
    delay(50);
    }
    }
    void main()
    {
    int gdriver=DETECT,gmode;
    initgraph(&gdriver,&gmode,"c:\\tc\\bgi");
    while(!kbhit())
    {
    drawbike();
    movebike();
    }
    closegraph();
    }

×

Ad

2 Suggested Answers

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya expert can help you resolve that issue over the phone in a minute or two.
Best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
the service is completely free and covers almost anything you can think of.(from cars to computers, handyman, and even drones)
click here to download the app (for users in the US for now) and get all the help you need.
Goodluck!

Posted on Jan 02, 2017

gewiz
  • 1263 Answers

SOURCE: Linker error:Unable to open file 'TCLASSS.LIB'

this is the basic lib class required by the compiler make sure your libs variable to pointing to the correct location the the libraries required by the compiler.

Posted on Dec 16, 2012

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

2 Answers

Door lock for Turbo AIR


How to remove the 3 locks from the panel. Both side of the panel are riveted. How to remove the panel to reach the 3 locks.

Jul 21, 2013 | Turbo Air Reach-In Refrigerator- 3...

1 Answer

How to remove linker error in turbo c++ 3.0??


There are several possible causes for a linker error. Would you care to give the full text of the error message?

Feb 26, 2013 | Borland Turbo C++ 3.0 Full Version...

1 Answer

Linker error:Unable to open file 'TCLASSS.LIB'


this is the basic lib class required by the compiler make sure your libs variable to pointing to the correct location the the libraries required by the compiler.

Sep 25, 2012 | Borland Turbo C++ 3.0 Full Version...

1 Answer

Sir i have been working to c++ but before sum days i have run endless loop program by mistake something got deleted from iostream.h file after that it is showing linker error pass2


iostream.h file input output header file for c++ by which we can use input/output data.
So you must reinstall the c++ to your system and after that linker error would not go on.

Aug 26, 2011 | Borland Turbo C++ 3.0 Full Version...

1 Answer

I need a driver.


Amazingly, using internet search on Flash Advance Linker Xtreme immediately produced a web page offering the product and the software (free download).
http://www.gameboy-advance.net/fal_soft/flash_advance_little_writer.htm

Mar 19, 2010 | Microsoft Windows XP Home Edition Service...

1 Answer

How to run tc++ 3.0 in x86 based system


UPDATE: If you get the error Linker Error: Unable to open include file ‘C0S.OBJ’, please try copying the C0S.OBJ from the OBJ folder into the main folder of the compiler. The downloadable archive has been updated with this fix.
The procedures on this post were based on a Windows XP computer. They may or may not be applicable if your operating system is not Windows XP.
Note: Please make sure you followed the instructions carefully before saying that the archive doesn’t work. Thank you.

The download page for Turbo C++ 3.0 was the most, or second most popular page in poochycat.com, my blog whose domain name is about to expire. I’m moving the downloads here. icon_smile.gif
(The rest of this post must be viewed to find the download links and installation instructions)

The Download Link:Turbo C++ Compiler version 3.0 (On MediaFire) (2931) That’s the C program compiler I used to use during my early college terms.
Installation Instructions Download the archive from the link(s) provided somewhere at the top of this post.
  1. Unzip it and place the contents of the archive into a folder inside your Drive C. (e.g., C:\YourFolder)
  2. Please observe:
    tc2.jpg
    This is the TC.EXE file that you MUST run.
    tc1.jpg
    This is the TC Shortcut file, don’t use it.
    The compiler is the file named TC.EXE. Don’t confuse it with the TC shortcut! Simply double click on that and the compiler will run.
  3. Just before you type your program code, please make sure you have the correct path for the INCLUDE Directory and LIBRARY Directory. You can check by clicking on Options -> Directories
  4. The path for the INCLUDE Directory must be C:\YourFolder\INCLUDE.
  5. And the path for the LIBRARY Directory must be C:\YourFolder\LIB.
  6. Remember to change the YourFolder into the name of the folder you are using for your Turbo C++.

Mar 05, 2010 | Microsoft Windows XP Professional with...

2 Answers

I want 2 pass assembler code in c or c++


What do you mean by pass?

Depending on your compiler, you can inline assembly statements. For Microsoft Visual Studio C/C++ the syntax is:

__asm push eax

or

__asm {
push eax
pop eax
}

If you want to link to assembly routines that you separately compiled via an assembler... that is a little bit more complicated:

In your C or C++ program declare your assembly routine:

extern "C" { void __stdcall example(); }


This gives it standard C linkage (which will turn off name decoration), and tells your compiler that the function is external (i.e. won't be available until link time).


In your assembly file:

.386
.model flat
.code

public _example

_example proc

ret

_example endp

end

After assembling your .asm file, you will need to tell your linker to include the resulting .obj file. This varies by environment, but for Microsoft Visual Studio you can add it under Project Properties, 'Linker', 'Input', 'Additional Dependencies'. You may get linker errors, in which case you should double check your assembler options to make sure you are generating case sensitive names.

Apr 14, 2009 | Computers & Internet

Not finding what you are looking for?
Borland Turbo C++ 3.0 Full Version Academic License for PC Logo

Related Topics:

1,154 people viewed this question

Ask a Question

Usually answered in minutes!

Top Borland Computers & Internet Experts

Tony

Level 3 Expert

2600 Answers

Yoav Shilon
Yoav Shilon

Level 2 Expert

104 Answers

kakima

Level 3 Expert

102366 Answers

Are you a Borland Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...