Stop Microsoft
		Miscellaneous => Programming & Networking => Topic started by: Kintaro on 29 March 2003, 14:47
		
			
			- 
				This program compiles, but there is somthing wrong with the printw bit.
 
 
 I guess i need somthing else instead of %d in the printw for strings and chars to be shown correctly (im used to cout in c++).
- 
				The format specifier for printing a string is %s, and char is %c. Although if you'd used %c your code would just print a character at a time, whereas presumably you want to print a word on each keypress?
 
 In which case, your array of words should be more like:
 
 
 Then your loop would be:
 
 - 
				No i want a char each keypress so it looks like you are typing them.
			
- 
				Just change %d to %c then.
			
- 
				I did and thanks, it works...
 http://users.bigpond.com/tate0/shit/swear.c (http://users.bigpond.com/tate0/shit/swear.c)
 
 NOW THATS CURSES ;)