var file:File = File.documentsDirectory;
file = file.resolvePath("air_tests/saved_by_AIR.txt");
// create a stream object to read/write, and open in in APPEND mode
var stream:FileStream = new FileStream();
stream.open(file, FileMode.APPEND);
// add a new line to the text file
stream.writeUTFBytes( (new Date()).toString() +"ТУТ НАЗВАНИЕ ФУНКЦИИ"+ "\n" );
if (command == com_extract) {
cout << bh.heapSort() << endl;
}
int heapSort()
{
for (int i = heap_data.size() - 1; i >= 0; i--)
{
heapify(0);
return extract();
}
}
cout << bh.heapSort() << endl;
заменить на cout << bh.extract() << endl;