First commit 20/03/1997

This commit is contained in:
2021-09-08 21:44:52 +02:00
commit 6823005994
300 changed files with 31820 additions and 0 deletions

30
DATOS/EMP00001/VISUAL.CPP Normal file
View File

@ -0,0 +1,30 @@
#include <conio.h>
#include "d:\program\src_dos\libs\bdatos\bdatos.hh"
#include "d:\program\src_dos\tpv\tpv_def.h"
BDatos BReg;
VENTAS SReg;
void main ( void )
{
long i;
if ( BReg.AbrirReg( "ventas.tmp", sizeof( VENTAS ) ) == ERROR )
{
cprintf( "Error leyendo VENTAS.TMP\r\n" );
return;
}
for ( i = 0; i < BReg.Registros(); i++ )
{
BReg.LeeReg( (void *)&SReg, i );
cprintf( "Reg %02d: %09lu %06u %06lu %06lu\r\n", i, SReg.CodigoR, SReg.Cantidad, SReg.PrecioC, SReg.PrecioV );
}
BReg.CerrarReg();
}