Solved

Everyones opinioin

Posted on 1998-12-10
10
164 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
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

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…
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…
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.

786 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