Hard Light Productions Forums
Off-Topic Discussion => Programming => Topic started by: Dysko on July 02, 2008, 02:43:59 pm
-
Today I finally completed my C course at university, and since I liked it, I'm interested in learning more about programming.
The course I took taught me the basics of C (variables, types and typedef, strings, functions, pointers, arrays, switches, structs), but I also read somewhere that C++ is better than C.
Should I continue learning C, or should I start learning C++? And where can I find good tutorials?
-
C++ is basically C with objects. So if you want to dabble with OOP it might be interesting for you to learn C++. Otherwise, it's a waste of time and you'll do well to continue perfecting your knowledge of "pure" C.
-
c++ is easier to program in than c if you are working in a team. otherwise it depends on your way of thinking, OO or procedural.
-
No, C++ generally includes STL...which I don't really like, but is a whole lot different because it introduces the concepts of vectors, iterators, and so on.
C++ is not "better" than C. There is no hierarchical ranking of programming languages. They have strengths and weaknesses.
But you probably won't want to code much with assembly.
-
STL vectors rock.
-
C is a little faster, C++ better for complex programms (better maintainability)
Going from C to C++ is a little harder as going from C++ to C, as you can still write "c-style code" in c++, not really learning the OOP.
You cant wrtite c++ style code in c, however-
-
And good luck programming a robot with an 8051 microcontroller with C++.
-
that's when you would use java.
:nervous:
-
that's when you would use java.
RUN FOR YOUR LIIIIIIIIVES!
-
try
{
RUN FOR YOUR LIIIIIIIIVES!
}
catch(java.lang.Exception.RunnerException rexc)
{
rexc.getRunner().rehabilitate();
}
-
try
{
RUN FOR YOUR LIIIIIIIIVES!
}
catch(java.lang.Exception.RunnerException rexc)
{
rexc.getRunner().rehabilitate();
}
finally
{
fail_miserably();
}
-
you.getAbility(Person.JAVA_CAPITALIZATION).setFael(true);
return lulz;
:p
-
stab(Forum->getMember("WMCoolmon"));
-
if getStabStatus()
{
Forum.Hammer(hardlight);
}
:P
-
...
catch(Hammer $h)
{
$sql = "SELECT DISTINCT memberid FROM posts WHERE topic='54939'";
$result = $myDatabase->query($sql);
while($row = $myDatabase->moveNext($result))
{
if(getUsername($row->memberid) != "chief1983")
{
bootToTheHead($row->memberid);
}
}
echo "im in ur thredz bootin ur hedz";
}
-
:lol: Oh noes! Boot To The Head!
Dim pwned = New Beam(Forum.getMember(Chief1983));
...
-
if(NewBeam(Forum.getMember(Chief1983)))
do
{
int i = 1;
i ++;
if(i == 0)
{
i = 1;
}
Supernova(Forum.getMember(Flipside));
if(i > 9000)
{
cout<<"ITS OVER NINE THOUSAND!!!!1111!!"<<endl;
}
}while(i != 0);
-
I think this thread has served its purpose. :p