[ create a new paste ] login | about

Link: http://codepad.org/DarEDbob    [ raw code | output | fork ]

FarK - C++, pasted on Mar 10:
#include <iostream>

using namespace std;

int algoritmoComplejo(int i){
   return i*2;
}

class MiClase{
public:
  const int atributo_constante;

  MiClase(int argumentos) : atributo_constante(algoritmoComplejo(argumentos)){
     cout << atributo_constante << endl;
  }

};

int main(){

  MiClase mc(3);
  return 0;
}


Output:
1
6


Create a new paste based on this one


Comments: