[fsug-tvm] Re: C++

2009-06-28 Thread ranjith s kumar
#05e97e48fb64668a with regards Ranjith S. Kumar,Lecturer In Mechanical Engineering, Government Engineering, Collge,Barton Hill,Thiruvananthapuram -35,Mob.9447295213 --- On Sun, 28/6/09, BINNY THOMAS binn...@gmail.com wrote: From: BINNY THOMAS binn...@gmail.com Subject: [fsug-tvm] Re: C

[fsug-tvm] Re: C++

2009-06-28 Thread BINNY THOMAS
Hey I was just kidding! I installed 'Codeblocks' according to your post and was just blown away by the sheer beauty of it and realized my ignorance.[?] On Sun, Jun 28, 2009 at 1:22 PM, Visakh gokulda...@gmail.com wrote: On Jun 28, 10:10 am, BINNY THOMAS binn...@gmail.com wrote: Ok Ok.

[fsug-tvm] Re: C++

2009-06-28 Thread vibi sreenivasan
eclipse , kdevelop On Sat, Jun 27, 2009 at 10:10 PM, BINNY THOMASbinn...@gmail.com wrote: Windows has got good 'IDE's . The only one I heard about for Linux is Anjuta. Is there any others? On Thu, Jun 25, 2009 at 7:27 PM, Visakh gokulda...@gmail.com wrote: I am aware of that - I have been

[fsug-tvm] Re: C++

2009-06-27 Thread Visakh
Hi, On Jun 27, 9:40 pm, BINNY THOMAS binn...@gmail.com wrote: Windows has got good 'IDE's . The only one I heard about for Linux is Anjuta. Is there any others? There is no dearth of IDEs for Gnu/Linux. Many of them are professional quality. My favourites include KDevelop and Code::Blocks.

[fsug-tvm] Re: C++

2009-06-27 Thread BINNY THOMAS
Ok Ok. Please forgive my Ignorance.I realise that I have got a lot more to learn. Thanks. On Sun, Jun 28, 2009 at 7:56 AM, Visakh gokulda...@gmail.com wrote: Hi, On Jun 27, 9:40 pm, BINNY THOMAS binn...@gmail.com wrote: Windows has got good 'IDE's . The only one I heard about for Linux is

[fsug-tvm] Re: C++

2009-06-25 Thread BINNY THOMAS
I got the earlier code to work in Turbo c++, I know how to compile in gcc, but I don't know how to execute it. How??? On Wed, Jun 24, 2009 at 9:49 PM, stranger in black. gnu...@gmail.comwrote: i just copied it from terminal. On Wed, Jun 24, 2009 at 9:47 PM, Anoop Jacob Thomas

[fsug-tvm] Re: C++

2009-06-25 Thread Visakh
Hi, On Jun 25, 2:12 pm, BINNY THOMAS binn...@gmail.com wrote: I got the earlier code to work in Turbo c++, I know how to compile in gcc, but I don't know how to execute it. How??? Once you compile it, you should get an executable in the same folder. I got a file named 'a.out'. I compiled

[fsug-tvm] Re: C++

2009-06-25 Thread Visakh
I am posting the ASCII image again. Hope it will be correct this time: !! !! !!! !! !!!

[fsug-tvm] Re: C++

2009-06-25 Thread stranger in black.....
if it is named code.c, afr compiling type ./code to execute it On Thu, Jun 25, 2009 at 2:42 PM, BINNY THOMAS binn...@gmail.com wrote: I got the earlier code to work in Turbo c++, I know how to compile in gcc, but I don't know how to execute it. How??? On Wed, Jun 24, 2009 at 9:49 PM,

[fsug-tvm] Re: C++

2009-06-25 Thread Visakh
On Jun 25, 2:23 pm, stranger in black. gnu...@gmail.com wrote: if it is named code.c, afr compiling type ./code to execute it That depends. I got 'a.out' instead of 'map'. So I had to give ./a.out Regards, Gokul Das --~--~-~--~~~---~--~~ Freedom is the only

[fsug-tvm] Re: C++

2009-06-25 Thread Syam
Aargh.. If you want a specific output file name, use the -o option for gcc. gcc -o code code.c = will generate an executable file named code. On my machine too, omitting the -o option generates a.out. -- Regards, Syam sya...@gmail.com --~--~-~--~~~---~--~~

[fsug-tvm] Re: C++

2009-06-25 Thread BINNY THOMAS
Thanks for the help everyone! On Thu, Jun 25, 2009 at 4:05 PM, Syam sya...@gmail.com wrote: Aargh.. If you want a specific output file name, use the -o option for gcc. gcc -o code code.c = will generate an executable file named code. On my machine too, omitting the -o option generates

[fsug-tvm] Re: C++

2009-06-25 Thread Visakh
I am aware of that - I have been using gcc exclusively for experimentation. If you look closely, I didn't use gcc. I used g++ (I concede, its not the right choice). And I really wasn't bothered about the output filename or format- so just neglected the o/p filename part. I had to specify that you

[fsug-tvm] Re: C++

2009-06-24 Thread Anoop Jacob Thomas
Yeah it is missing few spaces. -- Anoop Jacob Thomas SCT College of Engineering, Trivandrum http://anoop.caremedia.org --~--~-~--~~~---~--~~ Freedom is the only law. Freedom Unplugged http://www.ilug-tvm.org You received this message because you are subscribed

[fsug-tvm] Re: C++

2009-06-24 Thread stranger in black.....
i just copied it from terminal. On Wed, Jun 24, 2009 at 9:47 PM, Anoop Jacob Thomas anoo...@gmail.comwrote: Yeah it is missing few spaces. -- Anoop Jacob Thomas SCT College of Engineering, Trivandrum http://anoop.caremedia.org -- Junise Safvan m...@gnuise.co.cc

Re: [OT] Re: [fsug-tvm] Re: C++

2009-06-23 Thread Anoop Jacob Thomas
the code is superb. In fact obfuscated code, using conditional operator. Hey getting warnings is not a problem. It will still create an executable and you can execute it. So it compiled with few warnings mentioned by vibi sreenivasan test.c:12:183: warning: unknown escape sequence '\,'

Re: [OT] Re: [fsug-tvm] Re: C++

2009-06-23 Thread Anoop Jacob Thomas
Check this code. I don't know who wrote it. Anyway I have it with me for 3-4 years. Find the attached file, compile it and see the output. -- Anoop Jacob Thomas http://anoop.caremedia.org --~--~-~--~~~---~--~~ Freedom is the only law. Freedom Unplugged

Re: [OT] Re: [fsug-tvm] Re: C++

2009-06-23 Thread stranger in black.....
അടിപൊളി... ./map !! !! !!! !! !!! !! !! ! !!! !!

[fsug-tvm] Re: C++

2009-06-23 Thread Visakh
Hi, You do realise that the output posted above doesn't make any sense, don't you? Looks like it is missing a few spaces in each line. Regards, Gokul Das --~--~-~--~~~---~--~~ Freedom is the only law. Freedom Unplugged http://www.ilug-tvm.org You received this

Re: [OT] Re: [fsug-tvm] Re: C++

2009-06-20 Thread BINNY THOMAS
Yeah I was thinking of the same thing(Turbo c++). Its good for showing off. On Fri, Jun 19, 2009 at 7:44 AM, Mahesh Mohan maheshmohan...@gmail.comwrote: I compiled it using Turbo C++ in Linux Mint using DosBox. Got the output. = .--. |o_o |

Re: [OT] Re: [fsug-tvm] Re: C++

2009-06-19 Thread Syam
On Fri, Jun 19, 2009 at 10:40 AM, Aneesh A aneesh...@gmail.com wrote: Yes. He has sone it using Dosbox. It is easy.. I know it is. I was not commenting on the difficulty, but rather amused at why such a crappy and old compiler needs to be run (especially when gcc is available). --

Re: [OT] Re: [fsug-tvm] Re: C++

2009-06-19 Thread bincy mb
Hi all... Me just going through space-kerala.org. Its realy amazing t... their works.. while visited in galery there..felt so proud about free software foundation.. I am new Here..I only hava little experince with Gnu/linux and free software. While i amdoing my final year b.tech me

Re: [OT] Re: [fsug-tvm] Re: C++

2009-06-19 Thread Aneesh A
He (and I) Don't know how to compile Tc++ comparitable programs in gcc That is what... On 6/19/09, bincy mb bincy...@gmail.com wrote: Hi all... Me just going through space-kerala.org. Its realy amazing t... their works.. while visited in galery there..felt so proud

Re: [OT] Re: [fsug-tvm] Re: C++

2009-06-19 Thread Prasad SR
On Fri, Jun 19, 2009 at 9:46 PM, Aneesh A aneesh...@gmail.com wrote: He (and I) Don't know how to compile Tc++ comparitable programs in gcc That is what... google :) -- -- Regards, Prasad.S.R You can either ask me to do something. Or tell me how you want it done. Not both. If you

Re: [OT] Re: [fsug-tvm] Re: C++

2009-06-19 Thread Mahesh Mohan
That's not the real problem. Our syllabus specifies Turbo C as compiler ! = .--. |o_o | |:_ / | / / \ \ (|| ) /'\_ _ / `\ \___)=(___/ http://maheshmohan.wordpress.com മഹേഷ് മോഹന്‍ എം.യു

Re: [OT] Re: [fsug-tvm] Re: C++

2009-06-19 Thread Aneesh A
Turbo C++ programs can be compiled on GCC, I think with some tricks On 6/19/09, Mahesh Mohan maheshmohan...@gmail.com wrote: That's not the real problem. Our syllabus specifies Turbo C as compiler ! = .--. |o_o | |:_ / | / / \

Re: [OT] Re: [fsug-tvm] Re: C++

2009-06-19 Thread Roshan P Koshy
turbo c is ok.. GCC works well with me..though it did give warnings when it compiled the above interesting program... the warnings are not serious..sometimes they are.. but not so serious as errors... i saved the program as h.c gcc -o h h.c ./h it worked fine...

Re: [OT] Re: [fsug-tvm] Re: C++

2009-06-18 Thread vibi sreenivasan
i m gettin error: expected constructor, destructor, or type conversion before ‘’ token On 6/18/09, stranger in black. gnu...@gmail.com wrote: I compiled it using geany. working fine add int before main.. On Thu, Jun 18, 2009 at 8:37 AM, BINNY THOMAS

Re: [OT] Re: [fsug-tvm] Re: C++

2009-06-18 Thread BINNY THOMAS
I am getting an 'Unknown escape sequence error'. Weirdest program I had ever seen! Tried to compile it on gcc. On Thu, Jun 18, 2009 at 2:18 PM, vibi sreenivasan vibisreeniva...@gmail.com wrote: i m gettin error: expected constructor, destructor, or type conversion before ‘’ token On

Re: [OT] Re: [fsug-tvm] Re: C++

2009-06-18 Thread Jagan Nadh
I am getting the same error. jagan On Thu, Jun 18, 2009 at 4:02 PM, BINNY THOMAS binn...@gmail.com wrote: I am getting an 'Unknown escape sequence error'. Weirdest program I had ever seen! Tried to compile it on gcc. On Thu, Jun 18, 2009 at 2:18 PM, vibi sreenivasan

Re: [OT] Re: [fsug-tvm] Re: C++

2009-06-18 Thread Syam Krishnan
On 06/18/2009 02:18 PM, vibi sreenivasan wrote: i m gettin error: expected constructor, destructor, or type conversion before ‘’ token Do not try to compile it using a C++ compiler. Use a C compiler (i.e. use gcc instead of g++). main() can be called recursively only in C and not in C++.

Re: [OT] Re: [fsug-tvm] Re: C++

2009-06-18 Thread Jagan Nadh
The error message from gcc is given below gcc -o poem -c poem.c poem.c:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘’ token poem.c:4:183: warning: unknown escape sequence '\,' poem.c:4:183: warning: unknown escape sequence '\+' poem.c:4:183: warning: unknown escape sequence

Re: [OT] Re: [fsug-tvm] Re: C++

2009-06-18 Thread Jagan Nadh
g++ gives the following error g++ -o poem -c poem.c poem.c:1: error: expected constructor, destructor, or type conversion before ‘’ token On Thu, Jun 18, 2009 at 5:43 PM, Jagan Nadh jagana...@gmail.com wrote: The error message from gcc is given below gcc -o poem -c poem.c poem.c:1: error:

Re: [OT] Re: [fsug-tvm] Re: C++

2009-06-18 Thread Syam Krishnan
On 06/18/2009 05:45 PM, Jagan Nadh wrote: g++ gives the following error g++ -o poem -c poem.c poem.c:1: error: expected constructor, destructor, or type conversion before ‘’ token Using g++ is pointless. The invalid characters are probably coming from copying text from the browser/mail

Re: [OT] Re: [fsug-tvm] Re: C++

2009-06-18 Thread Yadu Rajiv
compiles as a c and c++ console proj in codeblocks using gcc for windows.. and its *#include* not *include* On Thu, Jun 18, 2009 at 5:51 PM, Syam Krishnan sya...@gmail.com wrote: On 06/18/2009 05:45 PM, Jagan Nadh wrote: g++ gives the following error g++ -o poem -c poem.c poem.c:1:

Re: [OT] Re: [fsug-tvm] Re: C++

2009-06-18 Thread Jagan Nadh
Now out put is ok. Still some warning are there gcc test.c test.c:11:183: warning: unknown escape sequence '\,' test.c:11:183: warning: unknown escape sequence '\+' test.c:11:183: warning: unknown escape sequence '\l' test.c:11:183: warning: unknown escape sequence: '\040' test.c:11:183: warning:

Re: [OT] Re: [fsug-tvm] Re: C++

2009-06-18 Thread Aneesh A
Nice... -- Call me: +91 9447 926 826 For all hardware and software services, Computer assembling, Software Installation etc. Visit my blog http://xtenders.blogspot.com/ Earn money free: http://www.rupeemail.in/rupeemail/invite.do?in=MTY0NTQxJSMlaHlzaUt4V29EVkJVNFNxdTYwYWt0MzVDTw==

Re: [OT] Re: [fsug-tvm] Re: C++

2009-06-18 Thread Syam Krishnan
On 06/18/2009 05:55 PM, Yadu Rajiv wrote: compiles as a c and c++ console proj in codeblocks using gcc for windows.. Perhaps. But strictly, it need not as a C++ program. Syam --~--~-~--~~~---~--~~ Freedom is the only law. Freedom Unplugged

Re: [OT] Re: [fsug-tvm] Re: C++

2009-06-18 Thread vibi sreenivasan
i have tried that file i am getting error test.c:12:183: warning: unknown escape sequence '\,' test.c:12:183: warning: unknown escape sequence '\+' test.c:12:183: warning: unknown escape sequence '\l' test.c:12:183: warning: unknown escape sequence: '\040' test.c:12:183: warning: unknown escape

Re: [OT] Re: [fsug-tvm] Re: C++

2009-06-18 Thread Shino Jacob
test.c was fine. i got the output, nice, 839 bytes but out was 2.3k On Thu, Jun 18, 2009 at 10:24 PM, Shino Jacobshinoja...@gmail.com wrote: i could compile it, but out not exactly same. I changed some \ to \\ one thing i found about gedit is that if i give \ to be replaced with \\ it does

Re: [OT] Re: [fsug-tvm] Re: C++

2009-06-18 Thread stranger in black.....
a wild guess u have to install the build-essential package if u r using ubuntu.. On Thu, Jun 18, 2009 at 10:28 PM, Shino Jacob shinoja...@gmail.com wrote: test.c was fine. i got the output, nice, 839 bytes but out was 2.3k On Thu, Jun 18, 2009 at 10:24 PM, Shino

Re: [OT] Re: [fsug-tvm] Re: C++

2009-06-18 Thread Mahesh Mohan
I compiled it using Turbo C++ in Linux Mint using DosBox. Got the output. = .--. |o_o | |:_ / | / / \ \ (|| ) /'\_ _ / `\ \___)=(___/ http://maheshmohan.wordpress.com മഹേഷ് മോഹന്‍ എം.യു

[fsug-tvm] Re: C++

2009-06-17 Thread Navaneeth T
his C program won the first prize in International obfuscated C code contest (IOCCC) held recently. can u guess the output of this prog? -- INFOMATIC SYSTEMS Mob::09947834438 Computer Sales and Service GNU\Linux Support Provider Networking and for all digital consumables

[OT] Re: [fsug-tvm] Re: C++

2009-06-17 Thread Syam Krishnan
On 06/18/2009 07:45 AM, Jikku Jose wrote: Someone please post the output .. very lazy to compile it :) If this works on your machine (I'll tell you why it may not), you'll see te following output: start .. On the

Re: [OT] Re: [fsug-tvm] Re: C++

2009-06-17 Thread Navaneeth T
Yaaa u got it How is it -- INFOMATIC SYSTEMS Mob::09947834438 Computer Sales and Service GNU\Linux Support Provider Networking and for all digital consumables --~--~-~--~~~---~--~~ Freedom is the only law. Freedom Unplugged http://www.ilug-tvm.org You

Re: [OT] Re: [fsug-tvm] Re: C++

2009-06-17 Thread BINNY THOMAS
Nope,It doesn't compile on mine. Unknown escape sequence errors. On Thu, Jun 18, 2009 at 7:59 AM, Navaneeth T nava...@gmail.com wrote: Yaaa u got it How is it -- INFOMATIC SYSTEMS Mob::09947834438 Computer Sales and Service GNU\Linux Support Provider Networking and for all digital

Re: [OT] Re: [fsug-tvm] Re: C++

2009-06-17 Thread stranger in black.....
I compiled it using geany. working fine add int before main.. On Thu, Jun 18, 2009 at 8:37 AM, BINNY THOMAS binn...@gmail.com wrote: Nope,It doesn't compile on mine. Unknown escape sequence errors. On Thu, Jun 18, 2009 at 7:59 AM, Navaneeth T nava...@gmail.com wrote: