How do you set up a version control system for a project in VC++ other than being compulsive about backing up all of the files daily or something like that? I have screwed a few things up and it took a few hours to get them back in working condition on a different project from my battleship game. A version control will be useful once I start getting more done in Battleship GUI version so that I don't accidentally completely break the project in half >.<
EDIT!!!
Hopefully someone can help me with this since my in-brain calculus has flown out the window at this point...
Description of Coding Challenge:
* You have a base circle of radius = whatever
* You have a threshhold that the difference in subsequent radii cannot fall under without "failing" (1)
* All circles are concentric around a single middle point
* All circles are essentially increasing in area by ((circle number) * base circle area) such that the area between the outer most circle and the next circle inward is the same as the base circle's area. (hope that makes sense w/o pictures)
Now for the problem I am having:
* I can properly iterate upwards from the first circle to the last circle increasing in radius until the threshold is reached, but am unable to create an algorithm to "predict" with certainty that the last circle will be of a certain radius given a certain initial radius and threshold.
SO.... I ask you awesome coders whom have extensive calculus knowledge:
* What is the best way to go about creating this algorithm WITHOUT it having to step through each circle individually?
* Is this even possible?
This project is more of a thought project to see if I could remember work from my old college days but it seems to have stalled. My pen-and-paper work on it has been less than encouraging as I seem to be coming up with numbers that are either half the iterations actually necessary or many times higher than the iterations necessary.
I am not sure how to proceed since I have so far been just iterating from the beginning with:
Initial Radius = 10
Initial Area = 3.14 * 10^2 = 314
Threshold between R(n) and R(n-1) = 0.001
A(0) = Initial Area
A(1) = 2A(0)
A(2) = 3A(0)
...
A(n) = (n-1)A(0)
R(0) = Initial Area
R(1) = sqrt(2A(0) / pi)
R(2) = sqrt(3A(0) / pi)
...
R(n) = sqrt((n-1)A(0) / pi)
And the differences in Radius are calculated simply using the latest R value, let's say R(n), against the previous R value, R(n-1):
Rdiff = R(n) - R(n-1) = [sqrt((n-1)A(0)/pi)] - [sqrt((n-2)A(0)/pi)]
If Rdiff is below the threshold set then the program exits the loop and ends the run.
I guess the easiest way would be to set it up as a series of Areas against a series of Radii but I am not sure how to do that.
What I have in my head is probably wrong and I hope someone here will fill me in on what I am doing wrong with my reasoning...
I failed Calculus 2 a few times, which runs from whatever was at the end of Calculus 1 until the Taylor and Mclauren series in my school so I am really not entirely sure where I am screwing up. If I had my notes right next to me I could probably write out some really screwed up Calculus equations but, alas, I do not