11-3:字符串 输出 三个标准的函数:puts() fputs() printf() 1.puts()函数: #include#define DEF "I an a #define string ."int main(){ char str1[80] = "An array was i...
分类:
其他 时间:
2015-12-16 12:14:20
收藏:
0 评论:
0 赞:
0 阅读:
271
最简单的dome程序只需3行代码 1 int main() { 2 3 //设置端口号 4 5 InetAddress listenAddr(USER_PORT); 6 7 //将端口号绑定到Server 8 9 NodeServer nodeServer...
分类:
其他 时间:
2015-12-16 12:12:20
收藏:
0 评论:
0 赞:
0 阅读:
232
1 public abstract class Food 2 { 3 public abstract void Print(); 4 } 5 6 public class MeatFood :Food 7 { 8 public override void Print() 9 {10 Consol.....
分类:
其他 时间:
2015-12-16 12:11:30
收藏:
0 评论:
0 赞:
0 阅读:
189
Given a pattern and a string str, find if str follows the same pattern.Here follow means a full match, such that there is a bijection between a letter...
分类:
其他 时间:
2015-12-16 12:11:10
收藏:
0 评论:
0 赞:
0 阅读:
189
学习RTX 的时候发现RTX的配置文件可以MDK的图形界面来配置,感觉这个非常好,直观、方便、健壮,可以避免程序员写入错误的数据。 参考: µVision User's Guide->Utilities->Configuration Wizard keil 的 配置向导 configuration ...
分类:
其他 时间:
2015-12-16 12:11:00
收藏:
0 评论:
0 赞:
0 阅读:
278
当初新建项目IMyYa 提交到svn 目录下file:///H:/svn/truck/IMyYa现在svn 目录版本库中调整为file:///H:/svn/truck/Win8/IMyYa 与之前不同多加了个目录 Win8提问:我要在我的项目副本 如何切换到 Svn版本库中?解决:1.右键 项目点击...
分类:
其他 时间:
2015-12-16 12:09:50
收藏:
0 评论:
0 赞:
0 阅读:
194
一、UIPageViewController概念控件为我们提供了一种像翻书效果的一种控件。我们可以通过使用UIPageViewController控件,来完成类似图书一样的翻页控制方式。二、使用UIPageViewController控件先假象一下,一本书大概可以分为:1.每一页。2.每一页中相应的...
分类:
其他 时间:
2015-12-16 12:09:30
收藏:
0 评论:
0 赞:
0 阅读:
199
页面链接http://192.168.2.51:8080/xxcb1/xxbs/action/handling!view.action?toId=402882ae4e7d1761014e877fb229000b1.ctrl+shift+r 输入handingA则可以找到action页面2.在acti...
分类:
其他 时间:
2015-12-16 12:08:20
收藏:
0 评论:
0 赞:
0 阅读:
184
很长一段时间内我们都通过translateZ()或者translate3d()hack来骗取浏览器触发硬件加速,具体做法就是为元素添加没有变化的3D变形,比如元素在2维空间可以通过添加以下CSS来硬件加速transform: translate3d(0, 0, 0);所谓硬件加速就是创建了一个被传递...
分类:
其他 时间:
2015-12-16 12:07:20
收藏:
0 评论:
0 赞:
0 阅读:
178
Invalid result location value/parameter(struts2),该问题在myeclipse8.6一下的版本不会出现,但是在myeclipse9.0中就会出现该错误。有的解决办法就是直接右键struts.xml然后选择MyEclipse下的“Removed All V...
分类:
其他 时间:
2015-12-16 12:07:10
收藏:
0 评论:
0 赞:
0 阅读:
163
浏览器兼容性问题大汇总Ø JavaScript 31. HTML对象获取问题 32. const问题 33. event.x与event.y问题 34. window.location.href问题 35. frame问题 36. 模态和非模态窗口问题 37. firefox与IE的父元素(pare...
分类:
其他 时间:
2015-12-16 12:06:40
收藏:
0 评论:
0 赞:
0 阅读:
145
从二月份用测试版本build 3012开始用sublime text 3,虽然很多插件在sublime text 3不工作了,因为sublime text 3修复了2的一些bug、提升了性能并集成了不少常用插件的功能,当时没什么要求够用了,就这样傻傻地裸插件空手写代码用了快5个月。上月27号Subl...
分类:
其他 时间:
2015-12-16 12:06:30
收藏:
0 评论:
0 赞:
0 阅读:
251
String相关函数1)substring()它有两种形式,第一种是:String substring(int startIndex)第二种是:String substring(int startIndex,int endIndex)2)concat() 连接两个字符串例:String s="Wel...
分类:
其他 时间:
2015-12-16 12:06:10
收藏:
0 评论:
0 赞:
0 阅读:
110
在 DOM 树中,基本上一切都是节点。每个元素在最底层上都是 DOM 树中的节点。每个属性都是节点。每段文本都是节点。甚至注释、特殊字符(如版权符号 ©)、DOCTYPE 声明(如果 HTML 或者 XHTML 中有的话)全都是节点。因此在讨论这些具体的类型之前必须清楚地把握什么是节点。节...
分类:
其他 时间:
2015-12-16 12:06:00
收藏:
0 评论:
0 赞:
0 阅读:
137
属性声明 - 暴露成员变量属性是组件暴露给外部世界的调用接口,调用者通过设置不同的属性值来定制组件的行为与外观:在Angular2中为组件增加属性接口非常简单,只需要在Component注解的properties属性中声明组件的成员变量就可以了:1 //EzCard 2 @Component({3 ...
分类:
其他 时间:
2015-12-16 12:05:10
收藏:
0 评论:
0 赞:
0 阅读:
296
String str = " asd "; String ntr = ("A" + str).trim().substring(1);//将头部加一个字符再用trim来去空格,再去截取 System.out.println("str=\"" + str + "\""); ...
分类:
其他 时间:
2015-12-16 12:05:00
收藏:
0 评论:
0 赞:
0 阅读:
298
腾讯QQ官网 样式初始化body,ol,ul,h1,h2,h3,h4,h5,h6,p,th,td,dl,dd,form,fieldset,legend,input,textarea,select{margin:0;padding:0}body{font:12px"宋体","Arial Narrow"...
分类:
其他 时间:
2015-12-16 12:04:30
收藏:
0 评论:
0 赞:
0 阅读:
295
1 public class SingleInstance 2 { 3 private static SingleInstance singleInstance = null; 4 private static readonly object locker = new object(); 5 pr....
分类:
其他 时间:
2015-12-16 12:04:20
收藏:
0 评论:
0 赞:
0 阅读:
155