#includemain(){ int a,i,y; scanf("%d",&a); for(i=0;a;i++) a=a/10; y=i; printf("y=%d\n",y);}456y=3 正确使用for,要简洁
分类:
其他好文 时间:
2015-11-08 20:50:23
阅读次数:
131
-SQL SERVER生成测试环境:Create database Test;
go
USE [Test]
GO
if OBJECT_ID('Tab2','U') is not null
drop table Tab2
go
CREATE TABLE [dbo].[Tab2](
[ID] [int] IDENTITY(1,1) NOT NULL,
[TabID] [int] NOT NUL...
分类:
数据库 时间:
2015-11-08 19:32:29
阅读次数:
399
#include
#include
#include
#define NULL 0
struct SNode{
int data; //data domain
SNode *next; //pointer domain
};
class Stack{
public:
Stack();
~Stack();
void Push(int e);...
分类:
其他好文 时间:
2015-11-08 19:30:24
阅读次数:
164
--SQL Server 测试环境搭建:Create database Test;
go
USE [Test]
GO
if OBJECT_ID('Tab','U') is not null
drop table Tab
go
CREATE TABLE [dbo].[Tab](
[ID] [int] identity(1,1) NOT NULL,
[name] [sysname] NOT N...
TreeTime Limit: 20 SecMemory Limit: 256 MB题目连接http://poj.org/problem?id=1741DescriptionGive a tree with n vertices,each edge has a length(positive int...
分类:
其他好文 时间:
2015-11-08 19:28:09
阅读次数:
256
第十章 系统级I/O一、Unix I/O 1.一个unix文件就是一个m个字节的序列 2.unix外壳创建的每个进程开始时都有三个打开的文件:标准输入(0)、标准输出(1)和标准错误(-1)。二、打开个关闭文件 1.int open(char *filename, int flags, mode_t...
分类:
其他好文 时间:
2015-11-08 19:27:47
阅读次数:
131
1 using UnityEngine; 2 using System.Collections; 3 4 public class GameMangger : MonoBehaviour { 5 public static int GAMESTATE_MENU = 0; //游戏菜单状态...
分类:
其他好文 时间:
2015-11-08 19:24:12
阅读次数:
317
首先来看下两个方法的定义:函数原型:array split (string $pattern, string $string [, int $limit])函数原型:array explode ( string $separator, string $string [, int $limit])初看...
分类:
Web程序 时间:
2015-11-08 19:22:12
阅读次数:
172
增加源码分析-insert()---------------------------------------------------------------------public int insert(String statement, Object parameter) { //stat...
分类:
其他好文 时间:
2015-11-08 19:18:33
阅读次数:
447
#include#include#include#define MaxNum 15 //定义一共有十五个小区;//对小区进行结构化定义; struct vex{ int X; int Y; double Need; //定义每个小区的需求; doubl...
分类:
其他好文 时间:
2015-11-08 19:18:21
阅读次数:
425