No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
1 Posted Topic
Re: [QUOTE=spankyg;435673][code] [COLOR=green]#include[/COLOR][COLOR=green]"stdafx.h"[/COLOR] [COLOR=green]#include[/COLOR][COLOR=green]<cstdlib>[/COLOR] [COLOR=green]#include[/COLOR][COLOR=green]<iostream>[/COLOR] [COLOR=green]using[/COLOR][COLOR=green]namespace[/COLOR][COLOR=green] std;[/COLOR] [COLOR=green]int[/COLOR][COLOR=green] tmain([/COLOR][COLOR=green]int[/COLOR][COLOR=green] argc, _TCHAR* argv[])[/COLOR] { [COLOR=green]// Let's Declare Variables[/COLOR] [COLOR=green]int[/COLOR] Num_Pegs; [COLOR=green]// Total number of pegs to a side[/COLOR] [COLOR=green]int[/COLOR] Hold_Und; [COLOR=green]// Hold underscore location[/COLOR] [COLOR=green]// User Enters Number of Pegs[/COLOR] cout <<[COLOR=green]"Enter Number of Pegs:"[/COLOR]; cin >>Num_Pegs; [COLOR=green]// Array to create a … |
The End.