/*
5. Write a function, char* findx(const char* s, const char* x),
that finds the first occurrence of the C-style string x in s.*/

#include <iostream>
using namespace std;

#define MAXLENGTH 100000

const char* memExhaust() {
	char* cstr = new char[MAXLENGTH];

	return "";
}

int main() {
	int i = { 1 };
	while (1) {
		cout << memExhaust();
		cout << "\nUsed " << i * MAXLENGTH << " memory bytes.";
		++i;
	}
}