码迷,mamicode.com
首页 >  
搜索关键字:java学习笔记 main    ( 66244个结果
关于int main(int argc,char* argv[])详解
平时在VS的环境下,主函数总会看到这两个参数,今天突然很想知道这两个参数的原理以及作用,因此查了下资料。真心受教了。下面的博文是在百度空间看一位大神的,原文链接:http://hi.baidu.com/sgglong70626/item/8881322b2dce21c1ee10f11eargc是命令...
分类:其他好文   时间:2014-05-05 12:48:27    阅读次数:324
Codeforces Round #244 (Div. 2) B. Prison Transfer
题目是选出c个连续的囚犯,而且囚犯的级别不能大于t#include using namespace std;int main(){ int n,t,c; cin >> n >> t >> c; int a,cnt = 0, res =0;; for(int i = 0 ; i...
分类:其他好文   时间:2014-05-04 12:14:55    阅读次数:340
Codeforces Round #244 (Div. 2) A. Police Recruits
题目的意思就是找出未能及时处理的犯罪数,#include using namespace std;int main(){ int n; cin >> n; int a,recruit = 0, crimes = 0;; for(int i = 0 ; i > a; ...
分类:其他好文   时间:2014-05-04 11:54:32    阅读次数:274
概率法计算PI
#include using namespace std;//概率计算PIint main(){ int inside=0; double val; int i; for ( i=0; i<100000000; i++) { double x = (dou...
分类:其他好文   时间:2014-05-04 11:47:49    阅读次数:262
方法可变参数
static void Main(string[] args) { //string[] str = { "", "" }; //TestParams(str); //TestParams("我","爱","北京","...
分类:其他好文   时间:2014-05-04 11:42:53    阅读次数:190
c 深度剖析 5
1,指针没有指向一块合法的区域1指针没有初始化12345678910111213#include #include struct aa{char *pa;char c;}ssa,*ssb;void main(){strcpy(ssa.pa,"abc");printf("%s \n",ssa.pa);...
分类:其他好文   时间:2014-05-04 11:38:09    阅读次数:278
nyoj- 1的个数
/*1的个数时间限制:3000 ms | 内存限制:65535 KB 难度:1描述 小南刚学了二进制,他想知道一个数的二进制表示中有多少个1,你能帮他写一个程序来完成这个任务吗?输入第一行输入一个整数N,表示测试数据的组数(1int main(){ int n; scanf("%d"...
分类:其他好文   时间:2014-05-04 10:32:30    阅读次数:435
C陷阱与缺陷 2
1,数组对数组只能进行两种操作,1确定数组的大小,2获得数组第一个元素的指针,其他的操作均是通过指针来实现的。123456789#include main(){int a[2][3]={{1,2,3},{4,5,6}};int *p,(*q)[3];p=a[2];q=a;}inta[2][3]={{...
分类:其他好文   时间:2014-05-04 10:04:48    阅读次数:236
JAVA之File类-删除一个有内容的文件夹
package ioTest.io3; /* * 删除有内容的文件夹:从最里面一直向外删除。建议千万不要删除硬盘上面有用的文件夹哦 * 方法思路 * 循环+递归 */ import java.io.File; public class RemoveDir { public static void main(String[] args) { // TODO Auto-generat...
分类:编程语言   时间:2014-05-04 09:25:58    阅读次数:464
java学习笔记 第二篇 核心技术(二)
第十四章 集合类...
分类:编程语言   时间:2014-05-04 08:51:41    阅读次数:474
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!