Re: Ot c++ programming in linux
On Friday 28 June 2002 06:56 pm, Scott Henson wrote: On Fri, 2002-06-28 at 21:51, Eric G. Miller wrote: On Fri, Jun 28, 2002 at 06:17:14PM -0700, faisal gillani wrote: Well i am a newbie learning c++ these days we are being thaught on turbo c 3.0 but as like other things i want to work on c++ in linux .. so i installed gcc on my linux box but i dont have any idea how to install it for example i write a program as follows in turbo c Install ajunta. Its better than turbo c. I use it all the time for my engineering projects. where's ajunta available? i've googled but found only a document reference to it. ben -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Ot c++ programming in linux
Hi Faisal To learn C++ well, get a copy of a good C++ text. I like Savitch, Problem Solving and Programming in C++ 4th edition from Addison Wesley. It will be published in mid July. There is a 3rd edition available now, but the 4th is better. I make no money off sales of this book. My connection to the book is that I write supplements for which I am paid lump sum amounts, no residuals. Your code, as has been pointed out here, is C, not C++, and conio.h is a product for DOS/Windows command line i/o, but has been ported to Linux and g++, but it is better not to use it at all.. Finally, the header file is stdio.h, not studio.h. There are other issues such as the iostream i/o that you should use in preferece to the C stdio library for many reasons. IMHO Emacs and g++ make the best development environment for any platform to which these have been ported. Emacs requires a bit of work as the commands tend not to be any more mnemonic than the keystroke equivalents in any Windows IDE. If you use X Windows in Linux, then Xemacs has most of the same facilities that any Windows IDE provides. There are other IDEs for sale for Linux, and MoonShine, which is used g++, is available for download. I do not have the URL. Use a search engine such as Google. If I can help you further, please write to me off line. David Teague On Fri, 28 Jun 2002, faisal gillani wrote: Date: Fri, 28 Jun 2002 18:17:14 -0700 (PDT) From: faisal gillani [EMAIL PROTECTED] To: debian-user@lists.debian.org Subject: Ot c++ programming in linux Resent-Date: Fri, 28 Jun 2002 21:18:12 -0400 Resent-From: debian-user@lists.debian.org Well i am a newbie learning c++ these days we are being thaught on turbo c 3.0 but as like other things i want to work on c++ in linux .. so i installed gcc on my linux box but i dont have any idea how to install it for example i write a program as follows in turbo c #includestudio.h #includeconio.h void main (void) { printf(hello world); } how do i write the same program in gcc ? i have tried the same but it gives out error the #in... files not found what can i do how to compile this program ? thanks faisal = *º¤., ¸¸,.¤º*¨¨¨*¤ Allah-hu-Akber*º¤., ¸¸,.¤º*¨¨*¤ __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Ot c++ programming in linux
On Fri, Jun 28, 2002 at 11:36:31PM -0700, ben wrote: | On Friday 28 June 2002 06:56 pm, Scott Henson wrote: | On Fri, 2002-06-28 at 21:51, Eric G. Miller wrote: | On Fri, Jun 28, 2002 at 06:17:14PM -0700, faisal gillani wrote: |Well i am a newbie learning c++ these days we are |being thaught on turbo c 3.0 but as like other things |i want to work on c++ in linux .. so i installed gcc |on my linux box but i dont have any idea how to |install it for example i write a program as follows in |turbo c | | Install ajunta. Its better than turbo c. I use it all the time for my | engineering projects. | | where's ajunta available? i've googled but found only a document | reference to it. It's anjuta. http://anjuta.sourceforge.net/ Once, when I tried it, it seemed really immature. (that was quite a while ago) I also wanted something that worked for other languages, so I ended up learning vim more. Now that I'm proficient in vim (and some more shell commands, eg find) I wouldn't use anything else. YMMV. -D -- If anyone would come after me, he must deny himself and take up his cross and follow me. For whoever wants to save his life will lose it, but whoever loses his life for me and for the gospel will save it. What good is it for a man to gain the whole world, yet forfeit his soul? Or what can a man give in exchange for his soul? Mark 8:34-37 http://dman.ddts.net/~dman/ pgpEZ44KeK7w7.pgp Description: PGP signature
Re: Ot c++ programming in linux
On Sat, 2002-06-29 at 02:36, ben wrote: On Friday 28 June 2002 06:56 pm, Scott Henson wrote: On Fri, 2002-06-28 at 21:51, Eric G. Miller wrote: On Fri, Jun 28, 2002 at 06:17:14PM -0700, faisal gillani wrote: Well i am a newbie learning c++ these days we are being thaught on turbo c 3.0 but as like other things i want to work on c++ in linux .. so i installed gcc on my linux box but i dont have any idea how to install it for example i write a program as follows in turbo c Install ajunta. Its better than turbo c. I use it all the time for my engineering projects. where's ajunta available? i've googled but found only a document reference to it. Sorry, my fault its anjuta. apt-get install anjuta in either woody or sid. -- -Peace kid Scott Henson [EMAIL PROTECTED] God's the ultimate playa, so naturally He's going to have some haters, rapper Ice Cube said. But these haters need to realize that if you mess with the man upstairs, you will get your ass smote. True dat. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Ot c++ programming in linux
Well i am a newbie learning c++ these days we are being thaught on turbo c 3.0 but as like other things i want to work on c++ in linux .. so i installed gcc on my linux box but i dont have any idea how to install it for example i write a program as follows in turbo c #includestudio.h #includeconio.h void main (void) { printf(hello world); } how do i write the same program in gcc ? i have tried the same but it gives out error the #in... files not found what can i do how to compile this program ? thanks faisal = *º¤., ¸¸,.¤º*¨¨¨*¤ Allah-hu-Akber*º¤., ¸¸,.¤º*¨¨*¤ __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
RE: Ot c++ programming in linux
On 29-Jun-2002 faisal gillani wrote: Well i am a newbie learning c++ these days we are being thaught on turbo c 3.0 but as like other things i want to work on c++ in linux .. so i installed gcc on my linux box but i dont have any idea how to install it for example i write a program as follows in turbo c #includestudio.h #includeconio.h void main (void) { printf(hello world); } how do i write the same program in gcc ? i have tried the same but it gives out error the #in... files not found what can i do how to compile this program ? (that is C, not C++, but I remember those classes supposedly teaching C++ ) conio.h is a dos specific header, there is no good UNIX/Linux equivalent. In the above example it can be left out. Once you have removed that line the code will compile. gcc -Wall -W -pedantic hello.c -o hello the above line enables all warnings and will help you write clean code. 'hello.c' is the name of the source file you create, it will be output as a program called 'hello', that is what the -o is for. A common problem new coders have is they create a file called 'test' this is a bad name for a program because it has the possibility of being replaced by /bin/test when you run it. $ gcc test.c -o test $ test $ and nothing happens. TO be sure run all your programs with a path $ ./test # use the 'test' program in ./ (aka this directory) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Ot c++ programming in linux
On Sat, 2002-06-29 at 01:17, faisal gillani wrote: Well i am a newbie learning c++ these days we are being thaught on turbo c 3.0 but as like other things i want to work on c++ in linux .. so i installed gcc on my linux box but i dont have any idea how to install it for example i write a program as follows in turbo c #includestudio.h #includeconio.h void main (void) { printf(hello world); } how do i write the same program in gcc ? i have tried the same but it gives out error the #in... files not found what can i do how to compile this program ? thanks faisal = *º¤., ¸¸,.¤º*¨¨¨*¤ Allah-hu-Akber*º¤., ¸¸,.¤º*¨¨*¤ __ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] Three things: 1)Thats C, not C++ 2)conio.h is not an ANSI or ISO library, it is only used in Windows, I believe. The only thing I ever really used it for was getch() which can readily be replaced with getchar() from stdio.h. This is probably the source of your problems, just drop that include. 3)If you want to compile a C++ program, you will need g++ in addition to gcc. -- What was once is gone. What will be has not yet come. What is is all that is real. Live for the now. signature.asc Description: This is a digitally signed message part
Re: Ot c++ programming in linux
On Fri, Jun 28, 2002 at 06:17:14PM -0700, faisal gillani wrote: Well i am a newbie learning c++ these days we are being thaught on turbo c 3.0 but as like other things i want to work on c++ in linux .. so i installed gcc on my linux box but i dont have any idea how to install it for example i write a program as follows in turbo c #includestudio.h typo #includeconio.h header not found void main (void) undefined behavior { printf(hello world); no return statement } how do i write the same program in gcc ? news:comp.os.linux.development.apps can help, as can a few good books. BTW, you want g++ if you really want to do C++... -- Eric G. Miller egm2@jps.net -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Ot c++ programming in linux
On Fri, 2002-06-28 at 21:51, Eric G. Miller wrote: On Fri, Jun 28, 2002 at 06:17:14PM -0700, faisal gillani wrote: Well i am a newbie learning c++ these days we are being thaught on turbo c 3.0 but as like other things i want to work on c++ in linux .. so i installed gcc on my linux box but i dont have any idea how to install it for example i write a program as follows in turbo c Install ajunta. Its better than turbo c. I use it all the time for my engineering projects. -- -Peace kid Scott Henson [EMAIL PROTECTED] God's the ultimate playa, so naturally He's going to have some haters, rapper Ice Cube said. But these haters need to realize that if you mess with the man upstairs, you will get your ass smote. True dat. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: Ot c++ programming in linux
On Fri, 28 Jun 2002 18:24:31 -0700 (PDT) Sean 'Shaleh' Perry [EMAIL PROTECTED] wrote: On 29-Jun-2002 faisal gillani wrote: Well i am a newbie learning c++ these days we are being thaught on turbo c 3.0 but as like other things i want to work on c++ in linux .. so i installed gcc on my linux box but i dont have any idea how to install it for example i write a program as follows in turbo c #includestudio.h #includeconio.h void main (void) { printf(hello world); } how do i write the same program in gcc ? i have tried the same but it gives out error the #in... files not found what can i do how to compile this program ? (that is C, not C++, but I remember those classes supposedly teaching C++ ) conio.h is a dos specific header, there is no good UNIX/Linux equivalent. In the above example it can be left out. Once you have removed that line the code will compile. As a matter of fact, conio has been ported to Linux, and wether it's good or not is up to you to decide, take a look for yourself: http://ibiblio.org/pub/Linux/libs/ui/linux-conio-1.02.tgz gcc -Wall -W -pedantic hello.c -o hello the above line enables all warnings and will help you write clean code.'hello.c' is the name of the source file you create, it will be output as a program called 'hello', that is what the -o is for. A common problem new coders have is they create a file called 'test' this is a bad name for a program because it has the possibility of being replaced by/bin/test when you run it. $ gcc test.c -o test $ test $ and nothing happens. TO be sure run all your programs with a path $ ./test # use the 'test' program in ./ (aka this directory) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED] -- Best regards, Erik Main: [EMAIL PROTECTED] Alternative: [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]