Skip to content

Instantly share code, notes, and snippets.

RMcGee

Block or report user

Report or block RMcGee

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Assign 7 or 8
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PlayerCreator
{
class Program
{
View 7
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PlayerCreator
{
class Program
{
View faux columns
<!doctype html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="stylesheets/style.css" />
<!--[if lt IE 9]>
<script src="dist/html5shiv.js"></script>
<![endif]-->
View HTML5 Shim
<!--[if lt IE 9]>
<script src="dist/html5shiv.js"></script>
<![endif]-->
View Exceptions
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Exceptions
{
class Program
{
static void Main(string[] args)
View Objects (Console Example)
Employee[] employees = new Employee[100];
employees [0] = new Employee("Reid", "McGee", 651864324, 22, 'M');
employees [1] = new Employee("Mike", "Besney", 651864324, 55, 'M', 30);
employees [1].FirstName = "Florence";
employees[1].Gender = 'F';
for (Int32 n = 0; n < 2; n++)
Console.WriteLine(employees[n].LastName + employees[n].FirstName + " " + employees[n].Sin + " " +
employees[n].Age + " " + employees[n].Gender + " " + employees[n].YearsService + " " +
employees[n].IsEligibleToRetire());
View Objects
class Employee
{
//Private Member Data
private String _firstName;
private String _lastName;
private Int32 _sin;
private Int32 _age;
private Char _gender;
private Int32 _yearsService;
View CSS thing
.clearfix:after
{
content: ".";
visibility: hidden;
display: block;
height: 0;
clear: both;
}
View Player Creator
static void Main(string[] args)
{
//The MAXPLAYERS constant is the physical table size
const Int32 MAXPLAYERS = 23;
//Declare the player tables
Int32[] playerNumbers = new Int32[MAXPLAYERS];
String[] playerLastNames = new String[MAXPLAYERS];
Int32[] playerPoints = new Int32[MAXPLAYERS];
View Modularity
static void Main(string[] args)
{
Char menuItem;
Console.WriteLine("Welcome to ze calculator");
menuItem = GetMenuItem();
while (menuItem != 'X')
{
ProcessMenuItem(menuItem);
menuItem = GetMenuItem();
}// while
You can’t perform that action at this time.