A89: Jack Nicholsan has a demon, do you?


[Prev][Next][Index][Thread]

A89: Jack Nicholsan has a demon, do you?




Hey, I was wondering how could I write a program that took an inputted 
number, tested its value, and displayed a corresponding grayscale sprite. In 
C++ it would look something like this:
int var=0;
while(var!=99) 		//flag for exiting the prgm
	{
	cin>>var;		//input into variable
	if(var==1)		//switch statement would also work but 
they're gay
		cout<<sprite1;
	if(var==2)
		cout<<sprite2;
	...
	if(var==98)
		cout<<sprite98;
	}
end;		//pretty obvious what this is

Thanks for any help I get.
-Michael Meadors has a demon, do you?