Well, as the title suggests I want to learn how to code a bit of minecraft. I would preferable like to code MCsharp, so could you point me in the general direction on how to edit it, what to edit, and possibly a guide on codeing somewhere? So get ready for loads of questions!
But I want it to infinitly loop if you get it wrong, any ideas on how to do that?
Put it inside a do...while loop with a boolean value that signifies if the answer is correct or not. I'm not familiar with LUA, but I can do it in pseudocode with a c-like syntax so you get the general structure.
Take some lessons, really personally, I wouldn't start with scripting languages like Lua and Python. Though I am biased because I just obsoletely detest them as languages. I would aim to learn C# or hell, dive in head first and learn C/C++
Take some lessons, really personally, I wouldn't start with scripting languages like Lua and Python. Though I am biased because I just obsoletely detest them as languages. I would aim to learn C# or hell, dive in head first and learn C/C++
Go with C over C++ to start since C++ added some boilerplate to basic input/output when it moved them into objects. It's basically all the same until you need to switch over to C++ for OOP, just that input and output to the console is easier with C.
printf and fprintf can go to hellz compared to the basic iostream classes.
Except those functions make it much easier to work with formatted output than the stream forms do. With the standard C++ streams there's a whole mess of throwing in modifiers in the middle of the stream. Format strings are a much cleaner and easier to use solution.
Besides, if someone starts with C++, they'd just end up learning the C side of it first anyway (but with the C++ standard library). C++ is not a good language for beginners.
Rollback Post to RevisionRollBack
Never attribute to malice what can adequately be explained by incompetence.
it encourages people to understand how the hardware works
Yes, but I consider that an unnecessary complication for people just learning to program. For someone just starting I try to recommend a language that's easy to get working in. Just like we don't start teaching math with calculus, we shouldn't start teaching programming with C/C++ (although calculus is a fair bit more elegant than C/C++).
Rollback Post to RevisionRollBack
Never attribute to malice what can adequately be explained by incompetence.
I dunno, the rawness of C is good because it encourages people to understand how the hardware works rather than going I MAEK OBJECTS AND CLASSES LAWL.
Screw learning how the machine works. Most people won't get that far in C, anyways. It's only by virtue of one of my college courses that I coded the part of an OS that loads programs into memory and sets up the user space in which it runs. It wasn't easy, and it's definitely not for beginners or even intermediate programmers. Handles shouldn't even be touched by someone with less than two years of C/C++ experience.
Try this book http:
//www.amazon.com/gp/aw/d/1423901959 it's a good book because it teaches you proper programming technics ect and it comes with a smaller book and with that book teaches you basic java and it goes along with the book also you could try looking at a public
library they might have some programming
for dummies books
Try this book http:
//www.amazon.com/gp/aw/d/1423901959 it's a good book because it teaches you proper programming technics ect and it comes with a smaller book and with that book teaches you basic java and it goes along with the book also you could try looking at a public
library they might have some programming
for dummies books
And thanks in advance
^The Portal Song!^
http://www.youtube.com/watch?v=b6Q_koTHB54
^Taste the cake song!^
The cake is NOT a lie!
Bots? Servers? Hacks? Others?
^The Portal Song!^
http://www.youtube.com/watch?v=b6Q_koTHB54
^Taste the cake song!^
The cake is NOT a lie!
^The Portal Song!^
http://www.youtube.com/watch?v=b6Q_koTHB54
^Taste the cake song!^
The cake is NOT a lie!
But I want it to infinitly loop if you get it wrong, any ideas on how to do that?
^The Portal Song!^
http://www.youtube.com/watch?v=b6Q_koTHB54
^Taste the cake song!^
The cake is NOT a lie!
Put it inside a do...while loop with a boolean value that signifies if the answer is correct or not. I'm not familiar with LUA, but I can do it in pseudocode with a c-like syntax so you get the general structure.
Edit: I guess in LUA you could put this in a while loop or a repeat-until loop.
It's Python, not LUA.
Well, whatever, I haven't done a whole lot with Python, either. That's still the basic methodology for doing it.
^The Portal Song!^
http://www.youtube.com/watch?v=b6Q_koTHB54
^Taste the cake song!^
The cake is NOT a lie!
I followed this tutorial () but is it me or the tutorial doing something wrong?
^The Portal Song!^
http://www.youtube.com/watch?v=b6Q_koTHB54
^Taste the cake song!^
The cake is NOT a lie!
^The Portal Song!^
http://www.youtube.com/watch?v=b6Q_koTHB54
^Taste the cake song!^
The cake is NOT a lie!
Go with C over C++ to start since C++ added some boilerplate to basic input/output when it moved them into objects. It's basically all the same until you need to switch over to C++ for OOP, just that input and output to the console is easier with C.
Except those functions make it much easier to work with formatted output than the stream forms do. With the standard C++ streams there's a whole mess of throwing in modifiers in the middle of the stream. Format strings are a much cleaner and easier to use solution.
Besides, if someone starts with C++, they'd just end up learning the C side of it first anyway (but with the C++ standard library). C++ is not a good language for beginners.
Yes, but I consider that an unnecessary complication for people just learning to program. For someone just starting I try to recommend a language that's easy to get working in. Just like we don't start teaching math with calculus, we shouldn't start teaching programming with C/C++ (although calculus is a fair bit more elegant than C/C++).
Screw learning how the machine works. Most people won't get that far in C, anyways. It's only by virtue of one of my college courses that I coded the part of an OS that loads programs into memory and sets up the user space in which it runs. It wasn't easy, and it's definitely not for beginners or even intermediate programmers. Handles shouldn't even be touched by someone with less than two years of C/C++ experience.
//www.amazon.com/gp/aw/d/1423901959 it's a good book because it teaches you proper programming technics ect and it comes with a smaller book and with that book teaches you basic java and it goes along with the book also you could try looking at a public
library they might have some programming
for dummies books
Sorry for the errors I'm on my iphone
Why necro this thread? LOOK AT THE DATE.....