By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,570 Members | 1,208 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,570 IT Pros & Developers. It's quick & easy.

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

P: n/a
nb
What kind of problems is c++ best at solving?
Jul 22 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a
nb wrote:
What kind of problems is c++ best at solving?


Problems in the computer domain.

Jul 22 '05 #2

P: n/a
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

P: n/a
"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

P: n/a
"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

P: n/a
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

P: n/a
Jeff Schwab wrote:
It would be difficult to right code

...

:(

*Write* code.

Jul 22 '05 #7

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.