CompuServe Thread

#STUDENT RESPONSE ANI3-A

6 messages in this thread
#153864From: Jack S. WinbergFeb 17, 1995 1:00 PM
I'm having problems with the first program I wrote. When I try to run it (copy below), I get the error message "Error in =: AA Temp.POC near line 1: Expecting name in declaration got '…' Here is the program: ………… program beginning………………. // Here is my first POCO routine (Saved as "TRY0,POC) // These are Remarks // Below is the main module with beginning & ending curly brackets. main () { // function printf("") prints text in quotes in the // status bar printf("This is my first POCO program"); // The Qtext("") function prints text in quotes in a // dialog box along with a (continue) button Qtext("Qtext makes the program wait"); // The unprintf () function clears the status bar of // text placed by the printf("") command unprintf(); } // Right above is the closing bracket of the main // program. ……………… program ends here …………. Debugging dead ends me. Please help. Jack Winberg
#153936From: NAAUGFeb 17, 1995 6:17 PM
>>>Jerry>>> Hi Jack. Start a new file in the POCO editor, and type exactly what you see below here, without any comments: main () { printf("This is my first POCO program."); Qtext("Qtext makes the program wait."); unprintf(); } Does the program still bomb out? If not, find out what is different between the two. If it does, we have a bigger problem. <<<Jerry<<<
#154240From: Jack S. WinbergFeb 19, 1995 11:03 AM
Hi Jerry, Unfortunately, the program still bombs after I typed in exactly what you recommended: main () { printf("This is my first POCO program."); Qtext("Qtext makes the program wait."); unprintf(); ) The error message is now "Expecting a number, variable, or string Get ')' " We may, therefore, be having bigger (I assume compiler) problems. Oh dear, what now? Shall I reinstall Ani-Pro? I use a boot disk for it, to disable my memory manager – it has only the stuff needed to get ANI running. Jack
#154280From: NAAUGFeb 19, 1995 6:53 PM
>>>Jerry>>> Unfortunately, the program still bombs after I typed in exactly what you recommended: main () { printf("This is my first POCO program."); Qtext("Qtext makes the program wait."); unprintf(); ) <————this should be a }, not a ). Try this. <<<Jerry<<<
#154293From: Jack S. WinbergFeb 19, 1995 8:42 PM
Hi Jerry, Well, OK – I typed in ALMOST exactly what you recommended. What wonders a curly bracket can bring about. It runs just fine now. Thanks VERY much for your prompt and effective attention. Jack
#154420From: NAAUGFeb 20, 1995 2:12 PM
>>>Jerry>>> Well, OK – I typed in ALMOST exactly what you recommended. What wonders a curly bracket can bring about. It runs just fine now. Thanks VERY much for your prompt and effective attention. I'm glad the problem was found. Onward.. <<<Jerry<<<