Solved

Everyones opinioin

Posted on 1998-12-10
10
165 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
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
stack 22 173
difference between mmap and malloc/valloc + mmap fixed 18 274
Memory going from 12gb to 64gb or 96gb. worth it? 15 213
Assignment from incompatible pointer type? 2 34
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand and use pointers in the C programming language.
The goal of this video is to provide viewers with basic examples to understand how to create, access, and change arrays in the C programming language.

679 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