main1.c

来自「Smtp mail sender with attachments.」· C语言 代码 · 共 14 行

C
14
字号
#include "base64.h"#include <iostream>int main() {  const std::string s = "jara\0jara\0gremlin" ;  std::string encoded = base64_encode(reinterpret_cast<const unsigned char*>(s.c_str()), s.length());  std::string decoded = base64_decode("amFyYQBqYXJhAGdyZW1saW4=");  std::cout << "encoded: " << encoded << std::endl;  std::cout << "decoded: " << decoded << std::endl;  return 0;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?