- 博客(25)
- 收藏
- 关注
原创 longtable加表格备注
\documentclass[12pt]{article}\usepackage[utf8]{inputenc}\usepackage{fourier}\usepackage{booktabs}\usepackage{threeparttablex}\usepackage{longtable} \usepackage{lscape} \begin{document}\begin{landscape}\begin{ThreePartTable} \begin{TableNotes}.
2021-08-02 15:09:49 1273
原创 latex中longtable双栏换页、表格和标题宽度设置
\setlength{\tabcolsep}{5.2mm}{ %set the table width\setlength{\LTcapwidth}{7in} %set the table caption width\begin{longtable*}{cccccccc}\caption{\label{tab:table1}$\gamma$-ray energies, excitation energies, relative $\gamma$-ray intensities, ADO ra.
2021-02-09 11:43:47 5999
原创 安装rpm包时提示错误:依赖检测失败
警告:teamviewer_15.7.6.x86_64.rpm: 头V4 RSA/SHA1 Signature, 密钥 ID 0c1289c0: NOKEY错误:依赖检测失败: libQt5WebKit.so.5()(64bit) >= 5.5 被 teamviewer-15.7.6-0.x86_64 需要 libQt5WebKitWidgets.so.5()(64bit) >= 5.5 被 teamviewer-15.7.6-0.x86_64 需要需要在rpm包后面添加--nod.
2020-07-06 16:57:55 13841 2
原创 GASPWARE软件安装说明
GASPWARE软件安装说明1.去该网站下载软件包http://ngse.riken.jp/gitweb/?p=gaspware.git(点击snapshot)2.解压缩 tar -zxvf gaspware-bbf597b.tar.gz从下载里copy gaspware-bbf597b到 /opt/目录下3.然后在/opt/路径下,cd gaspware-bbf597bc...
2020-01-14 18:19:34 898 1
原创 两个root文件中的直方图合在一起
void all2daq(const char *rootfilename1,const char *rootfilename2){ TFile *file1 = new TFile(rootfilename1,"READ");//"RECREATE" "READ" if(!file1->IsOpen()) { std::cout<<"Can't ...
2019-10-12 21:28:38 1563 1
原创 java运行错误: 找不到或无法加载主类XXX.class
javac SequenceInputStreamDemo.javajava SequenceInputStreamDemo错误原因:不在当前路径下,修改java的环境变量细看Java的环境变量:export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar里面有个路径符号“.”,指的是当前路径。第一次我运行cla...
2019-10-05 12:29:10 321
原创 保存mca格式
TH1I *hspec1[4*NPAR]; for (int i = 0; i < 4*NPAR; ++i) { hspec1[i] = new TH1I(TString::Format("adj%02d",i+1).Data(),"",65536,0,65536); }for (int i = 0; i < 4*NPAR; ++i) { ...
2019-09-16 11:00:43 293
原创 Linux 卸载挂载的磁盘时提示正忙
解决方法。用fuser查找哪个进程占用了该磁盘:fuser -mv /挂载硬盘位置 关闭该进程:kill -9 xxxxx
2019-09-03 15:13:38 2044
原创 ROOT里往tree里添加branch
#include "TFile.h"#include "TTree.h"#include "TString.h"#include "TROOT.h"#include "TBenchmark.h"#include "TH2.h"#include "TH1.h"#include "TRandom.h"#include "TStyle.h"#include "TSystem.h"#...
2019-07-02 20:46:13 1391
原创 从ROOT的histgraph中读取直方图转成txt格式
#include <iostream>#include <fstream>using namespace std;void root2txt(const char *rootfilename,const char *txtfilename){ TFile *file = new TFile(rootfilename,"READ");//"RECREATE" "...
2019-06-28 16:24:19 1401
原创 engauge digitizer安装
https://github.com/markummitchell/engauge-digitizer/releases/tag/v11.2github的下载地址如何使用,这篇百度经验即可:http://jingyan.baidu.com/article/4dc408489db7b1c8d946f128.html
2019-06-04 17:38:38 4611
原创 Windows下安装TexLive遇到的问题
问题:installation faild; permission declined; _install_package: untar failed.解决办法:1.在我的电脑/属性/高级系统设置/高级/环境变量/系统变量中找到PATH,点击编辑新建,加上 C:\Windows\System322.然后将镜像文件的安装包放在所要安装的磁盘下再解压,保持路径一致。...
2019-06-04 10:44:45 10135 2
转载 科研常用的18个网站
1、http://scholar.google.com/这个不多讲了.2、http://qns.cc/后起之秀,科研人员的良好助手,上此网站的90%是从事科研的学生与老师。其词典搜索集成了目前市面上最好的在线英汉写作及科研词典,用此搜索引擎写作英文论文相当方便;其文献搜索集成了目前最优秀的数据库。一键切换搜索,非常方便,不用开很多窗口而打断思路;其实用工具中的小游戏也是相当有趣,非常锻...
2019-02-19 20:58:10 6824
原创 一些便捷工具
在线编辑markdown工具https://pandao.github.io/editor.md/https://dillinger.io/
2019-01-18 20:14:35 153
原创 使用std::stringstream对字符串进行转换
要包含头文件#include<sstream>#include<fstream>#include<sstream>#include<iostream>using namespace std;int main(){ cout << "Enter an integer: "; int input = 0; cin...
2018-05-18 10:37:01 2107
原创 寻峰 find peaks
#include "TCanvas.h"#include "TH1.h"#include "TF1.h"#include "TRandom.h"#include "TSpectrum.h"#include "TVirtualFitter.h" Int_t npeaks = 30;Double_t fpeaks(Double_t *x, Double_t *par) {
2018-05-18 00:10:26 5496 2
原创 ifstream读取和ofstream写入
#include <iostream>#include <fstream>using namespace std;int main(){ ofstream myfile; const int nline=9; int num[nline]={1,2,3,4,5,6,7,8,9}; double data[nline]={1,2,3,5,4,12,45...
2018-05-16 18:34:35 1195 3
原创 map的简单用法
#include<map>#include<iostream>using namespace std;int main(){ map<int,int>m; int i; for(i=0;i<10;i++) m[i]=2-i; map<int,int>::iterator it; for(it=m....
2018-05-15 16:04:04 146
原创 类和对象
1.包含初始化参数的默认构造函数,并使用初始化列表设置成员#include <iostream>#include <string.h>using namespace std;class Human{private: int age; string name;public: Human(string humansName = "Adam",...
2018-05-12 14:57:41 113
原创 指针
1.声明和初始化int指针的代码:int *Pinteger = NULL;2.使用指针存储变地址:int Age=30;int *Ip=&Age;3.同一个int指针可指向任何int变量4.dec是十进制 如cout<<dec<<b 就会把b转换成10进制再输出hex是16进制 如cout<<dec<<b 就会把b转换成16进制再输出o...
2018-05-01 14:48:20 122
转载 德语考试
1 申请德语授课的专业 德国高校的大部分专业授课语言为德语,申请德语授课的专业要求申请人有扎实的德语基础知识,以听懂德语授课的课程。外国申请人入学前须通过德语语言考试,以证明自己的水平。目前,有多种考试得到德国大学的承认: TestDaF:“外国学生申请大学入学对外德语水平考试”,由德国波鸿的 “德福考试院” 统一命题,每年在全球范围内举行多次。 DSH:”外国学生申请大学入学德语考试”,定期由各...
2018-04-20 15:21:37 421
原创 if语句检查数组容量
将字符串复制到字符数组中,务必检查数组是否足够大,检查数组的容量。#include <iostream>#include <string>#include <string.h>using namespace std;int main(){char buffer[20]={'\0'};cout << "Enter a line of text: " &...
2018-04-11 19:15:53 317
原创 使用枚举常量
通过使用枚举常量,代码的可读性更强#include <iostream>using namespace std;enum CardinalDirections{ North = 25, South, East, West};int main(){ cout << "Displaying directions and their symbolic values...
2018-04-03 21:54:16 300
转载 字符串
字符串字面值与标准库string不是同一种类型string s("hello");cout<<s.size()<<endl; //OKcout<<"hello".size()<<endl; //ERRORcout<<s+"world"<<endl;
2018-04-03 21:16:46 67
原创 全局变量的使用
#include using namespace std;void MultiplyNumbers (){ cout int firstNumber = 0; cin >> firstNumber; cout int secondNumber = 0; cin >> secondNumber; // Multipl
2018-03-23 11:59:34 157
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人