#include #include int main(){ HANDLE h = GetStdHandle(STD_OUTPUT_HANDLE); WORD wOldColorAttrs; CONSOLE_SCREEN_BUFFER_INFO csbiInfo; /* ...
分类:
其他好文 时间:
2014-07-30 11:59:33
阅读次数:
199
需要引用Office的DLL,在附件中贴上核心代码(转载):Microsoft.Office.Interop.Word._Application appWord = new Microsoft.Office.Interop.Word.ApplicationClass(); Micros...
分类:
Web程序 时间:
2014-07-30 11:55:43
阅读次数:
243
1、word 标题四, 右键更新 自己也可以新建标题样式
分类:
其他好文 时间:
2014-07-30 09:53:13
阅读次数:
180
首先介绍bash的特殊语法${parameter#*word}其中parameter为变量,word为分隔符,表示从变量最边左字符开始到第一匹配到分隔符(word)之间的字符串都去掉${parameter##*word}:表示从变量最左边字符开始到最后一次匹配到该分隔符之间的字符串都去掉注意:其中变量不要加$符号当*..
分类:
系统相关 时间:
2014-07-30 03:25:33
阅读次数:
306
题目:Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a valid dictionary word.Return all suc....
分类:
编程语言 时间:
2014-07-30 03:19:32
阅读次数:
341
问题描述:
Given an input string, reverse the string word by word.
For example,
Given s = "the sky is blue",
return "blue is sky the".
解题思路:
每遍历出一个单词时,将该单词添加一个空格字符(如果临时字符串为空,即扫描出第一个单词,就不要添加空格字符),然后添加...
分类:
其他好文 时间:
2014-07-29 21:52:52
阅读次数:
239
哥们写的代码:dword big;__asm{mov eax,amov ebx,bcmp eax,ebxjle HOHObig =ebxHOHO:big = eax} 网上搜了一些,还有的说直接printf出来...
分类:
其他好文 时间:
2014-07-29 21:15:42
阅读次数:
219
拷贝剪贴板图像到窗体 procedureTBitmap.LoadFromClipboardFormat(AFormat:Word;AData:THandle;APalette:HPALETTE);
uses Clipbrd;
procedureTForm1.Button1Click(Sender:T...
有时候我们需要批量的向一个文档中插入图片,比如说,我们使用OpexXML操作Word文件,或者使用ITextSharp操作PDF文件。
这里以ITextSharp操作PDF为例,现在有100张图片,插入到PDF中,每个图片占据一页。这里有个问题,因为这些图片的长度,像素等都是不确定的,我们怎么才能把图片摆在一个页面比较合适的位置上?我们可以考虑把图片放到页面的中间,也就是图片的对角线中心...
分类:
其他好文 时间:
2014-07-29 17:50:52
阅读次数:
295
using System;using System.Windows.Forms;using System.Diagnostics;using Microsoft.Office.Interop.Word;namespace WindowsFormsApplication1{ public par...
分类:
其他好文 时间:
2014-07-29 16:51:42
阅读次数:
232