Solved

Everyones opinioin

Posted on 1998-12-10
10
163 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
 
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
New My Cloud Pro Series - organize everything!

With space to keep virtually everything, the My Cloud Pro Series offers your team the network storage to edit, save and share production files from anywhere with an internet connection. Compatible with both Mac and PC, you're able to protect your content regardless of OS.

 

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

Are your end users making ugly email signatures?

Have you left it up to your end users to create their own email signatures? Are they forgetting to add the company logo or using garish font colors? Take control and ensure all users have the same email signature.

Question has a verified solution.

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

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
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 opening and reading files in the C programming language.

911 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now