Hylafax Mailing List Archives

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

alphanumeric pager app



trying to write an app to allow easy entry of text.
does anyone know of a program which does this?
here is my code....i don't know how to pass the last line to
sendpage...can anyone help?
TIA,
don


//prototype alpha-pager front-end to hylafax SNPP
//1-25-99
#include <iostream.h>
#include <string.h>              // not sure if all these are needed
#include<std.h>
char pin[10];
char msgtext[80];

int main()
{
 
  cout << "Enter the name of person to send page to: ";
  cin >> pin;        
  cout << "Send Alpha-Page to: " << pin << " \n"; 
  cout << "Enter text to send: ";
  cin.ignore(10, '\n');          // flush pin " \n"
  cin.get(msgtext, 79);          // get up to 79 or newline         
  cout << "text okay: " << msgtext << " \n";
  cout << "sendpage -p " << pin << " " << msgtext << " \n";
  return 0;

}



Home
Report any problems to webmaster@hylafax.org

HylaFAX is a trademark of Silicon Graphics Corporation.
Internet connectivity for hylafax.org is provided by:
VirtuALL Private Host Services