CCCPaste

function lp Print w/o file

//IDK print stuff
#include 
#include 
#include 
#include 
using namespace std;


void lpp (string msg)
{
 string imsg = msg;
 const char* E = "echo \"";
 const char* L = "\" | lp  ";	
 string total = string(E) + string(imsg) + string(L);
 //cout << total << "\n\n";
 const char* cmd = total.c_str();
 system(cmd);
}


int main (int argc, char ** argv)
{
string msg = "";
 msg += "Good \n Bye \n Cruel world! ";
 msg += "\nSome shit \t int the middle\n";
 msg += "maor god damned bullshit";
lpp(msg);

return 0;	
}