473,387 Members | 1,520 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,387 software developers and data experts.

C or C++

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
13 2036
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
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
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
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
"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

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

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
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
"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
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: William C. White | last post by:
Does anyone know of a way to use PHP /w Authorize.net AIM without using cURL? Our website is hosted on a shared drive and the webhost company doesn't installed additional software (such as cURL)...
2
by: Albert Ahtenberg | last post by:
Hello, I don't know if it is only me but I was sure that header("Location:url") redirects the browser instantly to URL, or at least stops the execution of the code. But appearantely it continues...
3
by: James | last post by:
Hi, I have a form with 2 fields. 'A' 'B' The user completes one of the fields and the form is submitted. On the results page I want to run a query, but this will change subject to which...
0
by: Ollivier Robert | last post by:
Hello, I'm trying to link PHP with Oracle 9.2.0/OCI8 with gcc 3.2.3 on a Solaris9 system. The link succeeds but everytime I try to run php, I get a SEGV from inside the libcnltsh.so library. ...
1
by: Richard Galli | last post by:
I want viewers to compare state laws on a single subject. Imagine a three-column table with a drop-down box on the top. A viewer selects a state from the list, and that state's text fills the...
4
by: Albert Ahtenberg | last post by:
Hello, I have two questions. 1. When the user presses the back button and returns to a form he filled the form is reseted. How do I leave there the values he inserted? 2. When the...
1
by: inderjit S Gabrie | last post by:
Hi all Here is the scenerio ...is it possibly to do this... i am getting valid course dates output on to a web which i have designed ....all is okay so far , look at the following web url ...
2
by: Jack | last post by:
Hi All, What is the PHP equivilent of Oracle bind variables in a SQL statement, e.g. select x from y where z=:parameter Which in asp/jsp would be followed by some statements to bind a value...
3
by: Sandwick | last post by:
I am trying to change the size of a drawing so they are all 3x3. the script below is what i was trying to use to cut it in half ... I get errors. I can display the normal picture but not the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.