kk源码编译
1. lammps 改写源代码怎么重新编译
Lammps 源代码解析:
所有的头文件都以下面的编译预处理命令开始, 例如 fix_setforce.h
#ifdef
FIX_CLASS
FixStyle(setforce,FixSetForce)
#else
其中
FixStyle 宏定义在lammps.cpp 的help函数里,相关代码片段如下:
pos = 80;
fprintf(screen,"* Fix styles\n");
#define
FIX_CLASS
#define FixStyle(key,Class) print_style(#key,pos);
#include
"style_fix.h"
#undef
FIX_CLASS
fprintf(screen,"\n\n");
其中在
key 前加 # 是为了给key对应的字符串加入双引号,即等价于
“key”。再通过查看,print_style函数,我们知道这段代码的目的就是打印所有已经定义的 fix style。这段代码当我们调用 lmpmac
-help 时会打印,例如本人mac上打印的所有 integrate的style
* Integrate styles:
respa respa/omp verlet verlet/intel
verlet/kk
verlet/split verlet/split/intel
因此,当自己加入新的 style 时候,需要更改对应的 “style_*.h” 文件。
2. 添加同花顺技术指标时,总是出现“行1 :缺少)”是怎么回事请大侠指教!
这个公式是通达信的,直接复制就能用,第一行的n(1,100,8) 应该是参数吧你添参数里试试,我不用同花顺,你这公式在通达信用完全没问题
这是你公式的截图
3. 怎样从源码编译rom
本帖最后由 pigjohn 于 2014-2-10 20:24 编辑
一、你需要:
1.linux系统环境
教程使用ubuntu 12.04(LTS)
硬盘安装或虚拟机安装应该都ok。
2.电脑配置不要太差
二、搭建编译环境:
1.java安装配置
1) 删除旧版本java
ctrl+alt+t 打开终端。
sudo apt-get purge openjdk-\* icedtea-\* icedtea6-\*
sudo apt-get purge sun-java
复制代码
2) 安装java 1.6
添加软件源,打开终端输入
sudo add-apt-repository ppa:webupd8team/java
复制代码
下载安装,打开终端输入
sudo apt-get update && sudo apt-get install oracle-java6-installer
复制代码
跟随屏幕提示,你需要接受使用条款。
安装完成后,终端输入java -version,你会看到java版本信息。类似
java version “1.6.0_37″
Java(TM) SE Runtime Environment (build 1.6.0_37-b06)
Java HotSpot(TM) 64-Bit Server VM (build 20.12-b01, mixed mode)
复制代码
2.安装依赖软件
sudo apt-get install git-core gnupg flex bison gperf build-essential \
zip curl zlib1g-dev zlib1g-dev:i386 libc6-dev lib32ncurses5-dev \
ia32-libs x11proto-core-dev libx11-dev:i386 libreadline6-dev:i386 \
lib32z-dev libgl1-mesa-dev g++-multilib mingw32 \
tofrodos python-markdown libxml2-utils xsltproc readline-common \
libreadline6-dev libreadline6 lib32readline-gplv2-dev libncurses5-dev \
lib32readline5 lib32readline6 libreadline-dev libreadline6-dev:i386 \
libreadline6:i386 bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev lib32bz2-dev \
libsdl1.2-dev libesd0-dev squashfs-tools pngcrush schedtool libwxgtk2.6-dev
复制代码
等待安装配置完成
sudo ln -s /usr/lib/i386-linux-gnu/mesa/libGL.so.1 /usr/lib/i386-linux-gnu/libGL.so
复制代码
三、源码下载
1.repo脚本下载
$ mkdir ~/bin
$ PATH=~/bin:$PATH
$ curl [url]https://dl-ssl.google.com/dl/googlesource/git-repo/repo[/url] > ~/bin/repo
$ chmod a+x ~/bin/repo
复制代码
2.初始化repo同步
mkdir ~/cm11
cd ~/cm11
repo init -u git://github.com/CyanogenMod/android.git -b cm-11.0
复制代码
你需要按提示输入用户名和邮箱。
3.9003device源码
cd ~/cm11/.repo
mkdir local_manifests && cd local_manifests
gedit roomservice.xml
复制代码
粘贴以下内容
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="dhiru1602/android_device_samsung_galaxysl" path="device/samsung/galaxysl" remote="github" revision="cm-11.0" />
<project name="dhiru1602/android_vendor_samsung_galaxysl" path="vendor/samsung/galaxysl" remote="github" revision="cm-11.0" />
<project name="dhiru1602/android_kernel_samsung_latona" path="kernel/samsung/latona" remote="github" revision="cm-11.0" />
<project name="CyanogenMod/android_packages_apps_SamsungServiceMode" path="packages/apps/SamsungServiceMode" remote="github" revision="cm-11.0"/>
</manifest>
复制代码
保存。
4.同步源码
cd ~/cm11
repo sync -j8
复制代码
源码有好几个G,同步时间长短取决于你的网络速度。
四、编译
1.编译之前同步最新源码
repo sync
复制代码
2.初始化环境
. build/envsetup.sh
复制代码
3.编译
brunch galaxysl
复制代码
接着喝杯茶,编译时间长短取决于你的电脑配置。
不出意外,你会最终得到~/cm11/out/target/proct/galaxysl/cm-11-XXXXX-UNOFFICIAL-galaxysl.zip
五、刷机测试
以上就是编译cm11的过程。
对于其他rom,类似。
mokee:
mkdir ~/mokee && cd ~/mokee
repo init -u https://github.com/MoKee/android.git -b kk_mkt
4. 求一C语言程序,其源代码是乱码,但是可以编译,编译完成是歌词!
我担保你猜不出它的运行结果,试着运行一下,你一定会被输出结
果惊得目瞪口呆。
注:只能用c编译器
#include <stdio.h>
main(t,_,a)char *a;{return!0<t?t<3?main(-79,-13,a+main(-87,1-_,
main(-86,0,a+1)+a)):1,t<_?main(t+1,_,a):3,main(-94,-27+t,a)&&t==2?_<13?
main(2,_+1,"%s %d %d\n"):9:16:t<0?t<-72?main(_,t,
"@n'+,#'/*{}w+/w#cdnr/+,{}r/*de}+,/*{*+,/w{%+,/w#q#n+,/#{l+,/n{n+,/+#n+,/#\
;#q#n+,/+k#;*+,/'r :'d*'3,}{w+K w'K:'+}e#';dq#'l \
q#'+d'K#!/+k#;q#'r}eKK#}w'r}eKK{nl]'/#;#q#n'){)#}w'){){nl]'/+#n';d}rw' i;# \
){nl]!/n{n#'; r{#w'r nc{nl]'/#{l,+'K {rw' iK{;[{nl]'/w#q#n'wk nw' \
iwk{KK{nl]!/w{%'l##w#' i; :{nl]'/*{q#'ld;r'}{nlwb!/*de}'c \
;;{nl'-{}rw]'/+,}##'*}#nc,',#nw]'/+kd'+e}+;#'rdq#w! nr'/ ') }+}{rl#'{n' ')# \
}'+}##(!!/")
:t<-50?_==*a?putchar(31[a]):main(-65,_,a+1):main((*a=='/')+t,_,a+1)
:0<t?main(2,2,"%s"):*a=='/'||main(0,main(-61,*a,
"!ek;dc i@bK'(q)-[w]*%n+r3#l,{}:\nuwloca-O;m .vpbks,fxntdCeghiry"),a+1);}
经过在TC下编译运行通过!输出结果如下:
On the first day of Christmas my true love gave to me
a partridge in a pear tree.
On the second day of Christmas my true love gave to me
two turtle doves
and a partridge in a pear tree.
On the third day of Christmas my true love gave to me
three french hens, two turtle doves
and a partridge in a pear tree.
On the fourth day of Christmas my true love gave to me
four calling birds, three french hens, two turtle doves
and a partridge in a pear tree.
On the fifth day of Christmas my true love gave to me
five gold rings;
four calling birds, three french hens, two turtle doves
and a partridge in a pear tree.
On the sixth day of Christmas my true love gave to me
six geese a-laying, five gold rings;
four calling birds, three french hens, two turtle doves
and a partridge in a pear tree.
On the seventh day of Christmas my true love gave to me
seven swans a-swimming,
six geese a-laying, five gold rings;
four calling birds, three french hens, two turtle doves
and a partridge in a pear tree.
On the eigth day of Christmas my true love gave to me
eight maids a-milking, seven swans a-swimming,
six geese a-laying, five gold rings;
four calling birds, three french hens, two turtle doves
and a partridge in a pear tree.
On the ninth day of Christmas my true love gave to me
nine ladies dancing, eight maids a-milking, seven swans a-swimming,
six geese a-laying, five gold rings;
four calling birds, three french hens, two turtle doves
and a partridge in a pear tree.
On the tenth day of Christmas my true love gave to me
ten lords a-leaping,
nine ladies dancing, eight maids a-milking, seven swans a-swimming,
six geese a-laying, five gold rings;
four calling birds, three french hens, two turtle doves
and a partridge in a pear tree.
On the eleventh day of Christmas my true love gave to me
eleven pipers piping, ten lords a-leaping,
nine ladies dancing, eight maids a-milking, seven swans a-swimming,
six geese a-laying, five gold rings;
four calling birds, three french hens, two turtle doves
and a partridge in a pear tree.
On the twelfth day of Christmas my true love gave to me
twelve drummers drumming, eleven pipers piping, ten lords a-leaping,
nine ladies dancing, eight maids a-milking, seven swans a-swimming,
six geese a-laying, five gold rings;
four calling birds, three french hens, two turtle doves
and a partridge in a pear tree.
5. kk签到好评怎么弄,不知道在哪里好评
KK是最早做这个的,程序比较好用,当时也开发了很多实用的插件
但是现在已经不再维护了,API也关闭了(可以自己搭建,但是网上应该找不到源码了
智者的用过两次,一次和我服务器不适配,可见兼容性还有待提高
优势就是现在还在一直维护,有什么问题可以去他的论坛询问
6. KK源码网是骗子网站!!!
原来还有QQ客服,现在全是支付宝收款,客服也隐蔽了,就是骗钱的
7. KK源码网是骗子网站!!!
KK源码网真的是骗子网站,没有注册的时候提示注册以后才可以下载,注册要50元,注册了以后才发现里面的源码全部都是几十元到到几千元,充值了还下载不了,购买的源码还得问他们要,这还不算,最后花几百元买的源码还不能用,可以用的要几千几万RMB 坑B,一环一环的套路。
8. 新手求大神做一个kk按键脚本,第一步按回车,第二步按下,第三步按上
Up, 2
复制上面代码到按键精灵的源码界面保存就能使用了KeyPress ;Space;;, 1
KeyPress
9. init()方法
哦,这个是不能改的
init()是java.applet.Applet的一个方法
是由浏览器调用的
如果你想用其它的名字,可以这样
public void init(){
kk();
}
void kk()
{
title=getParameter("title_msg");
if(title==null) title="ddddd";
}
不行