Post a reply
Username:
Note:If not registered, provide any username. For more comfort, register here.
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Smilies
:D :) :( :o :shock: :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen:
Font size:
Font colour
Options:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Disable BBCode
Disable smilies
Do not automatically parse URLs
Confirmation of post
To prevent automated posts the board requires you to enter a confirmation code. The code is displayed in the image you should see below. If you are visually impaired or cannot otherwise read this code please contact the %sBoard Administrator%s.
Confirmation code:
Enter the code exactly as it appears. All letters are case insensitive, there is no zero.
   

Topic review - Prompt "Display all 225 possibilities?"
Author Message
  Post subject:  Re: Prompt "Display all 225 possibilities?"  Reply with quote
Thanks a lot!
Post Posted: Sat Jan 26, 2013 2:42 pm
  Post subject:  Re: Prompt "Display all 225 possibilities?"  Reply with quote
Its because of your editor and the way you have written your code. Most probably you have pressed "tab" for alignment during while loop. On Singular command prompt if you press "tab" key twice, you will get the same message.

If you replace "tab" with spaces in your file, then this message will go away.

Hope this helps.

VInay
Post Posted: Fri Jan 25, 2013 6:30 am
  Post subject:  Prompt "Display all 225 possibilities?"  Reply with quote
Hello,

always I try to complie my code I get a strange prompt like "Display all 225 possibilities? (y or n)". You can see it on this screen:
Image

Here is my code:
Code:
LIB "poly.lib";
proc DivAlgo(list L) {
   poly p = L[1];
   list a = list(0:size(L));
   L = delete(L, 1);
   while(p != 0) {
      poly LTp = lead(p);
      int flag = 0;   
      for(int i = 0; i < size(L); i++) {
         if(gcd(LTp, L[i]) != 1) {
            p = p - (LTp/lead(L[i])) * L[i];
            a[i] = a[i] + LTp/lead(L[i]);
            flag = 1;
            break;
         };
      };
      if(flag == 0) {
         p = p - LTp;
         a[size(a)] = a[size(a)] + LTp;
      };
   };
   return(a);
};


I found out, that the message appears after the while-loop. I shorted the code on the screen.
But what's the reason? Can someone help me?

Best regards!
Post Posted: Thu Jan 24, 2013 6:12 pm


It is currently Fri May 13, 2022 10:58 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group