- Joined
- Dec 21, 2013
- Messages
- 911
Okay, I want C but I don't know..
Should I learn C before C++
Or can I just learn C++
Thank you
Should I learn C before C++
Or can I just learn C++
Thank you
Just saw python and ruby website... Haven't download yet cause I'm still using my mobile
This things create another question, python or ruby?......
By the way, thank you all
I would use ruby, because indentation based languages suck ass.
#Ruby: I guess about as verbose VB.NET but shorter
class THW
def Hello
if x
elsif
else
end
end
end
'VB.net: I'd say this one is really verbose
Class THW
Sub Hello
If X
Else If
Else
End If
End Sub
end Class
//C# is like a .NET implementation of C++ I think
public partial class MainForm : Form
{
public MainForm()
{
}
}
puts "The Hive Workshop".reverse # prints pohskroW eviH ehT
(0..5).each do |i| # prints numbers 0 through 5
puts "#{i}"
end
You can also use SharpDevelop for Ruby, C#, I think you can do C++ too...
anyway, if you wanna go C++, you can try getting Visual C++ so that you have a bit of visual help with it...
if at the end you want to end up with C++ anyways, just begin with C++, because it has most of the stuff C has(its Superset of C and most of the C programs will compile under C++; exceptions are programs which use reserved C++ keywords which are not context sensitive(delete, final) as variable names) and more stuff
if you just want C, you can go for pure C and if you later decide to learn C++, you will have some base knowledge already(using void* in C++ is not ideal tho unlike in C)
Visual C++ is a subset of Visual Studio now so better just get VS with all the extendability and other languages. If you are a uni student, you can get a free Visual Studio Pro from Dreamspark using your uni email account.
void*... I don't really like the general purpose pointers/variables in a type based language, only use I see for them are general purpose containers, but then the container should have a header showing the type of what it contains. But well, that's what I think.
C++ is pretty much an extension to C.