You are here:
I've been programming in one form or another since my brother taught me BASIC when I was 6. I've been programing professionally since I was 20, first web development with HTML, JS, DHTML, CSS, etc., then I became a video game developer, writing code in C, C++, C#, SQL, assembly, and various scripting languages. I've even written my own scripting languages, custom designed for the games I was making. I also dabble in Java, PHP, and Perl. I've worked on pretty much every aspect of game development, including graphics, audio, gameplay, tool, UI, input, animation, and physics.
I've been writing C code for 12 years, both on my own in my spare time and professionally.
IGDA
Bachelor of Science in Game Design and Development, Full Sail University, Winter Park, FL
Salutatorian and Advanced Achiever Awards at Full Sail; Independent Games Festival Student Showcase winner, 2004; Featured article on Gamasutra about an experimental game developed in 2004
| User | Date | K | C | T | P | Comments |
|---|---|---|---|---|---|---|
| coco | 10/05/09 | 9 | 10 | 10 | 10 | You the best ive meet so far |
| Tumelo | 09/30/09 | 10 | 10 | 10 | 10 | thanx man! |
| Jake | 09/15/09 | 10 | 10 | 10 | 10 | Right, I figured it thanks though! I ..... |
| bryan | 09/07/09 | 10 | 10 | 9 | 10 | Thank you very much sir you helped ..... |
| rabi | 08/10/09 | 10 | 10 | 10 | 10 |
Hi, Ajay. First, looking at your code, it appears to be mis-categorized. Your second piece of code is creating a reference -- a C++ type. References and pointers are remarkably similar. They are
Hi, Angela. The problem is that you have declared a global variable called ctr and used this in both loops. The code execution will go something like this: ctr = 0 (start of first loop)
Hi, Ankit. Please don't use the fflush function. The function is intended to flush the buffer provided (stdin in this case), but it not a standardized function. Because the function has no standard
Hi, Ming. You are very, very close with your answer already. I've made a few changes to the program for optimization purposes, formatting purposes, and some minor functionality. The code is below
What compiler are you using, and can you copy/paste the specific warnings? What happens when you debug the application? Is it simply taking a long time in the for loop? I tested and verified the code
Answers by Expert:

©2009 About.com, a part of The New York Times Company. All rights reserved.