Yes I see now where you found it)) and normally they always start at 0 " true statement" :D/>.
Well basically I've started with python at my course, then we moved to C# and after that we worked a lot with the interface and then on databases and C#, my last project was C# advanced calculator, didn't work much with it but it was beautifull on my opinion, the grade was 16 from 20 from this project.
and c++ only theorically.
javascript and java im learning now at C.E.T
Can't really tell how much I know programming, but maybe after some codding I can show some Decent "logic" later on :)/> "hope so".
p.s at the moment trying to do some codding at Unity 3D < loving it.
I prefer XNA to unity because I find it easier to modify and I prefer visual studio to work with.
I've only done helloworld in Java so far since me and Java don't get on.
I wrote a very basic roguelike in C++ though.
Very basic, just a character (no pun intended) moving around an area and wrapping round if it goes off the edge.
Main reason I asked:
If you know and like C#, that thing I mentioned about functions getting stored to variables applies to C# as well.
In C# there are things called delegates which basically act as references to functions, but they are strongly typed (ie to reference a function with a delegate you have to make sure the return types and argument types match)
There are some predefined delegates in System that you can use for quickness if you have
using System;
At the top of your code.
Here's an example:
using System;
namespace test
{
public class program
{
static int main(string[] args)
{
Func<string,void> print; //defines a reference to a function that takes a string argument and returns void
print = new Func<string,void>(Console.WriteLine); //defines print as a reference to Console.WriteLine
//You may now use print as if it were the print function in lua, such as:
print("Hello World");
//the same can be applied to read:
Func<string> read;// function will return string,
read = new Func<string>(Console.ReadLine);//references standard read line
string input = read();//like a strongly typed lua
}
}
}
It can come in quite handy for/with callbacks (which get used in javascript a lot), events (which you'll know about if you've done any EDP or worked with windows forms) and lambda expressions (technically functional programming, but C# has support for them).
They're also really good for modifiable objects. For example if you have an object that has a property of the type Func<string,void>, you can let other code change that object's function for something else, essentially just tacking on a new one. This also works like lua's ability to tack functions onto tables to emulate objects having functions.
Just something to toy with when you get chance. After all, the more you know about a language, the more possibilities there are.