Example #1
0
int main()
{
	printusers();
	Program4 prog;
	
    return EXIT_SUCCESS;
}
Example #2
0
int main(int argc, char ** argv)
{
	printusers();
	printf("Arrow keys to move, press 'm' for map view\n");
	
	/* check that there are sufficient arguments */
	unsigned int w;
	unsigned int h;
	if (argc < 3) {
		w = 3;
		h = 3;
		fprintf(stderr, "The width and height can be specified as command line arguments. Defaulting to %i %i\n", w, h);
	}
	else {
		w = atoi(argv[1]);
		h = atoi(argv[2]);
	}
	
	Program4 prog(w, h);
	
    return EXIT_SUCCESS;
}