Skip to content

Instantly share code, notes, and snippets.

@kdmkdmkdm
kdmkdmkdm / gist:4626499
Created January 24, 2013 19:01
generatingrandomguesses
// guessmynumberreversed.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
@kdmkdmkdm
kdmkdmkdm / textbookcopy
Created November 17, 2012 23:47
textbookcopy
// sumunknown.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
int main()
{
// giBinary.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
using namespace std;
int BinSearch(int data[], int numElements, int searchKey);
int main()
@kdmkdmkdm
kdmkdmkdm / outputbinary
Created May 4, 2012 00:34
outputbinary
1>------ Build started: Project: giBinary, Configuration: Debug Win32 ------
1>Build started 03/05/2012 5:28:17 PM.
1>InitializeBuildStatus:
1> Touching "Debug\giBinary.unsuccessfulbuild".
1>ClCompile:
1> All outputs are up-to-date.
1> giBinary.cpp
1>c:\users\kurt3\documents\visual studio 2010\projects\gibinary\gibinary\gibinary.cpp(20): error C2059: syntax error : ']'
1>
1>Build FAILED.
// giBinary.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
using namespace std;
int BinSearch(int data[], int numElements, int searchKey);
int main()
@kdmkdmkdm
kdmkdmkdm / selectionSortFinished
Created May 2, 2012 15:25
selectionSortFinished
// giSelectionSort.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
int x[10];
@kdmkdmkdm
kdmkdmkdm / selectionsort2
Created May 2, 2012 03:30
selectionsort2
// giSelectionSort.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
int x[10];
@kdmkdmkdm
kdmkdmkdm / selectionsort1
Created May 1, 2012 23:35
selectionsort1
// giSelectionSort.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
int x[10];
@kdmkdmkdm
kdmkdmkdm / slotmachine
Created May 1, 2012 20:53
slotmachine
// giSlotMachine.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
@kdmkdmkdm
kdmkdmkdm / calc
Created May 1, 2012 20:07
Calculator
// giCaluclatorProgram.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <cmath>
using namespace std;
int main()