export~1.cpp
来自「一百个病毒的源代码 包括熊猫烧香等 极其具有研究价值」· C++ 代码 · 共 43 行
CPP
43 行
/* export_addr.cpp*/#include <stdio.h>#include "addr.h"#include "preferences.h"//////////////////////////////////////////////////////////int export_addr_action(void){ int x=0; printf("Content-Type: application/octet-stream\n"); printf("Content-Disposition: attachment; filename=\"addresses.csv\"\n\n"); printf("Name,E-mail Address\n"); if(user_pref.addr == NULL) return(-1); for(x=0; user_pref.addr[x].name || user_pref.addr[x].email; x++) { if(user_pref.addr[x].name != NULL) printf("%s",user_pref.addr[x].name); printf(","); if(user_pref.addr[x].email != NULL) printf("%s",user_pref.addr[x].email); printf("\n"); } return(0);}//////////////////////////////////////////////////////////
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?