ns2中基本变量类型定义
2013-07-23 19:54
274 查看
以下是在文件:/ns-allinone-2.34/ns-2.34/autoconf-win32.h,中65行
typedef
char
int8_t;
typedef
unsigned
char
int8_t;
typedef
short
int16_t;
typedef
unsigned
short u_int16_t;
typedef
int
int32_t;
typedef
unsigned
int u_int32_t;
typedef __int64
int64_t;
typedef
unsigned
__int64 u_int64_t;
以下是在文件:/ns-allinone-2.34/ns-2.34/config.h,中76行
typedef int32_t
nsaddr_t;
typedef int32_t
nsmask_t;
struct
ns_addr_t {
int32_t
addr_;
int32_t
port_;
//以下可不用管
#ifdef __cplusplus
bool isEqual
(ns_addr_t const &o) {
return
((addr_ == o.addr_) && (port_ ==
o.port_))?true:false;
}
#endif
};
typedef
char
int8_t;
typedef
unsigned
char
int8_t;
typedef
short
int16_t;
typedef
unsigned
short u_int16_t;
typedef
int
int32_t;
typedef
unsigned
int u_int32_t;
typedef __int64
int64_t;
typedef
unsigned
__int64 u_int64_t;
以下是在文件:/ns-allinone-2.34/ns-2.34/config.h,中76行
typedef int32_t
nsaddr_t;
typedef int32_t
nsmask_t;
struct
ns_addr_t {
int32_t
addr_;
int32_t
port_;
//以下可不用管
#ifdef __cplusplus
bool isEqual
(ns_addr_t const &o) {
return
((addr_ == o.addr_) && (port_ ==
o.port_))?true:false;
}
#endif
};
相关文章推荐
- Atitit.变量的定义 获取 储存 物理结构 基本类型简化 隐式转换 类型推导 与底层原理 attilaxDSL
- Atitit.变量的定义 获取 储存 物理结构 基本类型简化 隐式转换 类型推导 与底层原理 attilaxDSL
- Atitit.变量的定义 获取 储存 物理结构 基本类型简化 隐式转换 类型推导 与底层原理 attilaxDSL
- C++ Primer 学习笔记4 变量和基本类型 (变量初始化规则、声明和定义)
- Java语言基础{Java_se(02)}-字面量和常量-变量的基本定义和使用-Java表达式-数据类型和分类-基本数据类型的转换-算数运算符-赋值运算符-比较运算符-三元运算符-逻辑运算符
- 第一部分 基本语言 第二章 变量和基本类型(2.3.5声明和定义)
- oracle PL/SQL的基本构成,块结构和基本语法要求,数据类型,变量定义,运算符和函数
- c++ Premier 学习笔记(unit2 变量和基本类型 -声明与定义
- 基本数据类型以及变量的定义
- java小练习(使用八种基本数据类型定义八个变量,然后在控制台输出各个变量的值)
- 第一部分 基本语言 第二章 变量和基本类型(2.3.6名字的作用域)(2.3.7在变量的使用处定义变量)
- (一):T-SQL语言分类、基本数据类型、定义变量及赋值
- 用类名做方法的返回值类型 在学习Java的初始阶段,很多同学使用基本数据类型定义变量和引用类型定义变量以及使用类名做方法的返回值类型常常不知所以。今天我以自己的解读方式和个人的理解作一个简单的解释,和
- oracle PL/SQL的基本构成,块结构和基本语法要求,数据类型,变量定义,运算符和函数
- day26数据库基本类型、常用函数、变量的定义、循环
- JAVA 对象定义、访问对象、基本类型和引用类型变量区别
- 第2章 变量和基本类型 附2 --声明和定义的区别
- javaScript基本包装类型及变量定义的区别
- c++ primer 学习笔记 3 变量与基本类型
- C++Primer学习笔记第二章(2/18) 变量和基本类型