现在位置: 首页 > GamreuffHarce发表的所有文章
  • 11月
  • 16日
综合 ⁄ 共 1512字 评论关闭
在包含文件中 引用css       <link type="text/css" rel="Stylesheet" href="{Stl.SiteUrl}/css/a_common.css" />/*暂时*/ 引用img      <img src="{Stl.SiteUrl}/img/a_Nav1.png"/>   系统首页模板 引用css        <link type="text/css" rel="Stylesheet" href="{Stl.SiteUrl}/css/a_common.css" /> 引用头文件   <stl:include file="include/head.html"></stl:include> 引用img       <img src="img/p1.jpg" />   系统栏目模板 引用css        <link type="text/css" rel="Stylesheet"......
阅读全文
  • 09月
  • 08日
综合 ⁄ 共 827字 评论关闭
---------------------- ASP.Net+Android+IOS开发、.Net培训、期待与您交流! ---------------------- 今天复习了一下冒泡排序,贴出来晒晒代码,错了请大家多多指教哦! 冒泡排序的由来是因为通过比较、交换元素,较小的会慢慢“浮”到数列的顶端而得来。举个例子,有一个数组,通过遍历数组的元素,进行比较,如果第i个数小于第i+1个数,那么就让他俩交换下位置,这样,不断的比较交换,最小的就排在了顶端,这是从大到小的排列,其实也可以从小到大排列,只需要将小于号改为大于号就OK!下面贴一段简单的例子。 using System; u......
阅读全文
  • 06月
  • 16日
综合 ⁄ 共 842字 评论关闭
摘要:据外媒报道,硅谷目前在一流工程人才上的争夺十分激烈。为吸引人才,很多公司拿出了丰厚的薪酬和福利:一个高级工程师的年薪16.5万美金起,不仅被大公司争抢,还被那些只有数百人的初创公司争夺。 北京时间10月17日消息,据美国科技博客BusinessInsider报道,硅谷目前在一流工程人才上的争夺十分激烈。为了吸引人才,很多公司拿出了丰厚的薪酬和福利,加州圣何塞市招聘网Jobspring的经理Scott Purcell如是说。 据悉,Twitter工程高级副总裁Christopher Fry去年收入为1030万美元,仅次于CEO Dick Costolo的1150万美元......
阅读全文
  • 06月
  • 05日
操作系统 ⁄ 共 2223字 评论关闭
  参考资料:http://baike.baidu.com/view/400319.htm      Linux系统下的多线程遵循POSIX线程接口,称为pthread。编写Linux下的多线程程序,需要使用头文件pthread.h,连接时需要 使用库libpthread.a。顺便说一下,Linux下pthread的实现是通过系统调用clone()来实现的。clone()是Linux所特 有的系统调用,它的使用方式类似fork,关于clone()的详细情况,有兴趣的读者可以去查看有关文档说明。下面我们展示一个最简单的多线程程序 example1.c        #include <stdio.h> #include <pthread.h> #include<sys/......
阅读全文
  • 05月
  • 10日
综合 ⁄ 共 91字 评论关闭
Android中Parcelable接口用法 http://www.cnblogs.com/renqingping/archive/2012/10/25/Parcelable.html
阅读全文
  • 03月
  • 25日
综合 ⁄ 共 12542字 评论关闭
转自http://blog.csdn.net/thanklife/article/details/7362893 stm32f10x.h: #ifdef __cplusplus extern "C" { #endif ...//device设置,晶振频率,是否包含外围 的设置 } 简答: 一般用于将C++代码以标准C形式输出(即以C的形式被调用),这是因为C++虽然常被认为是C的超集,但是C++的编译器还是与C的编译器不同的。C中调用C++中的代码这样定义会是安全的。 一般的考虑跨平台使用方法如下: #ifdefined(__cplusplus)||defined(c_plusplus) //跨平台定义方法 extern "C"{ #endif //... 正常的声明段 #ifdefined(__cplusplus......
阅读全文
  • 05月
  • 27日
综合 ⁄ 共 1026字 评论关闭
短期均线运行在下,中、长期均线依时间顺序运行在上称均线空头排列,表示市场呈弱势特征。   一般说来,做短线的宜用短期移动平均线,中期投资者宜用中期移动平均线,而买了股票放几年的则宜用长期移动平均线,以判断各自不同的买卖进出点。然而,如果将三线合用,加上股价线,以致便可以对股市的风云大势有个较为确切的了解。   在股市中,当移动平均线和当日K线(也称日线)出现多头排列和空头排列时是市场最为明朗的时间。这时,投资者一般可以放心入市或果断斩仓离市。   所谓多头排列,就是日线在上,以下依次短期线、......
阅读全文
  • 05月
  • 07日
综合 ⁄ 共 229字 评论关闭
easyui 的取值 和 赋值的方式不能使用jquery的方法, 如:<input name="code" id="code" data-options="multiline:true,required:true" class="easyui-textbox easyui-validatebox"  style="height:70px;width:280px;" value=""/> 赋值:$("#code").textbox("setValue",'sdfsdfdsf');
阅读全文
  • 04月
  • 29日
综合 ⁄ 共 438字 评论关闭
   很水的一道题,做这道题的时候,只要注意下真约数的概念就可以了,因为我们知道,真约数就是说这个数字原本的所有的约数出去本身后的约数, 比如说,6的约数是 1 2 3 6,而6的真约数是1 2 3,这就是在判约数的时候注意下等号的位置就行了。 # include<cstdio> # include<iostream> # include<cstring> using namespace std; # define MAX 600000 int a[MAX]; int f( int x ) { int sum = 0; for ( int i = 1;i < x;i++ ) { if ( x%i == 0 ) ......
阅读全文
  • 04月
  • 27日
综合 ⁄ 共 1910字 评论关闭
<SCRIPT LANGUAGE="JavaScript"><!--if (window.navigator.userAgent.indexOf("MSIE")>=1){var IE1024="";var IE800="";var IE1152="";var IEother=""; ScreenWidth(IE1024,IE800,IE1152,IEother)}else{if (window.navigator.userAgent.indexOf("Firefox")>=1){file://如果浏览器为Firefoxvar Firefox1024="";var Firefox800="";var Firefox1152="";var Firefoxother=""; ScreenWidth(Firefox1024,Firefox800,Firefox1152,Firefoxother)}else{file://如果浏览器为其他var Other1024="";var Other800="";var Other1......
阅读全文
  • 03月
  • 20日
综合 ⁄ 共 1195字 评论关闭
public class MainActivity extends Activity {         private ImageView image;     @Override     public void onCreate(Bundle savedInstanceState) {         super.onCreate(savedInstanceState);         setContentView(R.layout.activity_main);         image=(ImageView)findViewById(R.id.image);                  Bitmap bitmap=BitmapFactory.decodeResource(getResources(), R.drawable.bt);       Bitmap output=toRoundCorner(bitmap, 15.0f);         image.setImageBitmap(output);     }       public stati......
阅读全文
  • 02月
  • 06日
综合 ⁄ 共 1910字 评论关闭
第一种:用insert函数插入pair数据 #include <map> #include <string> #include <iostream> using namespace std; int main(){ map<int,string> mapStudent; mapStudent.insert(pair<int, string>(1,"student_one")); mapStudent.insert(pair<int, string>(2,"student_two")); mapStudent.insert(pair<int, string>(3,"student_three")); map<int, string>::iterator iter; for(iter=mapStudent.begin();iter!= mapStudent.end();iter++){ cou......
阅读全文