I'm using org-mode to control some charges, using c++ code to balance. But I have to assign the values by hand. And I would like to assign the values via org properties or some other form of assignment by reference. But I don't know how to make the org data interact with my c++ code. Or do it in a more elegant way. any idea? my code
* mayo 2022
** Acario
:PROPERTIES:
:fecha: <2022-05-01 Dom>
:empleador: acario
:horas_all: 9
:dinero: 80
:cobrado: no
:END:
** Acario
:PROPERTIES:
:fecha: <2022-05-07 Sat>
:empleador: acario
:horas_all: 8
:dinero: 60
:cobrado: no
:END:
** Chiete
:PROPERTIES:
:fecha: <2022-05-08 Sun>
:empleador: Chiete
:horas_all: 6.5
:dinero: 65
:cobrado: no
:extra_cobrado: 50
:END:
#+begin_src C++ :includes <iostream>
int Pendiente=80+60+65;
int Dinero_total=80+60+65+50;
std::cout<<"Dinero_total Pendiente\n";
std::cout<<Dinero_total<<"\t";
std::cout<<Pendiente;
#+end_src
#+RESULTS:
| Dinero_total | Pendiente |
| 255 | 205 |