<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>kind soul to help w/ homework? - C++ - tribe.net</title>
  <link rel="alternate" href="http://cpp.tribe.net/thread/9bbe9e93-9583-4f44-ac47-104e90d7fd10?format=atom" />
  <subtitle>Tribe.net. Local Connections</subtitle>
  <entry>
    <title>Re: kind soul to help w/ homework?</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/9bbe9e93-9583-4f44-ac47-104e90d7fd10#d6c87008-840f-4eda-80c9-19ef17b318cb" />
    <author>
      <name>Hypno</name>
    </author>
    <id>http://CPP.tribe.net/thread/9bbe9e93-9583-4f44-ac47-104e90d7fd10#d6c87008-840f-4eda-80c9-19ef17b318cb</id>
    <updated>2005-05-06T01:03:55Z</updated>
    <published>2005-05-06T01:03:55Z</published>
    <summary type="html">What he said.  Sometimes it can be very hard to spot.&#xD;
&#xD;
Sounds like you haven't found exactly what the compiler is griping about.  If it's a complex expression break it into multiple lines by placing each part of the expression in a local or use parens &amp;amp;(expression) instead of &amp;amp;expression.  Also some explicit casts may point out what the compiler is thinking.</summary>
    <dc:creator>Hypno</dc:creator>
    <dc:date>2005-05-06T01:03:55Z</dc:date>
  </entry>
  <entry>
    <title>Re: kind soul to help w/ homework?</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/9bbe9e93-9583-4f44-ac47-104e90d7fd10#5d187134-d7b2-45d6-8966-7d21c733ec65" />
    <author>
      <name>Kaz</name>
    </author>
    <id>http://CPP.tribe.net/thread/9bbe9e93-9583-4f44-ac47-104e90d7fd10#5d187134-d7b2-45d6-8966-7d21c733ec65</id>
    <updated>2005-05-06T00:18:14Z</updated>
    <published>2005-05-06T00:18:14Z</published>
    <summary type="html">If you have an expression FOO-&gt;BAR then FOO must be one of two things. It must be a pointer to a class, structure or union type, or it must be an object that provides a custom -&gt; operator.&#xD;
&#xD;
The designers of C decided to have different member selection operators for accessing an object directly or through a pointer, and C++ retains that design decision.  If FOO is a struct, class or union object, then FOO.BAR accesses member BAR. If FOO is a pointer to such an object then you use FOO-&gt;BAR.&#xD;
&#xD;
A common programming mistake is to use the wrong one: to apply a . to a pointer, or -&gt; to a non-pointer. &#xD;
&#xD;
Maybe that is what is wrong in your program: that you want to be using the . operator instead of the -&gt; operator.</summary>
    <dc:creator>Kaz</dc:creator>
    <dc:date>2005-05-06T00:18:14Z</dc:date>
  </entry>
  <entry>
    <title>kind soul to help w/ homework?</title>
    <link rel="alternate" href="http://CPP.tribe.net/thread/9bbe9e93-9583-4f44-ac47-104e90d7fd10#58752117-9302-4231-aa7e-f1df8bda3333" />
    <author>
      <name>Rihanha</name>
    </author>
    <id>http://CPP.tribe.net/thread/9bbe9e93-9583-4f44-ac47-104e90d7fd10#58752117-9302-4231-aa7e-f1df8bda3333</id>
    <updated>2005-05-05T23:45:08Z</updated>
    <published>2005-05-05T23:45:08Z</published>
    <summary type="html">Out of ideas…&#xD;
Hello. I’ve been working on a program for a class (and using a class at that) that translates prefix to postfix using a LinkedList stack.  We are supposed to create a stack class &amp;amp; use it to perform the task. My solution is not eloquent, but I can’t even find out IF it will work because it won’t compile, even after many rounds of “The power of Christ compiles you!”  *sigh*&#xD;
&#xD;
I’m using .NET environment for first time (it really isn’t winning me over) &amp;amp; wondering if its related? I get this error message:&#xD;
“error C2227: left of '-&gt;TopFlag' must point to class/struct/union” paired with “error C2819: type 'stackType' does not have an overloaded member 'operator -&gt;'”  for each line where I referece my class object (mystack).  It seems clear it isn’t recognizing my class object, but I don’t know why – i.e. error in declaration, error with linking.&#xD;
&#xD;
The class files compile fine, but when I try to compile whole project it crashes. The instructor has looked at it &amp;amp; says “I ‘dunno” *grrr* it’s a small program. &#xD;
&#xD;
Any chance someone out there would take a look at it &amp;amp; see if something jumps out? I can email text or .cpp files.  Thanks a ton,&#xD;
Rihanha</summary>
    <dc:creator>Rihanha</dc:creator>
    <dc:date>2005-05-05T23:45:08Z</dc:date>
  </entry>
</feed>



