码迷,mamicode.com
首页 >  
搜索关键字:java学习笔记 main    ( 66244个结果
try/throw/catch
try 保护代码,throw抛出值,catch接受并处理异常一般格式try{ //程序中抛出异常 throw value;}catch(valuetype v){ //异常处理程序}View Code测试示例#include using namespace std;int main...
分类:其他好文   时间:2014-05-01 10:21:13    阅读次数:407
POJ 1503 Integer Inquiry(大数相加,java)
题目我要开始练习一些java的简单编程了^v^import java.io.*;import java.util.*;import java.math.*;public class Main { /** * @param args */ public static voi...
分类:编程语言   时间:2014-05-01 10:03:42    阅读次数:411
斯特林公式(计算大数阶乘)
#include #include #include #define PI 3.1415926535898#define e 2.718281828459using namespace std;///斯特林///n!=sqrt(2*PI*n)*pow(n/e,n)int main(){ int...
分类:其他好文   时间:2014-05-01 09:35:45    阅读次数:526
C语言每日一题之No.2
题目:已知三个整型数8,12,6,按公式s=a+b*c计算,并显示结果思路:定义三个整型变量a,b,c 定义一个变量s用来保存运算结果 输出程序: 1 #include 2 3 void main() 4 { 5 int a = 8; 6 int b = 12; 7 ...
分类:编程语言   时间:2014-05-01 09:26:46    阅读次数:347
java开始到熟悉63-65
本次内容:java常用类1、包装类 1 package array; 2 3 public class wrapperclass { 4 public static void main(String[] args) 5 { 6 Integer i=new Inte...
分类:编程语言   时间:2014-05-01 09:16:28    阅读次数:384
POJ 2443 - Set Operation
注意变换思维,然后就是水题。(如果卡时还可以进一步二分优化。)#include long existed[10000][32];int main(void){ int N;// freopen("poj2443.txt", "r", stdin); scanf("%d", &N);...
分类:其他好文   时间:2014-05-01 09:15:47    阅读次数:373
深入指针(一)
本次主题:指针与数组在进入主题前,我们先看一个例子:#includeint main(){ int a[5] = { 1, 2, 3, 4, 5 }; int *ptr = (int *) (&a + 1); printf("%d,%d\n", *(a + 1), *(ptr - ...
分类:其他好文   时间:2014-05-01 08:40:11    阅读次数:324
uva 11988 这题可以看出c++中string效率的底下
用c语言实现 #include #include #include using namespace std; typedef struct node { char x; struct node *next; }chan; chan *root = new chan; char a[100010]; int main() { while(scanf("%...
分类:编程语言   时间:2014-04-29 13:47:20    阅读次数:358
wustoj 1318 区间的连通性 (最短路)
floyd求最短路。 注意图是有向图。。。 #include #include #include using namespace std; struct node { int x,y,id; }edge[205]; int dis[205][205]; int main() { int c,T,n,a,b,op; while(scanf("%d",&T...
分类:其他好文   时间:2014-04-29 13:21:23    阅读次数:313
Linq To Entity 多表联合查询
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace LinqToEntity { class Program { static void Main(string[] args) { //...
分类:其他好文   时间:2014-04-29 13:16:21    阅读次数:574
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!