473,883 Members | 1,645 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Advantages of C++ over C - request for information

Hello.

I have to create short (1 hour) presentation about C++ advantages over
C. Are there any good articles/texts/etc. about such topic?

Personally, I'm quite proficient at C++ myself (e.g. I've read and
understood many books from H. Sutter, A. Alexandrescu etc.), so I do not
need to learn about C++ before making that presentation. I am able to
write such presentation myself, but of course - if somebody else written
similar text, I would like to use it.

Thanks in advance for any ideas, comments and pointers to articles.

--
Best regards from
Kamil Burzynski
Jul 23 '05 #1
17 7847
Kamil Burzynski wrote:
I have to create short (1 hour) presentation about C++ advantages over
C. Are there any good articles/texts/etc. about such topic?
Have you tried the Web? www.google.com is a good starting point.
[...]

Jul 23 '05 #2
"Kamil Burzynski" <K.*********@us unto.adbglobal. com> wrote in message
news:20******** *************@k burzynski1.adb. pl...
I have to create short (1 hour) presentation about C++ advantages over
C. Are there any good articles/texts/etc. about such topic?


Take a look at chapter 1 of 'Ruminations on C++."

Also, here's an example:

map<string, int> words;
string word;

while (cin >> word)
++words[word];

This code fragment counts how many times each distinct word appears in the
standard input stream. You might try rewriting it in C and see how much
more code it takes.
Jul 23 '05 #3
On Mon, 07 Mar 2005 15:39:27 GMT
"Andrew Koenig" <ar*@acm.org> wrote:
"Kamil Burzynski" <K.*********@us unto.adbglobal. com> wrote in message
news:20******** *************@k burzynski1.adb. pl...

Take a look at chapter 1 of 'Ruminations on C++."

Also, here's an example:

map<string, int> words;
string word;

while (cin >> word)
++words[word];

This code fragment counts how many times each distinct word appears in the
standard input stream. You might try rewriting it in C and see how much
more code it takes.


Thanks a lot - great example! By the way: any similar example for type traits,
some advanced template<> (i.e. something more than containers) snippets?

--
Best regards from
Kamil Burzynski
Jul 23 '05 #4
On Mon, 07 Mar 2005 10:37:46 -0500
Victor Bazarov <v.********@com Acast.net> wrote:
Kamil Burzynski wrote:
I have to create short (1 hour) presentation about C++ advantages over
C. Are there any good articles/texts/etc. about such topic?


Have you tried the Web? www.google.com is a good starting point.


Yes, I'm googling for this subject... for now I've end up with tons of
C++ tutorials ;p I will keep going on, though.

--
Best regards from
Kamil Burzynski
Jul 23 '05 #5
On Mon, 7 Mar 2005 16:34:24 +0100,
Kamil Burzynski <K.*********@us unto.adbglobal. com> wrote
in Msg. <20************ *********@kburz ynski1.adb.pl>
I have to create short (1 hour) presentation about C++ advantages over
C. Are there any good articles/texts/etc. about such topic?


That's an odd topic. Any talk entitled "The advantages of A over B" sounds
like a misguided attempt to sell product A to a customer who prefers B.
But if this was the case it would be better to entitle the talk "On the
differences between A and B", which of course would also unveil the
advantages that B has over A.

And 1 hour is by no means "short". What's the background of this question?
Just curious.

--Daniel
Jul 23 '05 #6
On 7 Mar 2005 16:20:12 GMT
Daniel Haude <ha***@kir.phys net.uni-hamburg.de> wrote:
On Mon, 7 Mar 2005 16:34:24 +0100,
I have to create short (1 hour) presentation about C++ advantages over
C. Are there any good articles/texts/etc. about such topic?
That's an odd topic. Any talk entitled "The advantages of A over B" sounds
like a misguided attempt to sell product A to a customer who prefers B.
But if this was the case it would be better to entitle the talk "On the
differences between A and B", which of course would also unveil the
advantages that B has over A.


Good point. This situation is slightly similar, however :) Take a look
below for more explaination.
And 1 hour is by no means "short". What's the background of this question?
Just curious.


Well, lets say, that "long" is few days - 8h each ;)

There is many C programmers, that do avoid C++ just because "it is too
bloated, C++ are bigger and slower, I can use struct instead of class and have
rougly the same functionality, etc.". I would like to show, that C++
is not necessarily overbloated, and it have many useful mechanisms, that
are improving programmers efficiency on long-term project development.

--
Best regards from
Kamil Burzynski
Jul 23 '05 #7

Kamil Burzynski wrote:
Hello.

I have to create short (1 hour) presentation about C++ advantages over C. Are there any good articles/texts/etc. about such topic?


Don't forget to mention that C++ is C with two plusses...

Jul 23 '05 #8
Noah Roberts wrote:
Kamil Burzynski wrote:
Hello.

I have to create short (1 hour) presentation about C++ advantages


over
C. Are there any good articles/texts/etc. about such topic?

Don't forget to mention that C++ is C with two plusses...


Why is that an advantage? Takes almost 200% longer to type...
Jul 23 '05 #9
"Kamil Burzynski" writes:
I have to create short (1 hour) presentation about C++ advantages over
C. Are there any good articles/texts/etc. about such topic?

Personally, I'm quite proficient at C++ myself (e.g. I've read and
understood many books from H. Sutter, A. Alexandrescu etc.), so I do not
need to learn about C++ before making that presentation. I am able to
write such presentation myself, but of course - if somebody else written
similar text, I would like to use it.

Thanks in advance for any ideas, comments and pointers to articles.


Try Bjarne Stroustup's site:

http://www.research.att.com/~bs/C++.html

I haven't looked but there must be some good stuff there. I know he has a
good list of advantages in the Second Edition of _The C++ Programming
Language_.
Jul 23 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
7434
by: bissatch | last post by:
Hi, Generally if I re-use code, I use a function. If I need to use these functions over a number of pages I write the function to an include file where all pages have access. So when should I ever use PHP classes instead. I have learned how to put together PHP classes but never seen a reason to use them where I can simply use a function.
65
6781
by: Anthony_Barker | last post by:
I have been reading a book about the evolution of the Basic programming language. The author states that Basic - particularly Microsoft's version is full of compromises which crept in along the language's 30+ year evolution. What to you think python largest compromises are? The three that come to my mind are significant whitespace, dynamic typing, and that it is interpreted - not compiled. These three put python under fire and cause...
8
10662
by: turnit \(removethis\) | last post by:
I have a login form that uses the post method to carry the information to the next page. The form works just fine in ie6.0, but fails in mozilla and fails in ie5.2 on a mac. "HTTP/1.1 400 Bad Request" was the original error msg now that I reinstalled iislockdown and urscan I get "The parameter is incorrect." If I use the get method with this form it works just fine on everything. I can't say for certain but I think this problem started...
3
2165
by: JT | last post by:
is there a way to clear out the request.form collection, or the entire request object, for that matter?? im using server.transfer and this can be troublesome in cases where you need the request.form items to be reset. tia jt
6
3154
by: Daniel Rimmelzwaan | last post by:
I want to send a biztalk document to an aspx page, and I need to see some sample code, because I just can't make it work. I have a port with transport type HTTP, pointing to my aspx page, something like http://myserver/mypage.aspx. From there it gets blurry, because I just can't figure out how to do the rest. Does anybody have a sample page for me that I can take a look at? Just a simple one that takes whatever biztalk sends and saves it...
20
5007
by: yaron | last post by:
Hi, 1. I am familiar with .NET 1.1 and not with .NET 2.0 . if i should start a new networking project should i write it with .net 2.0 beta or write it with .net 1.1 ? 2. What are the advantages of .NET 2.0 over NET 1.1 that i should consider when writing a new infrastrcuture networking project ?
0
3851
by: Jack Wright | last post by:
Dear All, I have a web Application "http://localhost/Web/WebForm1.aspx" that calls a WebService from "http://localhost/webserviceapp/service1.asmx"...I have set the executionTimeout to 10 secs in Web.Config where my WebService is installed. <httpRuntime executionTimeout="10" appRequestQueueLimit="2" /> When I call a method "TestPlan" which takes more than 10 secs my web Page gets the following error:
1
36776
by: SenthilPSL | last post by:
When I call a webservice on IIS on Windows 2000 Server with .NET runtime 2.0, I get the following Error. System.Net.WebException: The operation has timed out From ASPX Pages, I call the web service, which in turn calls dlls for executing the sotred procedure. SP runs for about 10 mins. (It has to; because the application demands running such big SP in synchronous mode). I have set the execution timeout to 1 hour both in website (for ASPX)...
0
9940
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11141
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10742
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10847
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10415
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9573
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
4611
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4220
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3232
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.