c------->c++ and c++------>c

V

vim

We can write c program in turbo c++ editor.But reverse is not true why?
i.e The program will not compile if u write c++ program in turbo c
editor
 
C

Chris Dollin

vim said:
We can write c program in turbo c++ editor.But reverse is not true why?
i.e The program will not compile if u write c++ program in turbo c
editor

This isn't about C; this is about some editor. Why the fircone should
/we/ know? Ask in a relevant group.

[And /why/, in an editor specialised to some specific programming languages,
would you expect it to compile a /different/ one? Would you expect
turbo perl to compile slano spitbol code, or manki '68 to compile
spiffi scheme code? Are you surprised when filling a petrol car with
diesel fuel doesn't work, or plugging your gas cooker into the electrical
outlet? Do you shave with a lawnmower? Do your hackers work on coffee?
Hang on ....]
 
C

Chris Dollin

osmium said:
I have saved a link to a special dictionary, just so I could resolve things
such as this, and it fails on this question. What is a hacker?

See the /jargon file/ for an entry and cultural stuff. Summary of the summary:
enthusiastic competent programmer.
Certainly not a hacker as used in the US?

(fx:elitist (fx:sniff)) You're thinking of /crackers/, I expect.
Owning such hackers is illegal in the US and has been for several years.

Decades. Over a century.

Don't take that dictionary /too/ seriously. (At least) one of the items on
that page is a joke - whether by, or on, the page-writer I don't know.
 
S

Stephen Sprunk

vim said:
We can write c program in turbo c++ editor.But reverse is not true why?
i.e The program will not compile if u write c++ program in turbo c
editor

This has nothing to do with your editor.

People sometimes _think_ they're writing C, but if they use a C++ compiler
odds are they are using the subset of C++ that _looks like_ C. Go run that
code through a real C compiler to find out if it's _actually_ C.

OTOH, no program that takes advantage of any of C++'s more interesting
features has any hope of compiling as a C program.

S
 
O

osmium

Chris Dollin said:
Don't take that dictionary /too/ seriously. (At least) one of the items on
that page is a joke - whether by, or on, the page-writer I don't know.

I assume you are talking about the haggis entry. I don't actually *read*
dictionaries, you know. We know enough about haggis to not get confused.

But I don't think being called a "head boy" would be an entirely good thing
over here. Doesn't sound like a real compliment.
 
D

Default User

Stephen said:
This has nothing to do with your editor.

People sometimes think they're writing C, but if they use a C++
compiler odds are they are using the subset of C++ that _looks like_
C. Go run that code through a real C compiler to find out if it's
actually C.

That depends. Most C++ compiler suites also contain the
implementation's C compiler. For instance, VC++ has a perfectly good C
compiler as well, which will be used if you invoke the C compiler.

It's been a while since I used Turbo C++, but my recollection is that
it's the same there.




Brian
 
D

Dave Thompson

<even more OT than before>

In en_US we (almost always?) say an active entity (person, engine,
etc.) 'runs' on fuel or energy. (But intransitively, 'xx runs on'
means to talk uselessly, syn. blather.) 'work on' connotes an activity
with a target or result; in this case the hackers would be brewing
coffee, or roasting beans, or some such.
See the /jargon file/ for an entry and cultural stuff. Summary of the summary:
enthusiastic competent programmer.


(fx:elitist (fx:sniff)) You're thinking of /crackers/, I expect.
Sniff is just a sound and not an effect, even if rerecorded. And an
elitist sniff is quite hard to distinguish. A pompous delivery of the
line, however, would make (much more) sense. HTH:)


- David.Thompson1 at worldnet.att.net
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top