Skip to content

Instantly share code, notes, and snippets.

@kdmkdmkdm
kdmkdmkdm / outputC++
Created April 24, 2012 22:09
outputC++
1>------ Build started: Project: variableScope, Configuration: Debug Win32 ------
1>Build started 25/04/2012 3:04:52 AM.
1>PrepareForBuild:
1> Creating directory "c:\users\kurt3\documents\visual studio 2010\Projects\variableScope\Debug\".
1>InitializeBuildStatus:
1> Creating "Debug\variableScope.unsuccessfulbuild" because "AlwaysCreate" was specified.
1>ClCompile:
1> stdafx.cpp
1> variableScope.cpp
1>variableScope.obj : error LNK2019: unresolved external symbol "float __cdecl SphereVolume(float)" (?SphereVolume@@YAMM@Z) referenced in function _main
@kdmkdmkdm
kdmkdmkdm / revisedLinearC++
Created April 23, 2012 21:43
revisedLinearC++
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
int x[17] = {7, 3, 32, 2, 55, 34, 6, 13, 29, 22, 11, 9, 1, 5, 42, 39, 8};
int position = -1;
int value = 0;
@kdmkdmkdm
kdmkdmkdm / lineSearchNewC++
Created April 23, 2012 21:28
lineSearchNewC++
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
int x[8] = {78, 48, 23, 94, 12, 60, 84, 55};
int position = -1;
@kdmkdmkdm
kdmkdmkdm / cout3rdValue?C++
Created April 23, 2012 18:24
cout3rdValue?C++
#include "stdafx.h"
#include <iostream>
#include <string>
using namespace std;
int main()
{
int x[8] = {0, 1, 2, 3, 4, 5, 6, 7};
@kdmkdmkdm
kdmkdmkdm / asciiC
Created April 23, 2012 02:15
asciiC++
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
char aciiMatrix[23][10];
// Loop over rows.
for(int i = 0; i < 23; ++i)
@kdmkdmkdm
kdmkdmkdm / matrixCPlusPlus
Created April 22, 2012 19:32
matrixCPlusPlus
// matrixAddition
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
int matrixA[2][3] =
{
@kdmkdmkdm
kdmkdmkdm / c
Created April 22, 2012 19:30
versionTest
version 2.0
@kdmkdmkdm
kdmkdmkdm / c++
Created April 22, 2012 19:26
c++
// matrixAddition
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
int matrixA[2][3] =
{
@kdmkdmkdm
kdmkdmkdm / c++
Created April 22, 2012 19:00
c++
version 1.0
@kdmkdmkdm
kdmkdmkdm / revisedAgainC++
Created April 22, 2012 16:54
revisedAgainC++
// navigatorProgram: My first semi-good C++ program.
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
// Declare.
int positionX = 0;