473,406 Members | 2,467 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

What kind of problems is c++ best at solving?

nb
What kind of problems is c++ best at solving?
Jul 22 '05 #1
7 1426
nb wrote:
What kind of problems is c++ best at solving?


Problems in the computer domain.

Jul 22 '05 #2
nb wrote:
What kind of problems is c++ best at solving?


Complicated ones. The more broadly defined the problem, the more
advantage you get from using C++.

In D&E, Stroustrup says C++ never was intended to be "best" at any
particular task. However, it should be at least second-best at almost
anything. For string manipulation, you might want a particular
scripting language, e.g. Perl. For frequent calculations involving
large arrays of numbers, Fortran may be your first choice. However, if
you have to tackle a problem that involves both string manipulation and
vector mathematics, I don't know of a more appropriate language than C++.

-Jeff

Jul 22 '05 #3
"nb" <nb@ned.net> schreef in bericht
news:64********************************@4ax.com...
What kind of problems is c++ best at solving?

The ones that make you go oooooh

Jul 22 '05 #4
"Jeff Schwab" <je******@comcast.net> schreef in bericht
news:kt********************@comcast.com...
nb wrote:
What kind of problems is c++ best at solving?
Complicated ones. The more broadly defined the problem, the more
advantage you get from using C++.

In D&E, Stroustrup says C++ never was intended to be "best" at any
particular task. However, it should be at least second-best at almost
anything. For string manipulation, you might want a particular
scripting language, e.g. Perl.


Are you considering expressiveness or performance?
I don't know why C++ would score less in string manipulation performance
than Perl would...
For frequent calculations involving
large arrays of numbers, Fortran may be your first choice. However, if
you have to tackle a problem that involves both string manipulation and
vector mathematics, I don't know of a more appropriate language than C++.

-Jeff


Microsoft Visual Basic tends to be better!


(I hope it is realised that I am kidding)

Jul 22 '05 #5
Wouter Lievens wrote:
"Jeff Schwab" <je******@comcast.net> schreef in bericht
news:kt********************@comcast.com...
nb wrote:
What kind of problems is c++ best at solving?
Complicated ones. The more broadly defined the problem, the more
advantage you get from using C++.

In D&E, Stroustrup says C++ never was intended to be "best" at any
particular task. However, it should be at least second-best at almost
anything. For string manipulation, you might want a particular
scripting language, e.g. Perl.

Are you considering expressiveness or performance?


Expressiveness, assuming performance to be roughly equal.
I don't know why C++ would score less in string manipulation performance
than Perl would...


Then you don't really know Perl. :) Seriously, as the quality of C++
regex libraries improves, they certainly have the potential to become
faster than Perl. For the time being, though, I'm not sure. It would
be difficult to right code optimized for pattern-searching the way Perl is.
For frequent calculations involving
large arrays of numbers, Fortran may be your first choice. However, if
you have to tackle a problem that involves both string manipulation and
vector mathematics, I don't know of a more appropriate language than C++.

-Jeff

Microsoft Visual Basic tends to be better!


(I hope it is realised that I am kidding)


You almost gave me a heart-attack. I was about to go on a rant the
likes of which have not been seen in many a year.

-Jeff

Jul 22 '05 #6
Jeff Schwab wrote:
It would be difficult to right code

...

:(

*Write* code.

Jul 22 '05 #7
I believe Stroustrup said that C++ was more suited
(than C, anyway) for systems programming, or
for programming "in the large".

fwiw, I have certainly found that to be the case
in my own experience transitioning from C to C++.

Ray
"nb" <nb@ned.net> wrote in message
news:64********************************@4ax.com...
What kind of problems is c++ best at solving?

Jul 22 '05 #8

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

Similar topics

4
by: nib | last post by:
What kind of problems is visual basic best at solving?
2
by: nib | last post by:
What kind of problems is Java best at solving?
0
by: nb | last post by:
What kind of problems is Perl best at solving?
125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
12
by: nib | last post by:
What kind of problems is c best at solving?
19
by: nb | last post by:
What kind of problems is c# best at solving?
669
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
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...
0
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...
0
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...
0
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 projectplanning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.