online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> #include <iomanip> using namespace std; struct Empleado { int num_id; double tarifaPago; double horas; }; // declara un tipo // prototipo de la funcion pasa un arreglo de estructuras double calcNeto(Empleado [], int); int main() { Empleado empl[3] = { 6782, 8.93, 40.5, 6783, 9.93, 20.5, 6784, 10.93, 30.5, }; double pagoNeto; //establece formatos de salida cout<<setw(10) <<setiosflags(ios::fixed) // Pto flotante en formato p. fijo <<setiosflags(ios::showpoint) <<setprecision(2); for(int i=0; i<3; i++){ // transmite una direccion pagoNeto = calcNeto(empl, i); cout<<"El pago neto para el empleado "<<empl[i].num_id <<" es $"<<pagoNeto<<endl; } return 0; } double calcNeto(Empleado pt[], int ind) // { (*(pt+ind)).num_id += 10; // modifcamos los id return pt[ind].tarifaPago * pt[ind].horas; }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue