Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //IDK print stuff
- #include <stdlib.h>
- #include <string>
- #include <iostream>
- #include <stdio.h>
- 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;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement