Here is my main. All I am trying to do is create an object of the class file, this is probably a very noobish question so sorry, just need to know what I'm doing wrong.  #include &lt;iostream&gt; #include "Player.h"  using std::cout; using std::cin;  int main() {     cout &lt;&lt; "Hello and welcome to the student adventures game.\n";      Player player1(); }
Is there any good reason that an empty set of round brackets (parentheses) isn't valid for calling the default constructor in C++?  MyObject  object;  // ok - default ctor MyObject  object(blah); // ok  MyObject  object();  // error   I seem to type "()" automatically everytime. Is there a good reason this isn't allowed?
Our GM won't let us affect the story; the more I play the less fun I have. What do I do? I was wondering if anyone could give me some advice or anything on a GM situation.   My current GM is running a campaign and it is very video game/anime like. It started out super fun and the deeper we get the less fun I have. The reason is, it feels like GM is telling us a story but we cannot interact or change anything during his, "cut scenes". No matter what any player does he just says, "No it didn't work," or, "Yeah you do that. See if you roll a 20." We also can't damage any boss he has until we reach the point in the story that he has planned, so our interactions we have with villains don't matter.  I feel like he is making us sit there and listen to an anime he has come up with in his head. Since the players can't change or react to the key situations. I find my self sitting there thinking, why would I react, it doesn't matter.  It's not just me either. Another player feels the same way. I am going to talk to my other fellow players soon about it and see how they feel.  Side note: the GM as a person is very defensive and I am afraid to confront him about it because I know he will throw a fit. We have also caught him straight lying about abilities and stats on his own PC in other campaigns, and he doesn't take to kindly when you call him out.  He is new to GMing. This is only the second game I have played with him as a GM. The first one had one session the he just never wrote more for.  Is there anything I can do to maybe get him to more lenient with his story? I really enjoy the story for the most part and if he would just let our characters do things and give us a chance at stopping his villians or letting us change the story based on our actions, everything would be cool. What do people who are using a pensieve look like? As far as I remember from the books, there's no description of what a person using a Pensieve looks like. When Harry is using the Pensieve, he describes it as if he were falling into it, but it's never stated whether his body really enters the Pensieve, because the experience is just told from his point of view.   Now let's say Dumbledore enters his office while Harry was using the Pensieve -- what would Dumbledore see? Is there an answer in the books/canon? Mac renames itself automatically - host name is incorrect in terminal I've got a handleful of macs (all with unique names) and on occasion it prompt a notice about saying another computer on the network as this name and adds a (2) or (3) to my mac.    How can I set the host name from the command line? Does electricity flow on the surface of a wire or in the interior? Where to get the full offline-capable installer for macOS Mojave (.1 update)? How SELECT column does not list in GROUP BY clause The query:  select year,sum(mark),sum(maxmark)  from table1  group by parameterno   yields an error message:     Column 'table1.year' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause. How to reference sections, equations, and figures in a separate document (e.g., supplemental information)? I have a main document (manuscript) and a supplemental document.   I wonder if there is a way that I can "link" the two (make them recognize each other) so that section, equation, and figure references across documents are recognized? Questions about insects eating flour and living in the cracks of a wooden cutting boards I have a large wooden cutting board which is used in my kitchen mainly for preparing egg pasta. The wood type is Populus (poplar or aspen or cottonwood).  The main ingredients used with the cutting board are: flour (mainly soft wheat flour), hens' eggs, white sugar, butter, and baking powder.  After the food preparation, the cutting board is cleaned by scraping away the ingredients remains.  The board has some cracks and some small unknown insects are living inside the cracks.   The board has also a lot of holes due to woodboring beetles but I think the woodworms operated long time ago and they no longer live in the cutting board.  The unknown insect has an approximate length of 1 mm (along the direction of their movements) and a width of 0.3 mm. The unknown insects do not have wings, they just walk. I am not able to see how many pairs of legs they have.  The color of the insect is pale brown.  The cutting board was free from these unknown insects some months ago but then they appeared.  My questions:   What insects are they? Are these insects poisonous to humans? How can I get rid of them?   Update  The unknown insects could be Acarus siro, I will try to get a picture of the insects.  Update 2  Here is a picture. The bottom part of the image is a one Euro coin, the top part of the image is a caliper (each bright area is one mm tick).   Some more pictures: Value of $\frac{x^n -a^n}{ x-a}$? Show that total orders are maximal orders A set $X$ together with a binary relation $\leq$ such that for all $x,y,z\in X$,  $O1$. $x\leq x$  $O2$. $x\leq y$ and $y\leq x$ then $x=y$  $O3$. $x\leq y$ and $y\leq z$ then $x\leq z$  is called an ordered or sometimes a partially ordered.  An ordered $(X,\leq)$ is called a total order if for all $x,y\in X$, either $x\leq y$ or $y\leq x$.  Question: Show that total orders are maximal orders  My question: is there a typo in the question?  What is a maximal order? How can I prove the question, can you help? Thanks... Show images related to features in QGIS? Say for example, if there's a point data with old trees, then when you use the identify tool, you can see the photograph of the tree  Or even one level further, the labels displaying these images right away without any clicking needed  I believe the term is file streaming? Series with denominator that is square of product of consecutive numbers Evaluate $\sum_{k=1}^{\infty} \frac{1}{k^2(k+1)^2}$.   I've tried to use a telescoping approach, but it doesn't seem to work. It doesn't also seem to converge to a "pretty" value as well. Proof of a formula for the power set of a union of two sets I need to prove that:  $2^{A\cup B} =\left \{ X\cup Y \mid X\in 2^{A}, Y\in2^{B} \right \}$  Note that $2^{A} = P(A)$ (The power set of A).  While I can prove the Right - Left direction fairly easily, It seems very hard for me to prove the Left - Right direction. Can I get some help with that?  How do I prove that $t\in2^{A\cup B}$ makes $t\in \left \{ X\cup Y \mid X\in 2^{A}, Y\in2^{B} \right \}$? I'm a big fan of the votes tab in the profile page, as it allows me to keep track of my usage of the moderation tools. Or at least it would, if votes cast on deleted posts didn't unceremoniously disappear.  Although I don't like it, I can live with that for (up|down|close|reopen)-votes. In fact, I didn't even notice it before gaining 10k rep on SU. But it renders the deletion and undelete subtabs pretty much useless, since it hides – by design – all successful deletion and (yet) unsuccessful undeletion votes.  @slhck suggested in an answer to  the following rationale for this behavior:     While this sounds strange, it's just a result of the … let's call it "Stack Exchange policy" of not showing lists of deleted posts to non-moderators. In my opinion this policy is a little incoherent, because your flagging record shows deleted posts [...]   Actually, the flagging record shows deleted posts to pretty much all users. So does the reputation tab of the user profile (as long as you earned/lost reputation on that post).  If that is in fact the reason, why can't a 10k user see a list of posts he voted on (and thus, already saw)? How can I search for a keyword with special characters in Google Search? I want to search for what += means, but Google won't return any documents.  Also when I come across some PHP code I don't understand I can't search for the keywords as written.  How can I search for these special characters or include these special characters in a search. I duplicated a few objects with Alt+D and now I want to apply some modifiers to them, however I can't, because they are multi-user objects.  I tried U > Objects but I still can't apply the modifier.  How to make multi user objects single user? Well, I already searched meta as well as cleared my browser cache.  I realize this may be a SO cache problem, but it still seems kind of strange to me.    The deleted question is (assuming it still exists).  Shouldn't deleted questions only be visible to 10k users?  I'm only at 2k. Javascript parseInt() with leading zeros Let $x,y,z&gt;0$. Show that $$\sum_{cyc}(1-x)^2\ge \sum_{cyc}\dfrac{z^2(1-x^2)(1-y^2)}{(xy+z)^2}.$$ Here's what I have done. The expression $$\sum_{cyc}(1-x)\left((1-x)-\dfrac{z^2(1+x)(1-y^2)}{(xy+z)^2}\right)\ge 0$$ or $$\sum_{cyc}(1-x)\cdot\dfrac{x^2y^2+y^2z^2+xy^2z^2+2xyz-2xz^2-2x^2yz-x^3y^2}{(xy+z)^2}\ge 0.$$ But this way does not help for the starting inequality. Indefinite integral $\int(\sin x)^2/(x\cdot\cos x-\sin x)^2\,dx$ How to find the antiderivative of $\dfrac{(\sin x)^2}{(x\cdot\cos x-\sin x)^2}$? I know that series theory can solve the problem. But I wish to solve the problem by the antiderivative way. The numerator and denominator divide the $x^2$ at the same time, don't they?