Random Selection without replacement

#include "stdafx.h"
#include 
#include 
#include 
#include 
using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{
	clock_t start;   /* Line 8 */
    clock_t finish;  /* Line 9 */
	const int arraysize=36;
	const int SelectN=6;
	int row[SelectN];
	int Crows=100;
	int g;
	int arraycounter=arraysize;
	int a[arraysize+1];
	start = clock();
	srand(60);
	for (int k=0;k|"<
					

one loop and a decision

very very basic for loop and if else if else

#include 
using namespace std;
int main()
{
int i;
for(i=0;i<=13;i++)
    {cout << "Hello world! "<< i <

..notice that by the time it leaves the

for (){}

loop it is 14 not 13

Want system pause?

system("PAUSE");

then you'll need:

#include 

Preprocessor directives

An example of some preprocessor stuff:

#include 
#define __thing__ " amazing "
#define __func__(x,y) ((x)>(y)?(x):(y))
#define _FAT_
#define _Cars_
using namespace std;
int main()
{
     cout << "Hello world!"<< __thing__ <
					

C++ MFC

Make sure:

#include "stdafx.h"

comes FIRST otherwise you will get lots of proper errors.

If you see the following error:

error LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup

Make sure that your linker is set to compile for windows:

Project > Properties > Linker > System > SubSystem
set to
Windows (/SUBSYSTEM:WINDOWS)

Another key hint is to set your

Project > Properties > Configuration Properties > General > Use of MFC

set to:

Use MFC in a Shared DLL