- Aug 17, 2005
 
- 790
 
- 0
 
- 0
 
Hello, I am given a task which is my last one for the term to write a particular program. I am just looking for steps of how to approach it. So the details about this program is:
? make a myScanf() function that works likescanf("%d", &val) for positive integers.
? i.e. myScanf(int * p) reads digit characters from
KB (use getchar()) and converts to integer.
? skips white space.
? reads digits and converts to integer until
? non-digit read, then stores in integer at *p
? You should be able to replace a call to
scanf("%d", &val) with myScanf(&val).
 
Please help. Again thanks alot for the help with my previous program.
			
			? make a myScanf() function that works likescanf("%d", &val) for positive integers.
? i.e. myScanf(int * p) reads digit characters from
KB (use getchar()) and converts to integer.
? skips white space.
? reads digits and converts to integer until
? non-digit read, then stores in integer at *p
? You should be able to replace a call to
scanf("%d", &val) with myScanf(&val).
Please help. Again thanks alot for the help with my previous program.
				
		
			