Skip to main content
deleted 1 characters in body; edited title
Source Link
Sathyajith Bhat
  • 22.2k
  • 4
  • 60
  • 105

why Why doesn't my question (attached) doesn't meet quality standartsstandards?

I was trying to post a question to stackoverflowStack Overflow but I can not because it "doesn't meet quality standards".

doesn't meet quality standards

How can I know what need to be fixed in my question so it become "meeting quality standards"? Adding question below, thanks!

In c++ I can declare field as regular variable of some type, instatiate it in constructor, and use it later:

private:  Foo field;
...

A::A() {
    field = FieldImpl();
}
....
method(field);

Or alternatively i can use pointer:

private:  Foo* field;
...

A::A() {
    field = new FieldImpl();
}

A::~A() {
    delete field;
}

...
method(*field);

What is prons and cons of declaring field as pointer? When declaring field how to decide if I should use pointer or regular variable?

why my question (attached) doesn't meet quality standarts?

I was trying to post a question to stackoverflow but I can not because it "doesn't meet quality standards". How can I know what need to be fixed in my question so it become "meeting quality standards"? Adding question below, thanks!

In c++ I can declare field as regular variable of some type, instatiate it in constructor, and use it later:

private:  Foo field;
...

A::A() {
    field = FieldImpl();
}
....
method(field);

Or alternatively i can use pointer:

private:  Foo* field;
...

A::A() {
    field = new FieldImpl();
}

A::~A() {
    delete field;
}

...
method(*field);

What is prons and cons of declaring field as pointer? When declaring field how to decide if I should use pointer or regular variable?

Why doesn't my question meet quality standards?

I was trying to post a question to Stack Overflow but I can not because it

doesn't meet quality standards

How can I know what need to be fixed in my question so it become "meeting quality standards"? Adding question below

In c++ I can declare field as regular variable of some type, instatiate it in constructor, and use it later:

private:  Foo field;
...

A::A() {
    field = FieldImpl();
}
....
method(field);

Or alternatively i can use pointer:

private:  Foo* field;
...

A::A() {
    field = new FieldImpl();
}

A::~A() {
    delete field;
}

...
method(*field);

What is prons and cons of declaring field as pointer? When declaring field how to decide if I should use pointer or regular variable?

edited body
Source Link
avpaderno
  • 67.1k
  • 11
  • 99
  • 225

I was trying to post a question to stackoverflow but I can not because it "doesn't meet quality standarts"standards". How can I know what need to be fixed in my question so it become "meeting quality standarts"standards"? Adding question below, thanks!

In c++ I can declare field as regular variable of some type, instatiate it in constructor, and use it later:

private:  Foo field;
...

A::A() {
    field = FieldImpl();
}
....
method(field);

Or alternatively i can use pointer:

private:  Foo* field;
...

A::A() {
    field = new FieldImpl();
}

A::~A() {
    delete field;
}

...
method(*field);

What is prons and cons of declaring field as pointer? When declaring field how to decide if I should use pointer or regular variable?

I was trying to post a question to stackoverflow but I can not because it "doesn't meet quality standarts". How can I know what need to be fixed in my question so it become "meeting quality standarts"? Adding question below, thanks!

In c++ I can declare field as regular variable of some type, instatiate it in constructor, and use it later:

private:  Foo field;
...

A::A() {
    field = FieldImpl();
}
....
method(field);

Or alternatively i can use pointer:

private:  Foo* field;
...

A::A() {
    field = new FieldImpl();
}

A::~A() {
    delete field;
}

...
method(*field);

What is prons and cons of declaring field as pointer? When declaring field how to decide if I should use pointer or regular variable?

I was trying to post a question to stackoverflow but I can not because it "doesn't meet quality standards". How can I know what need to be fixed in my question so it become "meeting quality standards"? Adding question below, thanks!

In c++ I can declare field as regular variable of some type, instatiate it in constructor, and use it later:

private:  Foo field;
...

A::A() {
    field = FieldImpl();
}
....
method(field);

Or alternatively i can use pointer:

private:  Foo* field;
...

A::A() {
    field = new FieldImpl();
}

A::~A() {
    delete field;
}

...
method(*field);

What is prons and cons of declaring field as pointer? When declaring field how to decide if I should use pointer or regular variable?

I was trying to post a question to stackoverflow but I can not because it "doesn't meet quality standards"standarts". How can I know what need to be fixed in my question so it become "meeting quality standards"standarts"? Adding question below, thanks!


In c++ I can declare field as regular variable of some type, instatiate it in constructor, and use it later:

private:
Foo field;
...

A::A() {
    field = FieldImpl();
}
....
method(field);

Or alternatively i can use pointer:

private:
Foo* field;
...

A::A() {
    field = new FieldImpl();
}

A::~A() {
    delete field;
}

...
method(*field);

What is prons and cons of declaring field as pointer? When declaring field how to decide if I should use pointer or regular variable?

In c++ I can declare field as regular variable of some type, instatiate it in constructor, and use it later:

private:  Foo field;
...

A::A() {
    field = FieldImpl();
}
....
method(field);

Or alternatively i can use pointer:

private:  Foo* field;
...

A::A() {
    field = new FieldImpl();
}

A::~A() {
    delete field;
}

...
method(*field);

What is prons and cons of declaring field as pointer? When declaring field how to decide if I should use pointer or regular variable?

I was trying to post a question to stackoverflow but I can not because it "doesn't meet quality standards". How can I know what need to be fixed in my question so it become "meeting quality standards"? Adding question below, thanks!


In c++ I can declare field as regular variable of some type, instatiate it in constructor, and use it later:

private:
Foo field;
...

A::A() {
    field = FieldImpl();
}
....
method(field);

Or alternatively i can use pointer:

private:
Foo* field;
...

A::A() {
    field = new FieldImpl();
}

A::~A() {
    delete field;
}

...
method(*field);

What is prons and cons of declaring field as pointer? When declaring field how to decide if I should use pointer or regular variable?

I was trying to post a question to stackoverflow but I can not because it "doesn't meet quality standarts". How can I know what need to be fixed in my question so it become "meeting quality standarts"? Adding question below, thanks!

In c++ I can declare field as regular variable of some type, instatiate it in constructor, and use it later:

private:  Foo field;
...

A::A() {
    field = FieldImpl();
}
....
method(field);

Or alternatively i can use pointer:

private:  Foo* field;
...

A::A() {
    field = new FieldImpl();
}

A::~A() {
    delete field;
}

...
method(*field);

What is prons and cons of declaring field as pointer? When declaring field how to decide if I should use pointer or regular variable?

deleted 51 characters in body
Source Link
Martijn Pieters
  • 101.9k
  • 33
  • 296
  • 402
Loading
Source Link
Loading