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

C or C++

P: n/a
i would like someone with experience to answer my question ! C or
C++ and why? Which one is stronger ? The criteria are yours!
Thanks in advance guys.
--
--------------------------------- --- -- -
Posted with NewsLeecher v3.7 Final
Web @ http://www.newsleecher.com/?usenet
------------------- ----- ---- -- -

Sep 29 '06 #1
Share this Question
Share on Google+
13 Replies


P: n/a
Big-Goofy wrote:
i would like someone with experience to answer my question ! C or
C++ and why? Which one is stronger ? The criteria are yours!
Thanks in advance guys.
When I am taking a train, I take the one with the "C" designation.
Even if there were some hypothetical choice, I will still need to
take the C train because it goes where I need to go.

Where do you need to go? The criteria are *yours*, not anybody
else's. And if you still insist on comparing two languages without
specifying the size of the project, the targets, the goals, etc.,
then everybody knows that you're a troll.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Sep 29 '06 #2

P: n/a
i would like someone with experience to answer my question ! C or
C++ and why? Which one is stronger ? The criteria are yours!
Thanks in advance guys.
Without knowing what problem you want to solve, no real answer
can be given. You should pick tools (language) that are appropriate
for your problem.

If I had to write some device-driver I would choose c, more examples
and closer to machine-level.

If I had to write a complex AI programme I'd choose C++, more
data-hiding and for me (but that is personal) a better design tool.

Good luck,
Bas

Sep 29 '06 #3

P: n/a
Colander wrote:
>
If I had to write some device-driver I would choose c, more examples
and closer to machine-level.
Actually, I'd use C++ UNLESS there is no support for it at the level
I am working on. C++ is no further away from the machine level than
C is.
Sep 29 '06 #4

P: n/a
va*****@hotmail.com ha scritto:
i would like someone with experience to answer my question ! C or
C++ and why? Which one is stronger ? The criteria are yours!
Thanks in advance guys.
why cat or dog ? they are 2 different animals .... it is the same ...
in my opinion c is not an alternative to C++ and viceversa
Sep 29 '06 #5

P: n/a
"Big-Goofy" <va*****@hotmail.comwrote in message
news:Vc********************@giganews.com...
>i would like someone with experience to answer my question ! C or
C++ and why? Which one is stronger ? The criteria are yours!
Thanks in advance guys.
I was going to say for simple programs I write C code not C++, but then I
realized that's a lie becuase I always use std::cout instead of printf. I
always use std::cin instead of gets, etc...

To me, even for straight C code, the stl gives me so much added ease of
programming over the old C counterparts that I would only use a C compiler
if I didn't have a C++ compiler.

std::vectors and std::strings have made my life so much easier, as has the
rest of the standard template library. Other than that, when I start
thinking of solutions, I now think of C++ solutions rather than C solutions,
I.E. a vector of a class with vectors, other than a 2d array. It used to be
that it took me 5x as long to do something in C++ than in C because I had to
think about the C++ language itself. Now that OOPs is also second nature, I
write C++ code faster than C code because usually the solutions are simpler.
Sep 29 '06 #6

P: n/a

va*****@hotmail.com wrote:
i would like someone with experience to answer my question ! C or
C++ and why? Which one is stronger ? The criteria are yours!
Thanks in advance guys.
Check out these links to see where C++ is heading.

Fusion will be available in the next Boost release. Provides the
ability to manipulate tuples like arrays and very fast:

http://tinyurl.com/7ra5g

ConceptGCC is under discussion by the C++ standards committee for
inclusion in the next C++ standard. It marks the next evolution of C++:

http://www.generic-programming.org/software/ConceptGCC/

regards
Andy Little

Sep 29 '06 #7

P: n/a

kwikius wrote:
va*****@hotmail.com wrote:
i would like someone with experience to answer my question ! C or
C++ and why? Which one is stronger ? The criteria are yours!
Thanks in advance guys.

Check out these links to see where C++ is heading.

Fusion will be available in the next Boost release. Provides the
ability to manipulate tuples like arrays and very fast:

http://tinyurl.com/7ra5g

ConceptGCC is under discussion by the C++ standards committee for
inclusion in the next C++ standard. It marks the next evolution of C++:

http://www.generic-programming.org/software/ConceptGCC/
I ought to Clarify ConceptGcc is a modification of the GCC compiler
which is not itself AFAIK under discussion to become part of the next
C++ standard ;-), but it has been modified to implement ConceptC++,
which is.

regards
Andy Little

Sep 29 '06 #8

P: n/a
Big-Goofy (va*****@hotmail.com) wrote:
i would like someone with experience to answer my question ! C or
C++ and why?
Yes.

--
Salu2
Sep 29 '06 #9

P: n/a
"Big-Goofy" writes:
>i would like someone with experience to answer my question ! C or
C++ and why? Which one is stronger ? The criteria are yours!
1. C is much easier to learn than C++, since it is a considerably smaller
language. Compae learning Esparanto with learning English.

2. "Everyone" knows C, much as "everyone" used to know Fortran. This has
implications for code maintenance, design reviews, deferred enhancements,
and a whole host of ancillary things.

If neither of these apply, C++ is the better language.
Sep 29 '06 #10

P: n/a
va*****@hotmail.com wrote :
i would like someone with experience to answer my question ! C or
C++ and why? Which one is stronger ? The criteria are yours!
Thanks in advance guys.
C++ is more sophisticated and allows you everything C has to offer.
Even though C++ introduces new tools to code in a better, cleaner and
safer way (without being slower, it can actually be faster than C), some
people don't like it and prefer to code the C way, and for that a C
compiler is more appropriate.
Sep 29 '06 #11

P: n/a
kwikius wrote:
I ought to Clarify ConceptGcc is a modification of the GCC compiler
which is not itself AFAIK under discussion to become part of the next
C++ standard ;-), but it has been modified to implement ConceptC++,
which is.
BTW Here is my ConceptGCC installation for Windows guide:

You need to have Cygwin installed:

http://www.cygwin.com/

Download the ConceptGCC compiler:

http://www.generic-programming.org/s...C/download.php

Assuming cygwin is installed correctly you can unzip the download
using:

'tar -xvjf conceptgcc-VERSION-cygwin.tar.bz2

Move the resulting 'opt' directory to your Cygwin installation. In my
case
C:/Cygwin

So in my case the result is C:/Cygwin/opt

Head for Start>Control Panel.
Head for System>Advanced>Environment Variables.
Find 'Path' environment variable
Add The ConceptGcc bin directory e.g
PREVIOUS_Stuff;C:/Cygwin/opt/conceptgcc-VERSION/bin

Now check it works. Open a command prompt. (If you have Cygwin
correctly
installed you shouldnt need to be in Cygwin shell)

type conceptg++.

If all is working ok you should get:

C:\my_current_dir>conceptg++
conceptg++: no input files

C:\my_current_dir>

You can invoke the compiler from a command prompt in your current
directory by:
// (compile followed by link)

conceptg++ -c test.cpp
conceptg++ -o testprog.exe test.o

Next.. Head for the tutorial:

http://www.generic-programming.org/l...tcpp/tutorial/

Its worth downloading the spec to refer to too . Its quite well written
so its quite easy to read.

http://www.open-std.org/jtc1/sc22/wg...2006/n2081.pdf

Have fun!

regards
Andy Little

Sep 30 '06 #12

P: n/a
osmium wrote:
1. C is much easier to learn than C++, since it is a considerably smaller
language. Compae learning Esparanto with learning English.
Ruby is much easier than C, since you dont have to do memory allocation
by hand. compare learning Punjabi with learning English.

You must not learn a lanaguge because it is easier than the other one.
state what problem you are trying to solve & then you will see folks
here are "problem-solvers" rather than langugae bigots.

Look for problems not for theorteical/academic practices. by the way C
is easier to learn than C++ & is much small & both Pyhton & Ruby are
easier than C but i hope you get my point.
2. "Everyone" knows C, much as "everyone" used to know Fortran. This has
implications for code maintenance, design reviews, deferred enhancements,
and a whole host of ancillary things.
Hmmm..... I must agree with this practical issue.
If neither of these apply, C++ is the better language.
i agree here. also check these links. when you posted your qustion
here, you had a mind-set & i hope these links will provide a different
perspective for that mindset:

http://www.joelonsoftware.com/articl...vaSchools.html
http://www.research.att.com/~bs/new_learning.pdf
http://www.parashift.com/c++-faq-lit...learn-cpp.html

thanks
"arnuld"

Sep 30 '06 #13

P: n/a
osmium <r1********@comcast.netwrote:
1. C is much easier to learn than C++, since it is a considerably smaller
language. Compae learning Esparanto with learning English.
I had a class in which the instructor made the following claims, both of
which can be seen as true, simultaneously:

1. C is "easy" because it is a small language.
2. C is "hard" because it is a small language.

(1) is true, because since it is a small language, there is not much you
have to remember.

However, (2) is true because since it is a small language, you need to
do a lot of things yourself.

--
Marcus Kwok
Replace 'invalid' with 'net' to reply
Oct 2 '06 #14

This discussion thread is closed

Replies have been disabled for this discussion.