Files correlati : Ricompilazione Demo : [ ] Commento : Aggiunti i sorgenti per Greenleaf Math Library (gfm.dll) git-svn-id: svn://10.65.10.50/trunk@10079 c028cbd2-c16b-5b4b-a496-9718f37d4682
		
			
				
	
	
		
			19 lines
		
	
	
		
			292 B
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			292 B
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
#include <stdio.h>
 | 
						|
#include "gm.h"
 | 
						|
void	main()
 | 
						|
{
 | 
						|
	DEC	da, *a=&da, db, *b=&db;
 | 
						|
	DEC	*f;
 | 
						|
	char	s[30];
 | 
						|
	
 | 
						|
	do  {
 | 
						|
		printf("Type a number:  ");
 | 
						|
		scanf("%s",s);
 | 
						|
		f = ConvAsciiToDecimal(a,s);
 | 
						|
	} while (f == GM_NULL);
 | 
						|
	
 | 
						|
	CopyDecimal(b,a);
 | 
						|
	ConvDecimalToAscii(s,b);
 | 
						|
	printf("You typed a %s\n",s);
 | 
						|
}
 |