Index Symbols | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Z Symbols ! boolean operation NOT != inequality test "..." for string literal % remainder %= operator && boolean operation AND short-circuit ( ) function call function definition grouping matching * multiplication */ end /* comment *= operator + string concatenation with numbers ++ increment += operator - negation subtraction -- decrement -= operator . class static member current folder double literal object field reference part of namespace .. parent folder .net api / division path separator /* ... */ comment // comment, [1] /// documentation /= operator : in class heading string precision formatting < > for generics < less than <= less than or equal = assignment initializer == equality test > greater than >= greater than or equal @ string literal [ ] array indexing attribute dictionary key lookup list index matching string index \ character escape code path separator { } compound statement Format format field width and precision matching scope || boolean operation OR short-circuit A abstraction actual parameter addition2.cs example Agree exercise algorithms binary search bubble sort greatest common divisor insertion sort linear search Quicksort selection sort Shell sort alias and && API for .Net architecture arithmetic array [ ] declaration anonymous initialization as parameter exchange elements indexing [ ] nested loop of arrays one dimensional parameter returned by method two dimensional two-dimensional, ragged ASCII example assembler assertion testing assignment statement, [1] attribute [ ] Averager Example B base 2 big oh constant order order of n binary number system binary search bisection method bit bitbucket.org book alternate formats book examples download booklist homework boolean expression boolean operation ! NOT && AND || OR Boolean or bool braces needed with if break statement bubble sort byte byte type, [1] C C# Yellow Book camel case case sensitive cast, [1] casts in user-defined classes cat on Mac command line cd on command line change directory on command line char underlying numeric code character escape code \ chunk in source comments class choosing what parts fit Contact convert static game to instance instance examples plan classes and methods property Rational scope StreamWriter user class as instance close file, [1] cohesion of code units command line, [1] cd compile with mcs copy and paste text copy file delete a file dir and ls display text file execution execution combined with Xamarin Studio editing help mkdir parameter parameters in Xamarin Studio paths rmdir script shortcuts command line adder exercise comment, [1] comparison < > <= >= == != compile on command line compiler error bad place for heading syntax before error in text declaration repeat explanation link uninitialized local variable compound statement { } scope computer science key concepts concatenation concrete example splitting a loop Console ReadKey ReadLine Write WriteLine constant constant order, [1] constructor, [1] consumer of functions Contact class Contains for strings ContainsKey example continue statement copy on Windows command line copy text on command line CountRep exercise coupling of classes cp on Mac command line csharp legacy Mono shell mono command prompt (Windows) D dangling else pitfall data representation debugging print statements tracebacks decimal loan table exercise decimal type declaration initializer declaration repeat error declaration statement default value in instance Denning - Peter development tools dictionary big oh ContainsKey example key lookup [ ] Keys digits formatted in string dir on Windows command line Directory class division pitfall do while documentation of functions dotnet command, [1], [2], [3] double Parse double type drive change on Windows Dups exercise for arrays E edge case editor error annotations EndOfStream EndsWith string method erase on Windows command line escape code \ Euclid's algorithm example addition2.cs ASCII check_digits clock Contact version 2 ContainsKey mod_mult_table.cs OneCharPerLine power_table.cs PrintStrings ReadLines remove_zeros.cs Scale sum_files.cs Word Count examples download exchanging array elements execution sequential order execution on command line execution sequence for loop function while execution sequence for function exercise Agree command line adder CountRep Dups ExtractItems ForceMatch getters and setters Grade File NUnit test GroupFlips heads or tails Histogram igame InputWhole loan table Mirror nested play computer only letters overloading operators palindrome playing computer power table power table 2 Reverse for arrays reverse string foreach roundoff II row and column numbering safe PromptInt and PromptDouble safe sum savings Shuffle strange sequence String Replace NUnit TrimAll for arrays varying column width Exists - File class method explicit casts in user-defined classes expression ExtractItems exercise F Factorial field width formatting file file (StreamWriter) read and close ReadToEnd stream abstraction write and close File class Exists file completion on command line FIO file I/O float type for foreach syntax formal parameter format 0-pad digits shown in string field width and precision left justification literal {} Format method for string function compiler error with heading consumer and writer definition documentation /// execution sequence not use return value parameter, [1] return return array summary of syntax G generics HashSet getter method global constant grade calculation 2 homework Grade File NUnit Exercise' grade files homework greatest common divisor iterative recursion greatest common divisor algorithm grouping ( ) H HashSet example heads or tails exercise help on command line hg Histogram exercise history history on command line homework booklist grade calculation 2 grade files grade_calc I I IComparable Interface identifier multi-word naming convention if need braces pitfall statements nested if-else pitfall if-else-if igame exercise immutable implication operator implicit casts in user-defined classes indentation options in Xamarin Studio index array parallel arrays variable not in loop heading IndexOf string method infinite loop information processing initializer input not allowed in Xamarin InputWhole exercise insertion sort instance method instance of a class instance variable redeclaring error instruction representation int Parse value range interactive while loop repeat interactive input interface hides actual underlying type IComparable igame exercise syntax examples interpreter IntroCS namespace introduction IntsFromString1 IsDigits example function J Jaquard loom justification left right K Keys property keyword L labs arrays division sentences hg and version control loops string manipulations, [1] Vim Visual Studio Code Xamarin Studio left justification library FIO reference for .Net UI UIF library class lifetime vs. scope linear order linear search List Add Console.WriteLine useless constructor constructor with sequence Contains Count example ReadLines example Remove RemoveAt list, [1] index [ ] literal local variables' scope logical error long type loop for foreach invariant planning rubric playing computer splitting concrete example while, [1] ls on Mac command line M machine language Main parameter exercise parameters Main not found in Xamarin man on Mac command line mantissa and exponent mcs Mercurial method overloading Miles - Rob Mirror exercise for arrays mkdir on command line mod_mult_table.cs example model-view-controller pattern mono command prompt (Windows) mono installation msdn.microsoft.com multiple source files using library class N namespace NAnt build tool nested loop, [1], [2] table new as operator not ! numeric type range O OneCharPerLine example only letters exercise; OOP constructor, [1] default value getter homework instance method instance variable this operator * + string concatenation + with numbers ++ increment += -= *= /= %= - -- decrement /, % casts in user class new overload in user class precedence precedence with overloading or || order of n overflow, [1] overloading constructors exercise for operators methods operators override P palindrome exercise; parameter, [1] actual and formal command line to Main for Main exercise Parse int and double Pascaline paste text on command line path absolute Path class paths on command line pattern for a while loop performance - Stopwatch and TimeSpan PF4 pitfall dangling else; division if infinite loop limit on number size need braces for if repeat interactive input plan problem split into classes planning loop rubric playing computer exercise loop, [1] power_table.cs example precedence with operator overloading precision format format with {:F#} PrintRectangle PrintReps PrintVowels example private helping method instance variable problem solving strategy program development cycle program structure property public Q Quicksort R Random heads or tails exercise static variable random number generator range of numeric types range testing Rational class reading syntax templates ReadKey ReadLine Console null with StreamReader ReadLines example ReadToEnd recursion greatest common divisor Quicksort redeclaring instance variables error reference object regenerate random numbers remainder % Replace string method return from inside loop value not used Reverse exercise for arrays reverse string example; ReversedPrint example right justification rm on Mac command line rmdir on command line Round function row and column numbering exercise rubric planning a loop run-time error S safe PromptInt and PromptDouble exercises safe sum exercise Scale example scope class compound statement local vs. lifetime script on command line search binary linear seed selection sort semicolon after condition pitfall separation of concerns among classes sequence with while sequential execution order set Shell sort short type, [1] short-circuit && and || shortcuts on command line Shuffle exercise side effect solution pad in Xamarin missing sorting bubble sort insertion sort Quicksort selection sort Shell sort source download SP1 Split method for strings splitting a loop concrete example StartsWith string method statement assignment, [1] break compound continue declaration do while for foreach if if nested while Stopwatch stream StreamReader EndOfStream null from ReadLine ReadLine ReadToEnd StreamWriter format string Write WriteLine string @ concatenation with + Contains EndsWith Format index [ ] IndexOf method, [1] Parse to int or double PrintVowels problem solving Replace reverse Split StartsWith Trim verbatim display String Replace NUnit Exercise StringOfReps struct subscript sum_files.cs example syntax error annotations in editor syntax templates System.IO namespace T table formatting tabs changed to spaces testing assertion edge case running in Xamarin Studio this instance timing ToString tracebacks Trim string method TrimAll exercise truncate in cast two dimensional array type array Boolean or bool byte and short char decimal declaration repeat error Dictionary double, [1] float HashSet int, [1] List long user defined object value var type on Windows command line U UI library class Unicode URL for .Net library reference V value type, [1] var variable assignment instance varying column width exercise verbatim string with @ version control version control lab Vim Visual Studio Code W while execution sequence index for sequence interactive planning rubric rubric statement while vs. do while whitespace Word Count example WriteLine { } for format Console StreamWriter writer of functions X Xamarin Studio combined with command line execution command line parameters delimiter matching editor error annotations empty project - input not allowed error file not in project error further tools indentation options setting installation running NUnit tests solution pad missing Z zero pad format