现在位置: 首页 > poussette发表的所有文章
  • 11月
  • 16日
综合 ⁄ 共 1572字 评论关闭
    //2007年4月24日     this.TextBox6.Text = System.DateTime.Now.ToString("D");     //2007-4-24     this.TextBox7.Text = System.DateTime.Now.ToString("d");      //2007年4月24日 16:30:15     this.TextBox8.Text = System.DateTime.Now.ToString("F");     //2007年4月24日 16:30     this.TextBox9.Text = System.DateTime.Now.ToString("f");      //2007-4-24 16:30:15     this.TextBox10.Text = System.DateTime.Now.ToString("G");     //2007-4-24 16:30     this.TextBox11.Text = System.DateTime.Now.ToStri......
阅读全文
  • 01月
  • 05日
综合 ⁄ 共 496字 评论关闭
<pre name="code" class="cpp">#include <iostream> using namespace std; struct inflatable{ char name[20]; float volume; double price; }; /** * 调用结构成用时用成员运算符 ps->price *也可以用*ps 调用 */ int main(){ inflatable *ps = new inflatable; cout <<"请输入名称:"<<endl; cin.get(ps->name,20); cout <<"请输入volume"<<endl; cin>>(*ps).volume; cout <<"请输入price:"<<endl; cin>>(*ps).price; cout <<"name......
阅读全文
        5天学会jaxws-webservice编程第二天              第二天 言: 大家都知道,仅仅输入或者返回一个简单型的String,  Int在实际工作中没有太大的意义。很多时候我们的Service需要返回类似于List<Person>,List<String>这样的数据结构。 我们现在就一起来看用Jaxws怎么实现。   目标: 1. 用Webservice调用和返回Java的复杂类型(比如说:List<Student>这样的数据) 一、编写Server端 1.1先对jaxws返回List类型做一个简单的POC 在正式做我们的复杂类型返回前,我们先做一个试验来证明jaxws能否返回复杂类......
阅读全文
  • 03月
  • 21日
综合 ⁄ 共 1033字 评论关闭
昨天我是在window上运行的Python,而今天我是在Linux上学习Python。 一般Linux上都已经安装了Python,只要我们在终端上输入命令#python,就会进入Python的交互界面,并出现>>>的提示符。 我的Linux上的Python的版本是2.7,虽然Python3和Python2有些区别,但是我还是先学习Python2的版本,最后在去学习与Python3的区别。     Linux上Python交互模式的退出方法:>>>exit()        开始编写Python程序了! Python程序的扩展名为:.py 在Linux命令行中输入#vim  1.py  ,进入vim编辑器,并输入print “Hello  world” ......
阅读全文
  • 02月
  • 17日
综合 ⁄ 共 591字 评论关闭
其实要实现上图的在ListView右侧的拖动条很简单,只需在xml文件中定义ListView时加入一个属性就可以了。 <ListView android:id="@+id/listView" android:layout_width="fill_parent" android:layout_height="fill_parent" android:fastScrollEnabled="true" android:focusable="true" /> 但是有时候会发现设置属性无效,滚动ListView并未出现滑块。原因是该属性生效有最小记录限制。当ListView记录能够在4屏以内显示(也就是说滚动4页)就不会出现滑块。可能是api设计者认为这么少的记录不需要快速滚动。  另外: 在Li......
阅读全文
  • 01月
  • 30日
综合 ⁄ 共 2725字 评论关闭
1、more命令2、cat命令3:tac命令,倒序显示4、head命令,可以指定显示那些内容5、tali命令,可以指定显示那些内容6、less 与 more 类似,但是比 more 更好的是,他可以[pg dn][pg up]翻页! 1、more 是我们最常用的工具之一,最常用的就是显示输出的内容,然后根据窗口的大小进行分页显示,然后还能提示文件的百分比; # more /etc/profile   more 的语法、参数和命令; more [参数选项] [文件] 参数如下: +num                    从第num行开始显示; -num                    定义屏幕大小,为num行; +/pattern       从......
阅读全文
  • 01月
  • 09日
综合 ⁄ 共 529字 评论关闭
一、编程题 1. 2.以下一列数字,1,1,2,3,5,8,13,21,34,...  第30位数字是什么,请用递归实现。 二、问答题 1.  2.什么是事务,什么是锁? 3.黑盒测试和白盒测试各是什么?什么是回归测试? 4.struct和class有什么不同? 5.string str = nul 与 string str="",有什么不同吗,试用文字说明。 6.string s = new string ('xyz'),创建了几个string object。 7.选出购买物品在两种或者两种以上的商品的用户的名称。 8.取出表A中,第31到40行的内容,(Microsoft SQL Server的ID行为自动增量,可能不连续)。 9.如果客户需求比较多,......
阅读全文
  • 12月
  • 23日
综合 ⁄ 共 1220字 评论关闭
bool f[100010]; int use[100010]; int main() { int cash,n,i,j,c[15],v[15]; freopen("1276.txt","r",stdin); while(scanf("%d%d",&cash,&n)!=EOF) { for(i=1;i<=n;i++){ scanf("%d%d",c+i,v+i); if(v[i]>cash) c[i]=0; } if(cash==0||n==0) { puts("0"); continue; } memset(f,0,sizeof(f)); f[0]=1; for(i=1;i<=......
阅读全文
  • 12月
  • 05日
综合 ⁄ 共 8319字 评论关闭
这篇文章主要记录一些常用的一些代码段,方便以后查阅,不断更新中。 1:调用浏览器,载入某网址 ? 1 2 3 Uri uri = Uri.parse("http://www.android-study.com");        Intent it = new Intent(Intent.ACTION_VIEW, uri);        startActivity(it); 2:Broadcast接收系统广播的intent监控应用程序包的安装、删除 ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 public class getBroadcast extends BroadcastReceiver {     @Override     public void onReceiv......
阅读全文
  • 11月
  • 24日
综合 ⁄ 共 2145字 评论关闭
枚举变换了几次,记忆化搜索 C. Logo Turtle time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output A lot of people associate Logo programming language with turtle graphics. In this case the turtle moves along the straight line and accepts commands "T" ("turn around") and "F" ("move 1 unit forward"). You are given a list of commands that will be given to the turtle. You have to change exactly n commands from the list (......
阅读全文
  • 11月
  • 15日
综合 ⁄ 共 1279字 评论关闭
      今天科技类最大的新闻,莫过于微软宣布.NET开发框架开源计划。.NET 开源,集成 Clang 和 LLVM 并且自带 Android 模拟器,这意味着 Visual Studio 这个当下最好没有之一的 IDE 正式支持编写 Android 和 iOS 程序 -- Visual Studio 和 .NET 真正开始走向跨平台化。Nadella 说的“移动为先,云为先”和“找到微软最初的本质”终于连成一线。(详情请参见相关新闻链接:http://www.cnbeta.com/articles/345617.htm)。       同时.NET MicroFramework之父Colin Miller也高调回归,在11月11日发布一篇以ComingHome为标题的新博文,文......
阅读全文
  • 09月
  • 19日
综合 ⁄ 共 488字 评论关闭
Android TabHost 文字及图片的设置   TabWidget tabWidget=myTabhost.getTabWidget();//设置字体颜色         for(int i=0;i<tabWidget.getChildCount();i++){                     //设置显示文字             TextView tv=(TextView)tabWidget.getChildAt(i).findViewById(android.R.id.title);                    //设置显示图片            ImageView iv=(ImageView)tabWidget.getChildAt(i).findViewById(android.R.id.icon);             iv.setPadding(0, 10, 0, 0);             tv.setPadding(0, -5, 0, 0);         ......
阅读全文