Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 Need help syntax error i am just pretty much lazy and have no time have to do other work
Index -> Programming, Turing -> Turing Help
View previous topic Printable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
belarussian




PostPosted: Thu Nov 19, 2009 6:53 pm   Post subject: Need help syntax error i am just pretty much lazy and have no time have to do other work

ok so i have a syntax error it says this

%%%%%%%%%%%%%%%%%
syntax error at 'Hello',expected identifier what should i do about this ?

if you need i could post the program and procedure i wrote
Sponsor
Sponsor
Sponsor
sponsor
Tony




PostPosted: Thu Nov 19, 2009 7:00 pm   Post subject: RE:Need help syntax error i am just pretty much lazy and have no time have to do other work

You should probably give the compiler an identifier.

Post just the line that the problem is at.
Latest from compsci.ca/blog: Tony's programming blog. DWITE - a programming contest.
D_homes




PostPosted: Thu Nov 19, 2009 8:31 pm   Post subject: Re: Need help syntax error i am just pretty much lazy and have no time have to do other work

ya... can't really help you unless you post the code...
belarussian




PostPosted: Thu Nov 19, 2009 9:00 pm   Post subject: Re: Need help syntax error i am just pretty much lazy and have no time have to do other work

THIS IS THE CODE NOW AND I HAVE FIXED IT

%Draws text in the horizontal centre of the screen
%Param : text - the text we would display
% y - the y position of the text
% font - the font to draw the text in
% color - the color to use to draw the text
%DrawTextInXCentre (text : string, y, font, color : int)


View.Set ("graphics:800;600")
const FontS := Font.New ("Arial:30:bold")

procedure DrawTextInXCentre (text : string, y, font, color : int)
var width : int

width := Font.Width (text, font)

Draw.Text (text, (maxx - width) div 2, y, font, color)
end DrawTextInXCentre




and the one before sucked and i closed it without deleting it so iut is gone but thx for at least looking at it i know i could count on you
Display posts from previous:   
   Index -> Programming, Turing -> Turing Help
View previous topic Tell A FriendPrintable versionDownload TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 4 Posts ]
Jump to:   


Style:  
Search: