Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
help with c++

 
Post new topic   Reply to topic Printable version
 View previous topic  ssforum.net down? (edit: back since Ma... Post :: Post SSC Biller Downage Explained  View next topic  
Author Message
jewjitsuMASTERaaaaaaaaaaa
Guest


Offline

PostPosted: Tue May 27, 2008 2:24 pm   Post maybe stupid    Post subject: help with c++ Reply to topic Reply with quote

I am working a program using SDL library, and language is c++, this is the part of code i have a problem with

Code: Show/Hide
class Dot
{
      private:
              int x,y;
              int xVel,yVel;
      public:
             Dot();
             void handleInput();
             void move();
             void show();
}

Dot::Dot()
{
          x = 0;
          y = 0;
          xVel = 0;
          yVel = 0;
}


and This is what DevC++ tells me
Code: Show/Hide
main.cpp:49: error: new types may not be defined in a return type
main.cpp:49: error: return type specification for constructor invalid



any one help?
Back to top
fuker
Guest


Offline

PostPosted: Tue May 27, 2008 2:40 pm   Post maybe stupid    Post subject: Reply to topic Reply with quote

nevermind forgot to add a ';' att the end of class
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Trash Talk All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 31 page(s) served in previous 5 minutes.

phpBB Created this page in 0.844720 seconds : 24 queries executed (96.7%): GZIP compression disabled