Sure, why not. It seems some people are interested, but I focus specifically on these languages (please bear in mind that the word 'programming' is frankly a bit vague): |
|
Sure, why not. It seems some people are interested, but I focus specifically on these languages (please bear in mind that the word 'programming' is frankly a bit vague): |
|
I've thought about learning C#. Give me a run-down on how it compares to C++. |
|
C# is quite an interesting language, (relatively) new. A lot of the people I know that develop in it gush over it. To be perfectly honest, I've yet to develop anything substanial in C# - this is not a failing of the language, rather of my time and the energy I can put into things. |
|
woo! C# sounds worth looking at. |
|
I guess you could do it in stages: |
|
I've got a Sil level 3 application ro control, should I use a partitioned PLC to garuntee safety or use an independently wired relay solution? |
|
you must be the change you wish to see in the world...
-gandhi
Well, you could check the bounds of each generated room before adding it. Or you could let rooms overlap, and just overlay them, which would let you get more complex shapes from just generating rectangles. |
|
Why don't you look at the Nethack source code? I guess it wouldn't be "too hard" to make an algorithim to do it. Then again.. |
|
Any general tips on programming C++? |
|
Currently practicing WILD. I quote Kaniaz who said it best: "The point of WILD is to piss me off". Though, I have not given up, far from it.
|
|
|
|
Currently practicing WILD. I quote Kaniaz who said it best: "The point of WILD is to piss me off". Though, I have not given up, far from it.
Object oriented programming is a good way to keep coding simple enough to not be frustrating to do when developing anything, especially something large. So reading up an article or tutorial should explain it well enough as it's far from rocket science. |
|
|
|
But given that example, why is there a need for a pointer? |
|
|
|
Uh...that doesn't make much sense, at least at first. |
|
Okay my example wasn't the best, but imagine that you are making a word processing program |
|
Some dodgy C++ knowledge here. |
|
Wouldn't that be: |
|
Ten years without a dream, now starting almost from scratch.
We're messing with our bodies on a very low level here - can we break them? What will it take to hurt ourselves?
A little nonsense now and then is relished by the wisest men.
-Roald Dahl
following on from that, |
|
(\_ _/)
(='.'=)
(")_(")
And following on from that (isn't this fun?) is the distinction between the heap and the stack. The stack is memory you allocate like: |
|
and following on from that |
|
(\_ _/)
(='.'=)
(")_(")
By a public variable I meant a global variable. |
|
Bookmarks