online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <iostream> #include <string> #include <fstream> // Flujo de Archivo #include <cstdlib> using namespace std; int main(){ // el constructor ofstream abre un archivo ofstream outClientFile( "clientes.txt", ios::out ); // Sale del programa si no puede crear el archivo if ( !outClientFile ){ // el operador ! negacion cerr << "El archivo no se puede abrir" << endl; exit( 1 ); } // end if cout<< "Ingrese la cuenta, el nombre y el saldo." << endl << "Ingrese el simbolo end-of-file " << "(^z windows ó ^d -linux) para terminar el ingreso.\n? "; int cuenta; string nombre; double saldo; // Leer la cuenta, el nombre y el saldo desde cin, // luego colóquelo en el archivo while ( cin >> cuenta >> nombre >> saldo ){ outClientFile << cuenta << ' ' << nombre << ' ' << saldo << endl; cout << "? "; } // end while }
100 Juan 120.9 200 Pedro 1200.5 300 Luis 500.2
400 juan 5 600 edro 2 200 adel 53.3

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