its for school and i have no idea how to start
i just need the "C" code...thanks..
Can someone write the program named " the game of life" using C/++ code?
I'll give you the first line
#include %26lt;iostream%26gt;
:)
Reply:Couple of suggestions from someone who's been writing code since he was 12.....
1. Do your own homework, I don't mean to sound like a jerk but it often times makes you learn how to think analytically when you do it yourself
2. Don't try to program right away, sit and look at the rules that the game of life uses. See the patterns of how it is played and the interaction - For instance: roll of dice or some human task is an input. While moving a piece on the game board or some mundane task like that belongs to the system.
3. Learn to love pseudocode - Its a really good practice, something I still use today when writing massive applications. Pseudocode, helps you order your thoughts and also helps you list out the sequence of steps you need to follow to be a good programmer.
4. Keep notes - most of the best computer programmers keep notes of how they write an application. Over time you can refine it so that you will learn to write code in an elegant manner (ex: write in 2 lines of code what by brute force will take you 5 lines of code).
--------------------------------------...
I apologize if my answer offends you, but the reason I say this is because I see too many kids come out of college looking for a job as a programmer without even knowing the basics of programming. Anyway If you have any questions on how to get around problems you face while programming I'll be glad to help out.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment