All pastes #9489 Raw Edit

dec2bin

public text v1 · immutable
#9489 ·published 2005-04-13 18:29 UTC
rendered paste body
     for (int i=0; i<anzahl; i++)
         {
          int help;
          cin>>input;
          for (int j=0; j>=8; j++)
              {
               help=input % 2;
               if (help != 0)
                  {
                   quellfeld[i*8+j]=1;
                  }
                  else
                  {
                   quellfeld[i*8+j]=0;
                  }
               input = input/2;
              }
         }