摘要: //求出4×4矩阵中最大和最小元素值及其所在行下标和列下标,求出两条主对角线元素之和 #include <stdio.h> int main() { int sum=0; int max,min; int max1,max2;//记录最大值的坐标 int min1,min2;//记录最小值的坐标 i 阅读全文
posted @ 2017-04-15 21:56 claireyuancy 阅读(517) 评论(0) 推荐(0) 编辑
摘要: // 研究了半宿。最终弄清楚了 // 写了这段測试代码能够非常好的演示效果 class CConvert { public: CConvert(){m_nValue = 10;} // 重载()运算符 int operator ()(); // 重载int强制类型转换 operator int(); 阅读全文
posted @ 2017-04-15 21:17 claireyuancy 阅读(905) 评论(0) 推荐(0) 编辑
摘要: 将JW Player嵌入到网页中很的简单,仅仅须要进行例如以下3个步骤: 1、解压mediaplayer-viral.zip文件。将jwplayer.js和player.swf文件复制到project中; 2、在页面引入jwplayer.js文件: <script type="text/javasc 阅读全文
posted @ 2017-04-15 19:49 claireyuancy 阅读(383) 评论(0) 推荐(0) 编辑
摘要: String str = (new SimpleDateFormat("yyyy-MM-dd HH:mm:ss:SSS")) .format(new Date()); Calendar calendar = Calendar.getInstance(Locale.CHINA); calendar.s 阅读全文
posted @ 2017-04-15 19:05 claireyuancy 阅读(622) 评论(0) 推荐(0) 编辑
摘要: D. CGCDSSQ time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Given a sequence of integers 阅读全文
posted @ 2017-04-15 17:57 claireyuancy 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 在编写自己定义滑动控件时经常会用到Android触摸机制和Scroller及VelocityTracker。Android Touch系统简单介绍(二):实例具体解释onInterceptTouchEvent与onTouchEvent的调用过程对Android触摸机制须要用到的函数进行了具体的解释。 阅读全文
posted @ 2017-04-15 16:33 claireyuancy 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 第10章 | 充电时刻 本章主要介绍模块及其工作机制 模块 >>> import math >>> math.sin(0) 0.0 模块是程序 一个简单的模块 #hello.py print ("Hello,World!") >>> import hello Traceback (most rece 阅读全文
posted @ 2017-04-15 15:37 claireyuancy 阅读(424) 评论(0) 推荐(0) 编辑
摘要: HDU 3849 By Recognizing These Guys, We Find Social Networks Useful 题目链接 题意:说白了就是求一个无向图的桥 思路:字符串hash掉,然后双连通。要注意特判一下假设不是一个连通块。那么答案是0 代码: #include <cstdi 阅读全文
posted @ 2017-04-15 14:00 claireyuancy 阅读(148) 评论(0) 推荐(0) 编辑
摘要: 一、基本概念 1.什么是函数 不论什么一个C语言程序都是由一个或者多个程序段(小程序)构成的。每一个程序段都有自己的功能,我们一般称这些程序段为“函数”。所以。你能够说C语言程序是由函数构成的。 比方你用C语言编写了一个MP3播放器程序。那么它的程序结构例如以下图所看到的: 从上图能够看出:函数就是 阅读全文
posted @ 2017-04-15 08:43 claireyuancy 阅读(134) 评论(0) 推荐(0) 编辑