刘华世的官方博客
上一页 1 ··· 6 7 8 9 10
摘要: #include <stdio.h>main(){FILE *fp;char ch, st[2000]; if((fp=fopen("c:/log.log","at++")) == NULL) { printf("Cannot open file strike any keys exit!"); getch(); exit(1); } printf("Input a string:\n"); //gets(st); scanf("%[^\n]", st); fputs(st, fp) 阅读全文
posted @ 2012-10-18 10:01 pythonschool 阅读(2302) 评论(0) 推荐(0) 编辑
摘要: #include "string.h"#include <vector>void CAutoZipDlg::OnBnClickedOk() { using namespace std; vector<CString> strVec; CString teststr = GetCommandLine(); //retrives the command-line string for the current process. CString outputstr; int flag = 0; for(int i = 0;i < teststr.Get 阅读全文
posted @ 2012-10-18 09:48 pythonschool 阅读(1038) 评论(0) 推荐(0) 编辑
摘要: //writeby: lhsbqb//date:2012-10-17//title:VC++语言如何输出当前日期,如何获取当前日期#include "time.h"#include "iostream.h"#include "windows.h"int main(int argc, char* argv[]){ time_t nowTime; while(true) { time(&nowTime); struct tm *sysTime = localtime(&nowTime); system("titl 阅读全文
posted @ 2012-10-18 09:41 pythonschool 阅读(402) 评论(0) 推荐(0) 编辑
摘要: '------------------------------------------------------------------------------'FILE DESCRIPTION: 为开发环境添加批量注释或取消注释'------------------------------------------------------------------------------Sub SetSelNote() 'Sun DESCRIPTION:过程SetSellNote用于将选中的文本转换为注释 dim CurWin set CurWin = Active 阅读全文
posted @ 2012-10-16 17:30 pythonschool 阅读(881) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10
刘华世的官方博客