上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 82 下一页
摘要: C AREA OF A TRIANGLE - HERON'S FORMULAC INPUT - CARD READER UNIT 5, INTEGER INPUT C OUTPUT - LINE PRINTER UNIT 6, REAL OUTPUTC INPUT ERROR DISPAYS ERROR MESSAGE ON OUTPUT PROGRAM AREA INTEGER A, B, C CHARACTER MSGEND*40, MSGERR*40 MSGEND = "NORMAL END" STRERR = "INPUT ERROR" 阅读全文
posted @ 2011-07-08 21:58 greencolor 阅读(216) 评论(0) 推荐(0) 编辑
摘要: Synopsisgfortran [-c|-S|-E] [-g] [-pg] [-Olevel] [-Wwarn...] [-pedantic] [-Idir...] [-Ldir...] [-Dmacro[=defn]...] [-Umacro] [-foption...][-mmachine-option...] [-o outfile] infile... Only the most useful options are listed here; see below for the remainder. DescriptionThe gfortran command supports a 阅读全文
posted @ 2011-07-08 09:31 greencolor 阅读(2510) 评论(0) 推荐(0) 编辑
摘要: MOSFLM_EXEC = ipmosflmMOSHOME = /home/name/Documents/MOSSOURCEDIR/mosflm707MOSROOT = /home/name/Documents/MOSSOURCEDIRHOSTTYPE = x86_64CCP4_LIB_FILES = -lccp4f -lccp4c -lxdl_viewDEBUG = AR_FLAGS = vruDPS = ${MOSHOME}DPSLIB = ${MOSHOME}/libIND = ${MOSHOME}/indexUTIL = ${MOSHOME}/src/dps/utilJPG = ${M 阅读全文
posted @ 2011-07-07 00:31 greencolor 阅读(258) 评论(0) 推荐(0) 编辑
摘要: load('fi.mat');tkf = sort(tk);c1 = size(bbb, 1);c2 = size(tkf, 1);j = 1;mf =[];for i=1:1:c2 if j <= c2 while (strcmp(tkf{i}, [bbb{j}, '.pdb']) ~= 1) mf = [mf , j]; j = j+1; % at this point, we should record the j position end j=j+1; endend 阅读全文
posted @ 2011-07-04 06:56 greencolor 阅读(164) 评论(0) 推荐(0) 编辑
摘要: #region Kill EXCEL //As a safety check go through all processes and make //doubly sure excel is shutdown. Working with COM //have sometimes noticed that the EXL.Quit() call //doesn't always do the job private void killExcel() { try { Process[] ps = Process.GetProcesses(); foreach (Process p in p 阅读全文
posted @ 2011-06-30 22:19 greencolor 阅读(169) 评论(0) 推荐(0) 编辑
摘要: sudo yum install gcc-gfortran 阅读全文
posted @ 2011-06-28 23:25 greencolor 阅读(237) 评论(0) 推荐(0) 编辑
摘要: Command-Line Name: -imageDatabase Name: imageDatabase Class: Image Specifies an image to display in the widget, which must have been created with the image create command. Typically, if the image option is specified then it overrides other options that specify a bitmap or textual value to display in 阅读全文
posted @ 2011-06-25 21:02 greencolor 阅读(205) 评论(0) 推荐(0) 编辑
摘要: using Tcl/Tk 8.4.6.0 on a Windows2000 system. On Windows many applications store their icon inside the executable file. So typing:wm iconbitmap . test.exewill return an error. But if you type:wm iconbitmap . [wm iconbitmap .]wm iconbitmap . test.exeorwm iconbitmap . [wm iconbitmap .]wm iconbitmap . 阅读全文
posted @ 2011-06-25 20:33 greencolor 阅读(275) 评论(0) 推荐(0) 编辑
摘要: image create type ?name? ?option value ...? Creates a new image and a command with the same name and returns its name. type specifies the type of the image, which must be one of the types currently defined (e.g., bitmap). name specifies the name for the image; if it is omitted then Tk picks a name o 阅读全文
posted @ 2011-06-24 12:53 greencolor 阅读(183) 评论(0) 推荐(0) 编辑
摘要: string ToString(string path) { FileStream fs = new FileStream(path, FileMode.Open); byte[] buf = new byte[fs.Length]; fs.Read(buf, 0, (int)fs.Length); string s = Convert.ToBase64String(buf); fs.Close(); return s; } Image ToImage(string s) { byte[] buf = Convert.FromBase64String(s); MemoryStream ms = 阅读全文
posted @ 2011-06-22 20:27 greencolor 阅读(200) 评论(0) 推荐(0) 编辑
上一页 1 ··· 33 34 35 36 37 38 39 40 41 ··· 82 下一页