A tutorial program which is shown, with explanations, in Tutorial 2: Adding formatting to the XLSX File.
#include "xlsxwriter.h"
struct expense {
char item[32];
int cost;
};
struct expense expenses[] = {
{"Rent", 1000},
{"Gas", 100},
{"Food", 300},
{"Gym", 50},
};
int main() {
int row = 0;
int col = 0;
int i;
for (i = 0; i < 4; i++) {
row = i + 1;
}
}