You are viewing our Forum Archives. To view or take place in current topics click here.
#11. Posted:
Status: Offline
Joined: Jun 12, 201014Year Member
Posts: 531
Reputation Power: 33
99rock99 wrote
While in C++
cout << "Hello World!" << endl;
prints out Hello World.
printf("tits");
In my opinion, I'd stick to the C family (C# -> C -> C++). They all share the same syntax (Java as well) but there's a difference between C# and Java in comparison to C/C++. In C# and Java, you're working on a framework (managed code), so all the tricky things that you need to do in unmanaged code (C, C++) is taken care of for you.
For example, say you have a collection of numbers inside of a funtion in a managed language (let's say C#)
int CountNumbers()
{
// Here is the collection
int[] Collection = new int[10];
return Collection.Length;
}
When you exit the scope (the area between the curly brackets), the compiler cleans stuff up for you, getting rid of the "Collection" in memory.
Now, in C/C++, here's the same function:
int CountNumbers()
{
// Declare the collection
int* Collection = new int[10];
// Get the count
int Count = sizeof(Collection) / sizeof(int);
// We have to manually remove the Collection from memory when we're done with it
delete[] Collection;
return Count;
}
C/C++ are definitely more lower-level languages in comparison to C#/Java where you have everything you need, stuff like memory allocation/deallocation is taken care of for you, etc.
TL;DR Learn C# or Java. Java (and C/C++) is cross-platform, C# is not.
- 1useful
- 0not useful
#12. Posted:
Status: Offline
Joined: Jul 12, 201014Year Member
Posts: 2,684
Reputation Power: 122
Status: Offline
Joined: Jul 12, 201014Year Member
Posts: 2,684
Reputation Power: 122
In fact, everyone here is kind of wrong. None of you bothered to ask what he wants to create. Instead you just assumed that he wants to create desktop apps. Now what if you wants to create iOS apps. None of you suggested Objective C. What if he wants to work on the back end of web apps. I don't see any suggestions for PHP, Ruby or Python.
@OP - Personally speaking I've always found programming fun. I see my projects as constantly expanding puzzles with both challenging and simple obstacles. However like most things, programming isn't for everyone and requires a more logically oriented mindset. This isn't to say you shouldn't give it a try though because in my opinion, every should. Who knows, you might find that it's a skill you never new you had
@OP - Personally speaking I've always found programming fun. I see my projects as constantly expanding puzzles with both challenging and simple obstacles. However like most things, programming isn't for everyone and requires a more logically oriented mindset. This isn't to say you shouldn't give it a try though because in my opinion, every should. Who knows, you might find that it's a skill you never new you had
- 0useful
- 0not useful
#13. Posted:
Status: Offline
Joined: May 22, 201113Year Member
Posts: 235
Reputation Power: 9
Status: Offline
Joined: May 22, 201113Year Member
Posts: 235
Reputation Power: 9
-Jordan- wrote In fact, everyone here is kind of wrong. None of you bothered to ask what he wants to create. Instead you just assumed that he wants to create desktop apps. Now what if you wants to create iOS apps. None of you suggested Objective C. What if he wants to work on the back end of web apps. I don't see any suggestions for PHP, Ruby or Python.
I did suggest HTML and you can convert Java applications to objective C with XMLVM and then put it onto the ipod and such. Also Java applets are web based applications, so when you learn java you learn how to make applets and applications!
- 0useful
- 0not useful
#14. Posted:
Status: Offline
Joined: Jun 12, 201014Year Member
Posts: 531
Reputation Power: 33
-Jordan- wrote In fact, everyone here is kind of wrong. None of you bothered to ask what he wants to create. Instead you just assumed that he wants to create desktop apps. Now what if you wants to create iOS apps. None of you suggested Objective C. What if he wants to work on the back end of web apps. I don't see any suggestions for PHP, Ruby or Python.
@OP - Personally speaking I've always found programming fun. I see my projects as constantly expanding puzzles with both challenging and simple obstacles. However like most things, programming isn't for everyone and requires a more logically oriented mindset. This isn't to say you shouldn't give it a try though because in my opinion, every should. Who knows, you might find that it's a skill you never new you had
Because Objective C is gay
- 1useful
- 0not useful
You are viewing our Forum Archives. To view or take place in current topics click here.