 |
|
12-08-2007, 10:51 PM
|
#31 (permalink)
|
|
In The Zone
Join Date: May 2007
Location: Pune
Posts: 247
|
Re: C++:Adding two numbers
@navjotjsingh & casanova
Thanks!!! It is working. Why does this happen with shortcut?
__________________
Anyone who has never made a mistake has never tried anything new
|
|
|
|
Advertisements. Register and be a member of the community to get rid of them.
|
|
Advertisement
|
|
13-08-2007, 12:56 PM
|
#32 (permalink)
|
|
The Frozen Nova
Join Date: Sep 2004
Location: Trespasser in Virtual Land
Posts: 1,641
|
Re: C++:Adding two numbers
TC is a 16 bit proggy. When you run it from command, it is being handled more efficiently.
__________________
I dream of a better tomorrow... where chickens can cross roads and not have their motives questioned.
www.nerdweed.blogspot.com
|
|
|
13-08-2007, 08:48 PM
|
#33 (permalink)
|
|
C# Be Sharp !
Join Date: Jun 2006
Location: Toronto
Posts: 1,805
|
Re: C++:Adding two numbers
Quote:
|
Originally Posted by casanova
TC is a 16 bit proggy. When you run it from command, it is being handled more efficiently.
|
But still then it consumes 100% on my PC .
and anyways , Turbo C++ Does Not support Standard C++ , so it's useless anyways .
Why not use Visual C++ Express or GCC when they're much better ?
__________________
There are 10 types of people in the world: those who understand binary and those who do not.
|
|
|
13-08-2007, 08:56 PM
|
#34 (permalink)
|
|
In The Zone
Join Date: May 2007
Location: Pune
Posts: 247
|
Re: C++:Adding two numbers
Quote:
|
Originally Posted by Zeeshan Quireshi
But still then it consumes 100% on my PC .
and anyways , Turbo C++ Does Not support Standard C++ , so it's useless anyways .
Why not use Visual C++ Express or GCC when they're much better ?
|
Yes I do use VC++ only. But my sister needs TC as in college they told you to use TC only. Also for exams it is the one that is available. When will these colleges learn that TC is really old to be any useful these days?
__________________
Anyone who has never made a mistake has never tried anything new
|
|
|
13-08-2007, 09:11 PM
|
#35 (permalink)
|
|
I am Optimus Prime
Join Date: Feb 2005
Location: Delhi, India
Posts: 1,919
|
Re: C++:Adding two numbers
Blame it on Old CBSE Course Too. They still teach old format C++.
|
|
|
13-08-2007, 11:02 PM
|
#36 (permalink)
|
|
The Frozen Nova
Join Date: Sep 2004
Location: Trespasser in Virtual Land
Posts: 1,641
|
Re: C++:Adding two numbers
Yes, academics spoil things. They ask to use TC which is lacking in features.
@zeeshan
Yes, it still uses lot of cpu. But it works atleast
__________________
I dream of a better tomorrow... where chickens can cross roads and not have their motives questioned.
www.nerdweed.blogspot.com
|
|
|
14-08-2007, 11:14 AM
|
#37 (permalink)
|
|
C# Be Sharp !
Join Date: Jun 2006
Location: Toronto
Posts: 1,805
|
Re: C++:Adding two numbers
Quote:
|
Originally Posted by navjotjsingh
Blame it on Old CBSE Course Too. They still teach old format C++.
|
Well actually there's an alternative to TC that will compile the old format code just fine under windows XP and into a 32 bit executable .
Here's how u can use Borland's FREE C++ Compiler along with the Relo IDE[i use it myself for school program testing  ] :
1. Get Borland's Free C++ Compiler Here
http://dn.codegear.com/article/20633
2. Download the Free Relo IDE Here
http://www.fifsoft.com/relo/
3. Now Install Borland's Compiler First n then Relo IDE , it will ask u for Compiler Path during setup n just provide the path where u installed Borland Compiler n that's it, u have yor Development Enivronment Set-up and ready to go
__________________
There are 10 types of people in the world: those who understand binary and those who do not.
Last edited by Zeeshan Quireshi; 14-08-2007 at 11:22 AM.
|
|
|
14-08-2007, 04:32 PM
|
#38 (permalink)
|
|
In The Zone
Join Date: May 2007
Location: Pune
Posts: 247
|
Re: C++:Adding two numbers
Thanks for this advice. It is better than TC!!!
__________________
Anyone who has never made a mistake has never tried anything new
|
|
|
14-08-2007, 06:26 PM
|
#39 (permalink)
|
|
God of Mistakes...
Join Date: Dec 2005
Location: Pune, Maharashtra
Posts: 1,923
|
Re: C++:Adding two numbers
@ sandeepk,
have u ever tested DevC++ ??? It is far better than this! Bcoz it supports OLD as well as NEW (ISO) C++
|
|
|
14-08-2007, 08:02 PM
|
#40 (permalink)
|
|
C# Be Sharp !
Join Date: Jun 2006
Location: Toronto
Posts: 1,805
|
Re: C++:Adding two numbers
Quote:
|
Originally Posted by shirish_nagar
@ sandeepk,
have u ever tested DevC++ ??? It is far better than this! Bcoz it supports OLD as well as NEW (ISO) C++ 
|
But problem is tat it DOES NOT Support borland specific headers[ conio.h anyone ? ] which are taught in the ICSE n CBSE curriculum
__________________
There are 10 types of people in the world: those who understand binary and those who do not.
|
|
|
14-08-2007, 08:08 PM
|
#41 (permalink)
|
|
C# Be Sharp !
Join Date: Jun 2006
Location: Toronto
Posts: 1,805
|
Re: C++:Adding two numbers
Quote:
|
Originally Posted by Kenshin
Use dosbox i used to use dosbox to run TC,...it runs fine under dosbox....but i hate tc hehe.....now we r usin assembler and its turbo assembler and it looks same like tat TC... i hate everythin tat looks like tc...hehe
|
Biggest prob is that TC does not run fine under my PC in ANY way , that's y use Relo
__________________
There are 10 types of people in the world: those who understand binary and those who do not.
|
|
|
14-08-2007, 08:45 PM
|
#42 (permalink)
|
|
God of Mistakes...
Join Date: Dec 2005
Location: Pune, Maharashtra
Posts: 1,923
|
Re: C++:Adding two numbers
Quote:
|
Originally Posted by Zeeshan Quireshi
But problem is tat it DOES NOT Support borland specific headers[ conio.h anyone ? ] which are taught in the ICSE n CBSE curriculum 
|
Who says that ???
Infact take a look @ this code,
Code:
# include <iostream.h>
# include <conio.h>
int main()
{
int a,b;
cout << "Enter 2 numbers : ";
cin >> a >> b;
cout << "Addition = " << a+b;
getch();
}
This code is perfectly valid in Dec C++.
And if u can see, then I've included conio.h & used getch() from that lib.
|
|
|
14-08-2007, 08:58 PM
|
#43 (permalink)
|
|
C# Be Sharp !
Join Date: Jun 2006
Location: Toronto
Posts: 1,805
|
Re: C++:Adding two numbers
well , it frankly wasn't valid the last time i used Dev C++(that was when v4 was launched i suppose)
anyways , use whatever u like , except TC that is
__________________
There are 10 types of people in the world: those who understand binary and those who do not.
|
|
|
14-08-2007, 09:17 PM
|
#44 (permalink)
|
|
The Lord of Death
Join Date: May 2005
Location: यमलोक
Posts: 253
|
Re: C++:Adding two numbers
Quote:
|
Originally Posted by shirish_nagar
Who says that ???
Infact take a look @ this code,
Code:
# include <iostream.h>
# include <conio.h>
int main()
{
int a,b;
cout << "Enter 2 numbers : ";
cin >> a >> b;
cout << "Addition = " << a+b;
getch();
}
This code is perfectly valid in Dec C++.
And if u can see, then I've included conio.h & used getch() from that lib. 
|
It does not conform to the ISO C++ standards, regardless of the fact that even GCC can compile this code. The C++ programming language has nothing to do with screen, keyboard input and other I/O hardware interfacing.
|
|
|
14-08-2007, 09:20 PM
|
#45 (permalink)
|
|
I see right through you.
Join Date: Sep 2005
Location: Chennai
Posts: 597
|
Re: C++:Adding two numbers
@shirish_nagar : That is definitely not valid code in dev c++. Dev c++ uses mingw compiler, which is based on gcc, and will choke on that code because it conforms to standards written in about 1995, and since then have become outdated. Even if it does work, you must have copied conio from a TC install to your dev include directory.
EDIT : Slightly late...
__________________
I didn't make the world, I only try to live in it.
http://lucentbeing.com
-- Sykora --
|
|
|
14-08-2007, 09:23 PM
|
#46 (permalink)
|
|
God of Mistakes...
Join Date: Dec 2005
Location: Pune, Maharashtra
Posts: 1,923
|
Re: C++:Adding two numbers
^^ nah....
I've just installed DevC++ on my machine & compiled this!
Though it gives warnings bcoz I've used "iostream.h" instead of "iostream". But it compiled & run.
|
|
|
14-08-2007, 09:51 PM
|
#47 (permalink)
|
|
Alpha Geek
Join Date: Jul 2004
Location: New Delhi
Posts: 628
|
Re: C++:Adding two numbers
Quote:
|
Originally Posted by Zeeshan Quireshi
Turbo C++ does NOT run fine under Windows XP(which is what the majority uses)
|
Actually it does. It runs fine on all Windows w/o any service pack(s). I've run it successfully on Win 98, 98SE, 2000, ME, XP, 2003. I've been using it for more than 2 years & still do.
__________________
Dell Studio 1558, Intel i5 M430 @ 2.27 Ghz, 4 GB RAM, 1 GB ATI 5470 Mobility, 500 GB HDD, IDT HD Audio with Creative X-Fi MB software
|
|
|
15-08-2007, 07:01 AM
|
#48 (permalink)
|
|
God of Mistakes...
Join Date: Dec 2005
Location: Pune, Maharashtra
Posts: 1,923
|
Re: C++:Adding two numbers
^^ yeh, just thing is that u don't have to INSTALL it, copy the TCC ot TC++ folder & navigate thru folder in command prompt.
Then it should work fine!!!
|
|
|
15-08-2007, 08:13 PM
|
#49 (permalink)
|
|
C# Be Sharp !
Join Date: Jun 2006
Location: Toronto
Posts: 1,805
|
Re: C++:Adding two numbers
Quote:
|
Originally Posted by g_goyal2000
Actually it does. It runs fine on all Windows w/o any service pack(s). I've run it successfully on Win 98, 98SE, 2000, ME, XP, 2003. I've been using it for more than 2 years & still do.
|
But it takes up 100% CPU time on my machine(n all other Win XP machines i've used)
__________________
There are 10 types of people in the world: those who understand binary and those who do not.
|
|
|
15-08-2007, 08:31 PM
|
#50 (permalink)
|
|
I am Optimus Prime
Join Date: Feb 2005
Location: Delhi, India
Posts: 1,919
|
Re: C++:Adding two numbers
Seems problem at your end. Here everything is Ok.
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|
|