Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 13th, 2005, 10:28 AM   #11
java_roshan
Professional Programmer
 
Join Date: Mar 2005
Location: Student of University of Mumbai, Maharashtra State, India
Posts: 344
Rep Power: 4 java_roshan is on a distinguished road
Wow!, looking at the date which it was asked and the day it has got its first reply implies that there is something missing....
__________________
Visit: http://www.somaiya.edu
java_roshan is offline   Reply With Quote
Old Apr 13th, 2005, 3:13 PM   #12
Mjordan2nd
The Supreme Ruler
 
Join Date: May 2004
Location: Houston
Posts: 1,476
Rep Power: 6 Mjordan2nd is on a distinguished road
Probably because BloodNinja has been gone so long.
__________________
"Every gun that is made, every warship launched, every rocket signifies, in the final sense, a theft from those who hunger and are not fed, from those who are cold and are not clothed. The world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children." - Dwight D. Eisenhower
Mjordan2nd is offline   Reply With Quote
Old Apr 15th, 2005, 3:19 AM   #13
bl00dninja
Programming Guru
 
bl00dninja's Avatar
 
Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 5 bl00dninja is on a distinguished road
actually f*** that, learn C. i myself was brushing up on my C at work today and there is so much you can learn from that language that will help you out a WHOLE LOT when you get to C++. hell, you can learn the two together.
__________________
i put on my robe and wizard hat...

Have you ever heard of Plato, Aristotle, Socrates?...Morons.
bl00dninja is offline   Reply With Quote
Old Apr 15th, 2005, 7:08 AM   #14
BaroN NighT
Programmer
 
Join Date: Mar 2005
Location: USA
Posts: 60
Rep Power: 4 BaroN NighT is on a distinguished road
You can learn C++ without knowing C. I did that . And no problem at all. C++ is more powerful and more easy to use than C. It has more features than C and like the previous posters said, C syntax might confuse you. I'd strongly recommend learning C++!!!
BaroN NighT is offline   Reply With Quote
Old Apr 15th, 2005, 6:12 PM   #15
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Generally, C code is more efficient, and you have more control over what you're doing. I recommend going with that.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Apr 15th, 2005, 8:30 PM   #16
Eggbert
Professional Programmer
 
Eggbert's Avatar
 
Join Date: Nov 2004
Posts: 250
Rep Power: 4 Eggbert is on a distinguished road
>>-Which is better to start with? C or C++? And why
This is a very good question, and it has no satisfactory answer. The best you will get are opinions that vary greatly. So the wisest course of action is to research both languages and learning the one you find more comfortable.

>>-How do I use a compiler properly (I am used to python interpreters)...
A compiler is much like an interpreter with an extra step involved. Instead of simply running source code through the interpreter, you compile source code into an executable binary that can be run.

>>-And where can I get a good free compiler and if possible an IDE?
Bloodshed's Dev-C++ seems to be a popular IDE, and the compiler it uses-GNU GCC-is a good one.

>>Generally, C code is more efficient
If well written C and well written C++ that do the same thing using their strengths are compared, any performance difference will be negligable. And the difference may or may not favor C. Don't forget that one of the guiding principles of C++ is comparable performance with C. This should not be a reason to learn C instead of C++.

>>and you have more control over what you're doing
Your statement is both vague and debatable.
Eggbert is offline   Reply With Quote
Old Apr 17th, 2005, 2:31 PM   #17
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
I just re-read that. Seems I was being more than a little vague. I'll let you do the explaining, seeing as you have decades more experience than me.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Apr 18th, 2005, 10:18 PM   #18
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
Listen to Eggbert, he is wise.
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Apr 19th, 2005, 12:10 PM   #19
iignotus
Professional Programmer
 
iignotus's Avatar
 
Join Date: Apr 2005
Location: Nowhere Special
Posts: 466
Rep Power: 4 iignotus is on a distinguished road
Send a message via AIM to iignotus
Not throwing out a personal opinion, really, but it seems to be the consensus among many auxillary programmers and writers that C is on it's way out as far as being functional, and C++ is taking its place. Take that as you may.

Now, personally, I think both should be learned completely... they are different enough to warrant their own uses in different places, as well as the fact that only knowing one will likely lock you out of a project that is written in the other (as long as it is sufficiently complex). As for which one to start out with, I would choose C++. I say this because I learned C first a year before I learned C++, and it took me that much longer to fully catch on to C++'s OO functionality.

As long as you can see that C++ is being used more and more everyday, I think that's what you should go with learning first. Then learn C for legacy support of older code you may want to work on.
__________________
% rc4 hexkey < input > output
#define S ,t=s[i],s[i]=s[j],s[j]=t /* rc4 hexkey <file */
unsigned char k[256],s[256],i,j,t;main(c,v,e)char**v;{++v;while(++i)s[ 
i]=i;for(c=0;*(*v)++;k[c++]=e)sscanf((*v)++-1,"%2x",&e);while(j+=s[i]
+k[i%c]S,++i);for(j=0;c=~getchar();putchar(~c^s[t+=s[i]]))j+=s[++i]S;}
iignotus is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 4:52 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC