Ummi10
|
  |
| Joined: 17 Aug 2012 |
| Total Posts: 116 |
|
| |
|
breuning
|
  |
| Joined: 30 Oct 2008 |
| Total Posts: 4268 |
|
| |
|
Kyuro
|
  |
| Joined: 03 Sep 2012 |
| Total Posts: 5800 |
|
|
| 03 Dec 2014 09:13 AM |
| Lua is the easiest language. And if he is autistic, that's nothing to be ashamed of; He might not be as socially skilled, but most autists I've met are EXTREMELY good at one particular skill, as if all of their resources were drawn towards one thing. |
|
|
| Report Abuse |
|
|
|
| 03 Dec 2014 09:23 AM |
ive been learning c++ lately the syntax is ugly
here is some of my code https://gist.github.com/SethDusek/c75f30fde78ed0762521 why is it int main? wont main be a function? thats what i dont understand e.e
|
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 03 Dec 2014 09:35 AM |
int main
Now, I don't know why it's an int. Having come from C# you'd hope that main was a void or something instead |
|
|
| Report Abuse |
|
|
Bakers
|
  |
| Joined: 27 Sep 2010 |
| Total Posts: 182 |
|
|
| 03 Dec 2014 09:42 AM |
Main should be like this void main(void){
} At the bottom of your program. |
|
|
| Report Abuse |
|
|
Seranok
|
  |
| Joined: 12 Dec 2009 |
| Total Posts: 11083 |
|
|
| 03 Dec 2014 09:44 AM |
| It's an int because your program can return a status code. Usually 1=OK and 0=ERROR but you pretty much decide what your status codes mean. |
|
|
| Report Abuse |
|
|
|
| 03 Dec 2014 10:03 AM |
"are you autistic?" I'm autistic, but C++ is still a pain. (Same with C#) Mostly the transition between languages, though. |
|
|
| Report Abuse |
|
|
gskw
|
  |
| Joined: 05 Jan 2013 |
| Total Posts: 1364 |
|
|
| 03 Dec 2014 10:05 AM |
I think g++ asks you to make main() return an int.
This is a signature. Recommended username: DispensableGskw |
|
|
| Report Abuse |
|
|
HexC3D
|
  |
| Joined: 30 Jun 2012 |
| Total Posts: 10044 |
|
| |
|
|
| 03 Dec 2014 10:58 AM |
| Transitioning from Lua to any kind of language along the lines of C++, C#, Java, etc. is going to be quite the learning curve since Lua is just a scripting language while the likes of C++, C# and Java are all heavy programming languages. |
|
|
| Report Abuse |
|
|
|
| 03 Dec 2014 11:21 AM |
Well, aside from Lua being easier. If you make the transition, you need to know about "Classes" and "Structs", and such, as well as data types. There are quite a few other reasons why C++ would be harder, however. |
|
|
| Report Abuse |
|
|
|
| 03 Dec 2014 12:22 PM |
if you're going to learn c++ try learning php or JS first.
I was familiar with the syntax when I was learning c++ https://gist.github.com/SethDusek/da21a6d0ecadcf6e14aa
have to upload to gist because of cough* stupid filter cough* |
|
|
| Report Abuse |
|
|
|
| 03 Dec 2014 01:07 PM |
"Transitioning from Lua to any kind of language along the lines of C++, C#, Java, etc. is going to be quite the learning curve since Lua is just a scripting language while the likes of C++, C# and Java are all heavy programming languages."
not necessarily
if you come in with a knowledge of loops, if/then statements, functions/methods, it becomes a lot easier
of course if you learned Lua >= PHP or Ruby >= Python >= Java it would probably be easiest
PHP and Ruby would make it easier because you'd learn about OOP |
|
|
| Report Abuse |
|
|
anaIyze
|
  |
| Joined: 29 May 2014 |
| Total Posts: 2048 |
|
|
| 03 Dec 2014 01:14 PM |
you're all just thinking way ahead of yourselves. c++ is not a hard language to learn as to lua, but it has it's conditions, pros and cons that you must endeavor; but you need to know your windows computer and it's functionality well before you start programming. sure the syntax is ugly, mine us uglier. get used to it, stop whining about it, no one cares what you think about it - especially MS. The only problem i'de have to say getting used to is the IDE, I prefer VS13.
don't use code::blocks, its stupid and ugly k |
|
|
| Report Abuse |
|
|
|
| 03 Dec 2014 01:28 PM |
"don't use code::blocks, its stupid and ugly k"
no! |
|
|
| Report Abuse |
|
|
| |
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
| |
|
| |
|
|
| 03 Dec 2014 01:34 PM |
sublime looks so nice http://gyazo.com/8024839cea06e268600b2010f45c31fb |
|
|
| Report Abuse |
|
|
eLunate
|
  |
| Joined: 29 Jul 2014 |
| Total Posts: 13268 |
|
|
| 03 Dec 2014 01:45 PM |
Atom is nice too :3
snag.gy/9wyBE.jpg |
|
|
| Report Abuse |
|
|
| |
|
|
| 03 Dec 2014 02:36 PM |
| code::blocks or Visual Studio is pretty much the standard when it comes to C++, it's undeniably one of the more difficult languages to wrap your head around. Just because YOU pick it up quickly doesn't mean than 99% of other people do. |
|
|
| Report Abuse |
|
|
|
| 03 Dec 2014 03:03 PM |
I use Qt since it's easy
setStyleSheet( "QLabel { background: #FFFFFF; }" ); |
|
|
| Report Abuse |
|
|
|
| 03 Dec 2014 03:11 PM |
"code::blocks or Visual Studio is pretty much the standard" Have you heard of Borland? |
|
|
| Report Abuse |
|
|