devxlogo

Tip Bank

ScrambleWords – Scrambling the words of the input string

‘ Scramble the words of the input string’ Note: requires the ArrayShuffle routine” Example:’ Dim text As String = “This is a test string for the ScrambleWords function”‘ Debug.WriteLine(ScrambleWords(text))Function ScrambleWords(ByVal

Create a Statically Initialized List of Objects

A group of objects can be organized into arrays or collections. Arrays are nice because you can statically initialize them, but collections have far more functionality. Using this tip you

A Better Version of Bubble Sort

This version of bubble sort stops when there are no more exchanges and it also sorts a smaller range each time. void bubbleSort3(int x[], int n) { bool exchanges; do