Thread: Really Weird

  1. #1
    C++ Newbie
    Join Date
    Aug 2005
    Posts
    55

    Question Really Weird

    Code:
    for(int i = 0; i < 5; i++)
    {
    	expblity = expblity + 64;
    	for(int x = 0; x < 5; x++)
    	{
    		expblitx = expblitx + 64;
    		blit(explode,exps[x][i],0,0,0,0,expblitx,expblity);
    	}
    }
    ^It's giving me a ton of syntax errors about that, for example "syntax error : missing ';' before '<' " and "syntax error : 'for' "
    any idea what's going on?

  2. #2
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    No main() function?

    There's nothing wrong with that. It's something higher up. I'd guess a missing '{'.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. weird things with my linked list of queue
    By -EquinoX- in forum C Programming
    Replies: 3
    Last Post: 11-22-2008, 11:23 PM
  2. weird
    By kiz in forum C Programming
    Replies: 8
    Last Post: 09-24-2007, 01:16 AM
  3. Weird Characters With GetDlgItemText
    By execute in forum Windows Programming
    Replies: 4
    Last Post: 05-04-2006, 04:53 PM
  4. weird error
    By gandalf_bar in forum Linux Programming
    Replies: 2
    Last Post: 07-17-2005, 07:32 AM
  5. Getting weird characters in Strings
    By steve8820 in forum C Programming
    Replies: 3
    Last Post: 09-18-2001, 02:49 AM