码迷,mamicode.com
首页 >  
搜索关键字:return    ( 60766个结果
LeetCode:Reverse Integer
problem:Reverse digits of an integer. Example1: x = 123, return 321Example2: x = -123, return -321solution:逐个取数字; 处理溢出问题 (INT_MIN INT_MAX)class Soluti...
分类:其他好文   时间:2015-06-16 20:47:16    阅读次数:102
最简单的makefile
hello.c的内容如下: #include int main() {     printf("Hello World!\n");     return 0; } makefile 的内容如下: hello.exe : hello.o     gcc -o hello.exe hello.o hello.o : hello.c        gcc -c hello.c ...
分类:其他好文   时间:2015-06-16 19:15:19    阅读次数:118
poj2578---三个数中找出第一个大于168的
#include #include int main(){ int a,b,c; scanf("%d %d %d",&a,&b,&c); if(a <= 168) { printf("CRASH %d\n",a); return 0; } ...
分类:其他好文   时间:2015-06-16 19:09:36    阅读次数:113
poj2521---lose money
#include #include int rever(int n) { return -n; } int main() { int n,m,p,c; while(scanf("%d %d %d %d"...
分类:其他好文   时间:2015-06-16 18:48:21    阅读次数:104
匿名函数和闭包
一.匿名函数//普通函数function fun1() { //函数名是boxreturn '张三';}//匿名函数function () { //匿名函数,会报错return '张三';}//通过表达式自我执行(function fun1() { //封装成表达式alert('张三');})();...
分类:其他好文   时间:2015-06-16 18:27:06    阅读次数:87
接口测试-自动化-Java实现-HttpUtil
HttpUtil负责提供Http的Post方法,其核心的方法如下: /** * Do POST request * @param url * @param parameterMap * @return * @throws Exception */ ...
分类:编程语言   时间:2015-06-16 18:24:16    阅读次数:127
leetCode(2):Remove Linked List Elements
Remove all elements from a linked list of integers that have value val. Example Given: 1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6, val = 6 Return: 1 --> 2 --> 3 --> 4 --> 5 /** * Definition fo...
分类:其他好文   时间:2015-06-16 17:02:57    阅读次数:129
cygwin的下的gcc的一点体会。
cygwin的下的gcc的一点体会。 1,源文件的扩展名为c,按C的规则编译;源文件的扩展名为cpp,按C++的规则编译。注意:两者默认包括的文件也不同。 2,gcc -o hello hello.o 按c方式生成exe。g++ -o hello hello.o 方式生成exe。 c方式的主函数 int main() {     return 0; } C++方式的主函数 int...
分类:Windows程序   时间:2015-06-16 16:54:52    阅读次数:126
cygwin的下的gcc的一点体会。
1,源文件的扩展名为c,按C的规则编译;源文件的扩展名为cpp,按C++的规则编译。注意:两者默认包括的文件也不同。 2,gcc -o hello hello.o 按c方式生成exe。g++ -o hello hello.o 方式生成exe。 c方式的主函数 int main() {     return 0; } C++方式的主函数 int main(int argc,char ...
分类:Windows程序   时间:2015-06-16 16:53:44    阅读次数:138
PHPExcel导出数据
require_once './class/Excel/PHPExcel.php';//将(1,1)转换成"A1"形式function getCoordinate($row, $col){ return PHPExcel_Cell::stringFromColumnIndex($col) . $ro...
分类:Web程序   时间:2015-06-16 16:16:58    阅读次数:177
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!