Solved

Everyones opinioin

Posted on 1998-12-10
10
162 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
Comment Utility
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
Comment Utility
One more thing does C++ exclude anything that C had?
0
 
LVL 4

Expert Comment

by:pagladasu
Comment Utility
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
Comment Utility
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_
Comment Utility
>> 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
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

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

Expert Comment

by:heyhey_
Comment Utility
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
Comment Utility
Thanks for your time I was trying to figure out what language to buy.
0
 
LVL 8

Expert Comment

by:Answers2000
Comment Utility
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_
Comment Utility
>> 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
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 recursion in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use nested-loops in the C programming language.

744 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

9 Experts available now in Live!

Get 1:1 Help Now