Exemplo n.º 1
0
/*
 * Write the indicated messages at the end of the passed
 * file name, minus header and trailing blank line.
 */
int
swrite(void *v)
{
	char *str = v;

	return(save1(str, 1, "write", ignoreall));
}
Exemplo n.º 2
0
/*
 * Save a message in a file.  Mark the message as saved
 * so we can discard when the user quits.
 */
int
save(void *v)
{
	char *str = v;

	return(save1(str, 1, "save", saveignore));
}
Exemplo n.º 3
0
/*
 * Copy a message to a file without affected its saved-ness
 */
int
copycmd(void *v)
{
	char *str = v;

	return(save1(str, 0, "copy", saveignore));
}
Exemplo n.º 4
0
void shakil:: mixed()
{ tm=0;ne2=0;
  cleardevice();
  showmouseptr();
  settextstyle(1,0,1);
  show();
  while(1)
  {getmousepos(&button,&x,&y);
   if((button & 1)==1)
   {cal();
    resu();
    show();
    if(x>=470&&x<=520)
    {if(y>=370&&y<=390)
    {ne2=10;
     break; }
    if(y>=270&&y<=290)
    {save1();   }

   } }

   if(result==10)
   {settextstyle(1,0,10);
    outtextxy(50,100,"YOU WIN");
    delay(1000);
    getch();
    break;
   }
}
hidemouseptr();
result=0;
cleardevice();
showmouseptr();
}
Exemplo n.º 5
0
void to_hex(std::ostream& out, BinarySequence::const_iterator begin, BinarySequence::const_iterator end) {
    boost::io::ios_flags_saver save1(out);
    boost::io::ios_width_saver save2(out);
    boost::io::ios_precision_saver save3(out);
    out << std::hex << std::setw(1) << std::setprecision(1);
    while(end - begin >= 4) {
        int x = 0;
        for(int i=0; i<4; ++i) {
            x |= begin.pop<bool>() << i;
        }
        out << x;
    }
}
Exemplo n.º 6
0
/*
 * Write the indicated messages at the end of the passed
 * file name, minus header and trailing blank line.
 */
int
swrite(char str[])
{

	return (save1(str, 1, "write", ignoreall));
}
Exemplo n.º 7
0
/*
 * Copy a message to a file without affected its saved-ness
 */
int
copycmd(char str[])
{

	return (save1(str, 0, "copy", saveignore));
}
Exemplo n.º 8
0
/*
 * Save a message in a file.  Mark the message as saved
 * so we can discard when the user quits.
 */
int
save(char str[])
{

	return (save1(str, 1, "save", saveignore));
}