- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- C , CANSI & C++ .doubts and Queries!!!
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2004 12:04 AM
06-20-2004 12:04 AM
The doubt is ,
1)What is the difference between C and C++ ?,
2)CANSI is available in all HP-UX ver. ,
I can compile C programs very well.
But can I compile my C++ source program in CANSI ?
3) If I know C , can i write program for C++ ?
Can anyone focus some light on C and C++ it,
R Veri.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2004 03:34 AM
06-20-2004 03:34 AM
Re: C , CANSI & C++ .doubts and Queries!!!
1) C is a traditinal 3G language; mainly is used to write low level code (driver, OS, etc.); C++ is 4G language, based on OOPS (Object Oriented Programming System). C++ give more powerful to programmer.
2)AFAIK, C++ is not full ANSI standard; library of C++ are not standard while language syntax is coded.
3) Yes, but you need learn about C++ and before this you must learn about OOPS. C++ and C have same syntax but different programming concept.
At last, more C++ precompiler make a C source code.
H.T.H.
Antonio Vigliotti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2004 07:50 PM
06-20-2004 07:50 PM
Re: C , CANSI & C++ .doubts and Queries!!!
Here are my answers to ur qs:
1)Check out the following links:
a)HP C++ Programmer's Guide
http://docs.hp.com/hpux/onlinedocs/92501-90029/92501-90029.html
(--->Overview of HP C++ ---> How C++ differs from C).
b) http://faq.cprogramming.com/cgi-bin/smartfaq.cgi?answer=1047588051&id=1043284376
c) http://www.faqs.org/qa/qa-117.html
d) http://archives.seul.org/linuxgames/Nov-2002/msg00031.html
e) http://www.devx.com/tips/Tip/5590
2) Starting HP-UX 11i v2, the HP aC++ compiler, version A.05.50, combines aC++ and C compiler into one. It provides a common C++/ANSI C compiler with a very high level of compatibility with the previous release of the HP C compiler. Refer to the following docs for more information:
- http://docs.hp.com/hpux/onlinedocs/B3901-90008/B3901-90008.html
- http://docs.hp.com/hpux/onlinedocs/5187-2289/5187-2289.html
3) You will need to learn OOPS, and atleast understand the difference between C++ and C very well, before attempting to do so.
Hope this helps.
Regards,
Sri Ram
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2004 08:17 PM
06-20-2004 08:17 PM
Solution1) What is the difference between C and C++ ?
C is a procedural language based on functions. C++ is an object oriented language the conceps of objects.
2) CANSI is available in all HP-UX ver. ,
I can compile C programs very well.
But can I compile my C++ source program in CANSI ?
CANSI I assume you mean ANSI C. On all HP-UX boxed the cc available is not an ANSI C compiler. ANSI C compiler needs to be bought separately.
You cannot complile your C++ programs on that compiler.
3) If I know C , can i write program for C++ ?
Yes and no. C programs can be compiled by the C++ compiler so in a way you can use the C++ compiler to compile C programs.
No because you need the object concept to write effective C++ programs.
manish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2004 09:21 PM
06-20-2004 09:21 PM
Re: C , CANSI & C++ .doubts and Queries!!!
1> C is a procedural language whereas C++ is object oriented language(OOPs)
2> No
3>C++ is the extension of C, you need to learn C++, But knowing C helps in C++