Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Problem with running Turbo C++ programs

Status
Not open for further replies.

hassenman

Advanced Member level 4
Full Member level 1
Joined
Nov 29, 2004
Messages
117
Helped
4
Reputation
8
Reaction score
1
Trophy points
1,298
Activity points
912
preoblem with turbo c++

i'm new to c++
and i'm using tc++ 4.5
i wanna know if its possible c++ to run a program without having the exe file created
i mean like in turbo pascal (u run the program first then u compile and make)
if its possile tell me what compiler to use or how should i use mine .
because now when i click on the run button i get some errors the mouse pointer turns to a stop .
i need ur help thx
 

Re: preoblem with turbo c++

both Turbo Pascal and C++ do compile before run, even when you don't realize this process, so, what's the reason to avoid compile ?

Regards
 

Re: preoblem with turbo c++

i know they do compile before running.
now my problem is that i'm not getting any program running even the simplest.
i just tried to compile the hello world "program" but it doesn't
i don't know whats the problem .

#include <iostream.h>
int main(void)
{
cout << "Hello." << endl;
return 0 ;
}

hope u can help me guys . i'm newbie (an idiot one)
 

preoblem with turbo c++

hi, try this, it works for me, i used Dev C++:


#include <iostream.h>
#include <stdlib.h>
int main(){
int a;
for (a = 0 ; a <= 20 ; a++)
{
cout << a;
if (a % 3 == 0) cout <<" Es multiplo de 3";
else cout << " No es multiplo de 3";
cout << endl;
}


system ("Pause");
return 0;
}
 

Re: preoblem with turbo c++

dear

it is confusing wether ur programm is error free or not try put getch() ;(#include<conoi.h> at the start) before return statement and run.
 

preoblem with turbo c++

Try to link library statically to executable (if it is applicable for turbo C) and then run . It could be case than c++ run time libraies are not linked to the compiled executable and when you run program on windows , system can not find path where these libraries are located .
 

preoblem with turbo c++

Suggest you to install Borland C++ 5.02
Also support DOS program.

Run BC++
(create a project first)
File -> New -> Project Platform set to DOS and input the project name, and click ok
double click the xxxxx.cpp and input the code.
#include <iostream.h>
int main(void)
{
cout << "Hello." << endl;
return 0 ;
}
and then click RUN!
It's ok.
 

preoblem with turbo c++

the compile will occur befor the run
 

Re: preoblem with turbo c++

maybe you can type the error message in the output windiws,then others can help you in more detail
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top