Random Selection without replacement

#include "stdafx.h"
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();
	for (int k=0;k|"<

one loop and a decision

very very basic for loop and if else if else

using namespace std;
int main()
int i;
    {cout << "Hello world! "<< i <

..notice that by the time it leaves the

for (){}

loop it is 14 not 13

Want system pause?


then you'll need:


Preprocessor directives

An example of some preprocessor stuff:

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


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

Another key hint is to set your

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

set to:

Use MFC in a Shared DLL