Skip to content

Instantly share code, notes, and snippets.

View flyingmutant's full-sized avatar

Gregory Petrosyan flyingmutant

View GitHub Profile
package manabase;
import java.util.Arrays.*;
import java.util.Random;
public class ManaBase {
public static void main(String[] args) {
Deck deck=new Deck();

Keybase proof

I hereby claim:

  • I am flyingmutant on github.
  • I am gp (https://keybase.io/gp) on keybase.
  • I have a public key whose fingerprint is ECB8 3024 9300 09DB 5A2F 07C5 D265 0A0A FA00 7999

To claim this, I am signing this object:

struct ISound
{
virtual ~ISound() {};
//скорость потока
virtual double bitrate() const = 0;
//полезные методы
...
};
#include <boost/scoped_ptr.hpp>
#include <boost/scoped_array.hpp>
class Foo
{
public:
Foo(size_t j): i(new int[j]) {}
virtual ~Foo() {}
[MacBook-Pro-Gregory test]$ clang ya.cpp
ya.cpp:13:5: error: constructor for 'Bar' must explicitly initialize the base class 'Foo' which does not have a default constructor
Bar(int j) { i=new char[j]; }
^
ya.cpp:1:7: note: 'Foo' declared here
class Foo
^
ya.cpp:20:1: error: 'main' must return 'int'
void main()
^