Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • can you please post the code where you create Highscore object? Commented Nov 12, 2014 at 19:31
  • Included the object creation code. Commented Nov 12, 2014 at 19:46
  • 2
    I think the problem is some missing bracket or so. Because there is no full code, I can guess and see: 1) setup() should be void setup(). But it should generate C++ warning/error. 2) Passing class parameter forces object copy when procedure is called. gcc should also generate a warning if copy constructor is missing. Use: void writeHighscore(Highscore &hs) or void writeHighscore(Highscore *hs) Copy compilable snipet in your post. Commented Nov 12, 2014 at 20:02
  • Like stated in the original question, by changing the Highscore-parameter by, say, a String or an int, the errors go away, there are no missing brackets. I've also tried the &hs approach beforee writing the post, as well as passing the pointer writeHighscore(&hs) -> void writeHighscore(Highscore *hs) but to no avail. Commented Nov 12, 2014 at 20:24
  • Please post the full source code, otherwise the line numbers in compilation errors are pointless. Commented Nov 12, 2014 at 20:42