Aspose::Cells::Startup(); //For complete examples and data files, please go to https://github.com/aspose-cells/Aspose.Cells-for-C //Path of input U16String dirPath(u""); //Path of output U16String outPath(u""); //Path of input excel file U16String samplePrecedentsAndDependents = dirPath + u"samplePrecedentsAndDependents.xlsx"; //Load source Excel file Workbook workbook(samplePrecedentsAndDependents); //Calculate workbook formula workbook.CalculateFormula(); //Access first worksheet Worksheet worksheet = workbook.GetWorksheets().Get(0); //Access cell F6 Cell cell = worksheet.GetCells().Get(u"F6"); //Get precedents of the cells and print them on console std::cout << "Printing Precedents of Cell: "; std::cout << cell.GetName().ToUtf8() << std::endl; std::cout << u"-------------------------------" << std::endl; ReferredAreaCollection refac = cell.GetPrecedents(); int count = refac.GetCount(); for (int i = 0; i < count; i++) { ReferredArea refa = refac.Get(i); int row = refa.GetStartRow(); int col = refa.GetStartColumn(); cell = worksheet.GetCells().GetCell(row, col); std::cout<