Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Copyright: himuhasib@gmail.com
- #include<bits/stdc++.h>
- using namespace std;
- string code;
- void f()
- {
- string code2;
- for(int i=0; i<code.size(); i++)
- if(code[i] == '\n') code2 += "\\n";
- else if(code[i] == '\\') code2 += "\\\\";
- else if(code[i] == '"') code2 += "\\\"";
- else code2 += code[i];
- code = code + "code=\"" + code2 + "\";\nf();\ncout<<code;\n}\n";
- }
- int main()
- {
- code="//Copyright: himuhasib@gmail.com\n#include<bits/stdc++.h>\nusing namespace std;\nstring code;\nvoid f()\n{\nstring code2;\nfor(int i=0; i<code.size(); i++)\nif(code[i] == '\\n') code2 += \"\\\\n\";\nelse if(code[i] == '\\\\') code2 += \"\\\\\\\\\";\nelse if(code[i] == '\"') code2 += \"\\\\\\\"\";\nelse code2 += code[i];\ncode = code + \"code=\\\"\" + code2 + \"\\\";\\nf();\\ncout<<code;\\n}\\n\";\n}\nint main()\n{\n";
- f();
- cout<<code;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement