Skip to content

Instantly share code, notes, and snippets.

@kdmkdmkdm
kdmkdmkdm / calculatorInProgress
Created May 1, 2012 19:18
calculatorInProgress
// giCaluclatorProgram.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <cmath>
using namespace std;
int main()
@kdmkdmkdm
kdmkdmkdm / Arc Tangent 2
Created May 1, 2012 18:34
Arc Tangent 2
// giArcTangent2.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <cmath>
using namespace std;
float MyArcTangent(float y, float x);
@kdmkdmkdm
kdmkdmkdm / 3D Distance
Created May 1, 2012 18:09
3D Distance
// gi3dDistance.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
#include <cmath>
using namespace std;
float dist3(float ux, float uy, float uz, float vx, float vy, float vz);
@kdmkdmkdm
kdmkdmkdm / To Upper; To Lower
Created May 1, 2012 17:29
To Upper;To Lower
// giUpper.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
using namespace std;
char ToUpperCase(char input);
char ToLowerCase(char input);
@kdmkdmkdm
kdmkdmkdm / linearsearchworking
Created April 30, 2012 02:36
linearsearchworking
// linearSearch1.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
@kdmkdmkdm
kdmkdmkdm / matrixadditiongood
Created April 29, 2012 23:46
matrixadditiongood
// matrixAddition
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
int matrixA[2][3] =
{
@kdmkdmkdm
kdmkdmkdm / (24) error C2065 i undeclared identifier
Created April 29, 2012 19:11
(24): error C2065: 'i' : undeclared identifier
// giAverage2.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
@kdmkdmkdm
kdmkdmkdm / switch
Created April 29, 2012 17:31
switch
// giNavigator.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
int posX = 0;
@kdmkdmkdm
kdmkdmkdm / variableScope3.8.cpp
Created April 25, 2012 11:43
variableScope3.8.cpp
// variableScope3.8.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include<iostream>
using namespace std;
int main()
{
int cnt;
@kdmkdmkdm
kdmkdmkdm / variableScopeC++
Created April 24, 2012 22:11
variableScopeC++
// variableScope.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream>
using namespace std;
float gPI = 3.14f;
float SphereVolume(float radius);