Esempio n. 1
0
int main(void) {
  // Create formatter object
  formatter my_formatter; 

  puts("Running my formatting tool!");
  
  // Invoke formatter constructor
//  formatter_init(&my_formatter, TEXT, "c:\\temp\\abc");
  formatter_init(&my_formatter, TEXT, "/Users/Daniel/Desktop/iha/mps/exercise1");

  // Use formatter methods
  formatter_header(&my_formatter, "head head header");
  formatter_body(&my_formatter, "bod bod body");

  // Invoke formatter destructor
  formatter_release(&my_formatter);
  
  return EXIT_SUCCESS;
}
int main(void) {
	// Create formatter object
	formatter my_formatter; 

	puts("Running my formatting tool!"); 
	
	// Invoke formatter constructor
	formatter_init(&my_formatter, TEXT, "c:\\temp\\abc");
//	formatter_init(&my_formatter, HTML, "c:\\temp\\abc");

	// Use formatter methods
	formatter_header(&my_formatter, "head head header");
	formatter_body(&my_formatter, "bod bod body");

	// Invoke formatter destructor
	formatter_release(&my_formatter);
	
	getch();
	return EXIT_SUCCESS;
}