注意,第二个数字表示的分钟数可能超过60,也可能是负数#include int main(){ int a,b,c=0,d=0,e=0; scanf("%d %d", &a, &b); if(b>=60) {c=b/60;d=b%60;e=a%100+d; if(e>=60) a=(a/100+(....
分类:
其他好文 时间:
2015-01-27 09:16:04
阅读次数:
115
import java.io.*;import java.util.*;import java.net.*;public class GetIP { public static void main (String[] args) throws Exception { /* ...
分类:
编程语言 时间:
2015-01-27 01:48:29
阅读次数:
167
C语言有两种可能的运行环境
1. 独立(freestanding)
在独立环境中,C程序执行不需要操作系统的支持,因此只具有最小的链接库能力。
2. 宿主(hosted)
在宿主的环境中,C程序会在操作系统的控制下执行,并且会使用操作系统所提供的支持,具有完整的标准链接库能力...
分类:
编程语言 时间:
2015-01-27 00:14:04
阅读次数:
195
Main.xml程序如下:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertica...
分类:
移动开发 时间:
2015-01-26 22:56:41
阅读次数:
385
//
// main.m
// OC05-task-01
//
// Created by Xin the Great on 15-1-25.
// Copyright (c) 2015年 Xin the Great. All rights reserved.
//
#import
#import "NSArray+Log.h"
int main(int argc, const ch...
分类:
其他好文 时间:
2015-01-26 22:48:11
阅读次数:
194
//
// main.m
// OC04-task-07
//
// Created by Xin the Great on 15-1-24.
// Copyright (c) 2015年 Xin the Great. All rights reserved.
//
#import
#import "NSArray+Log.h"
#import "Person.h"
int main...
分类:
编程语言 时间:
2015-01-26 22:48:04
阅读次数:
131
//
// main.m
// OC04-task-08
//
// Created by Xin the Great on 15-1-24.
// Copyright (c) 2015年 Xin the Great. All rights reserved.
//
#import
#import "Person.h"
int main(int argc, const char * ...
分类:
编程语言 时间:
2015-01-26 22:46:04
阅读次数:
197
//
// main.m
// OC05-task-02
//
// Created by Xin the Great on 15-1-25.
// Copyright (c) 2015年 Xin the Great. All rights reserved.
//
#import
int main(int argc, const char * argv[]) {
@auto...
分类:
其他好文 时间:
2015-01-26 22:45:22
阅读次数:
206
要求:掌握文本文件读写的方法了解二进制文件的读写方法C++文件流:fstream // 文件流ifstream // 输入文件流ofstream // 输出文件流//创建一个文本文件并写入信息//同向屏幕上输出信息一样将信息输出至文件#include#includevoid main(){ ...
分类:
编程语言 时间:
2015-01-26 22:17:40
阅读次数:
227
#include
using namespace std;
void func(int &x, int *x1)
{
x-=5;;
x1+=10;
}
int main()
{
int a=100,b=200;
func(b,&a);
func(a,&b);
cout
}...
分类:
其他好文 时间:
2015-01-26 21:08:27
阅读次数:
168