码迷,mamicode.com
首页 >  
搜索关键字:int    ( 143001个结果
11.8输入一个整数,求它是几位数
#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
C#调用SQL Server参数过程传参
-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
C# 读取在存储过程多结果集
--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...
分类:Windows程序   时间:2015-11-08 19:29:05    阅读次数:306
POJ 1741 Tree 树分治
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
第十章 系统级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
fly bird 案例代码_GameManager
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
php中字符串分割函数
首先来看下两个方法的定义:函数原型:array split (string $pattern, string $string [, int $limit])函数原型:array explode ( string $separator, string $string [, int $limit])初看...
分类:Web程序   时间:2015-11-08 19:22:12    阅读次数:172
Mybatis 源码分析--crud
增加源码分析-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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!