![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#11 |
|
Professional Programmer
Join Date: Mar 2005
Location: Student of University of Mumbai, Maharashtra State, India
Posts: 344
Rep Power: 4
![]() |
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 |
|
|
|
|
|
#12 |
|
The Supreme Ruler
![]() Join Date: May 2004
Location: Houston
Posts: 1,476
Rep Power: 6
![]() |
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 |
|
|
|
|
|
#13 |
|
Programming Guru
![]() Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 5
![]() |
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. |
|
|
|
|
|
#14 |
|
Programmer
Join Date: Mar 2005
Location: USA
Posts: 60
Rep Power: 4
![]() |
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++!!! |
|
|
|
|
|
#15 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
Generally, C code is more efficient, and you have more control over what you're doing. I recommend going with that.
|
|
|
|
|
|
#16 |
|
Professional Programmer
Join Date: Nov 2004
Posts: 250
Rep Power: 4
![]() |
>>-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. |
|
|
|
|
|
#17 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
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.
|
|
|
|
|
|
#18 |
|
Programming Guru
![]() ![]() ![]() |
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." |
|
|
|
|
|
#19 |
|
Professional Programmer
|
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;} |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|