Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Everyones opinioin

Posted on 1998-12-10
10
Medium Priority
?
172 Views
Last Modified: 2010-04-15
What is the difference between C and C++?
What is the Programing language used most for windows programs?
0
Comment
Question by:bradsoblesky
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
  • +2
10 Comments
 
LVL 8

Accepted Solution

by:
Answers2000 earned 0 total points
ID: 1255016
1. C++ is largely a superset of C, adding a new standard library, OO features (classes), exceptions, references, templates

2. Which Programming Language - VB !  Then probably C++ if you count all flavours.  Most commercial apps are written in C or C++, older ones in C, newer ones in C++.
0
 

Author Comment

by:bradsoblesky
ID: 1255017
One more thing does C++ exclude anything that C had?
0
 
LVL 4

Expert Comment

by:pagladasu
ID: 1255018
I think this question should be framed as : What are the features in C that is different / not supported in C++?
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
LVL 11

Expert Comment

by:alexo
ID: 1255019
There are several obscure C features not supported in C++.  However, you're better off not using them at all.
Examples:
- Old (K&R) style function arguments declaration (use the new style).
- Implicit conversions (use explicit casts).
- F() means "unknown arguments" in C, "no arguments" in C++ (use F(void) in C).
- Etc.
0
 
LVL 16

Expert Comment

by:heyhey_
ID: 1255020
>> What is the Programing language used most for windows programs?

>>  2. Which Programming Language - VB !  

so VisualBasic is programming language ???  i am confused ....

you'd better learn some C++ (VC) or Pascal (Delphi ) ...
0
 

Author Comment

by:bradsoblesky
ID: 1255021
Is Windows 95 or 98 written in C or C++ or what language?
0
 
LVL 16

Expert Comment

by:heyhey_
ID: 1255022
Microsoft started it in Pascal, then changed the language to C (maybe C++ ???) ...
 so the core Windows functions still use Pascal calling conventions (for backward compatibility ), but probably they are implemened in C.

some of the real fundamental stuff (drivers etc.) is writtenin Assembler of course ...

but making Windows is real "system programming", "aplication programming" is very different ...
0
 

Author Comment

by:bradsoblesky
ID: 1255023
Thanks for your time I was trying to figure out what language to buy.
0
 
LVL 8

Expert Comment

by:Answers2000
ID: 1255024
Microsoft started it in Pascal - wrong AFAIK

Previously versions of Windows were written in assembler and I think C.  Windows 3.0 internals are full of hand-coded assembler stuff to save a few bytes

Current versions assembler, C, and C++.

The rumour is that Windows using Pascal calling convention because it took 1 less disk for the installation (1 disk times a million (or whatever number) installations is worth saving).  Pascal calling convention makes shorter code than C calling convention


0
 
LVL 16

Expert Comment

by:heyhey_
ID: 1255025
>> Pascal calling convention makes shorter code than C calling convention

GOOD compiler makes much more shorter code that bad compiler ... as far as i remember the only difference between C and Pascal calling convestions is that they put parameters in stack in different way - there is no aditional code !!!

and pure logic tells me that if your code is using Pascal calling convention, you've propably written (at least) the first version in Pascal (and that is probably Windows 1.x / 2.x) ... from now on the calling convention remains the same - for backward compatibility ... (and probably Windows is rewritten in C / Assempler a long time ago ... but i don't think there is so much Assembler code looking at the speed of my Win95/WinNT :-)

>> Windows 3.0 internals are full of hand-coded assembler stuff to save a few bytes
:-)
i've programming in pure Assembler for more then 5 years ... and i can tell you that good C compiler (Watcom for example) can make much more faster and smaller code that a single human.

but there are always rumours ...
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use while-loops in the C programming language.

721 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question