看n2实例 #Create a simulator object set ns [new Simulator] #define different colors for data flows #$ns color 1 Blue #$ns color 2 Red #Open the nam trace file set nf [open out-1.nam w] $ns namtrace-all $nf set f0 [open out0.tr w] set f1 [open out1.tr w] #define a finish procedure proc finish {} { global ns nf $ns flush-trace #Close the trace file close $nf #Execute nam on the trace file exit 0 } #Create four nodes set n0 [$ns node] set n1 [$ns node] set n2 [$ns node] set n3 [$ns node] #Create links between the nodes $ns duplex-link $n0 $n2 1Mb 10ms
标签: simulator Simulator different Create
上传时间: 2016-07-02
上传用户:wfl_yy
本程序输入一个矩阵可以计算出其逆矩阵 具体要多大的矩阵 请自行在程序中修改程序头的 #define N
上传时间: 2014-11-03
上传用户:bjgaofei
Object-oriented languages define objects (types of things) that know how to perform methods (specific actions). Functional languages treat programming problems like mathematical relationships. Ruby is flexible, meaning that you can program in any of these styles however, it is primarily object oriented, with some strong functional influence. This book focuses slightly more on the functional aspects of Ruby than some other books.
标签: Object-oriented languages objects methods
上传时间: 2016-08-05
上传用户:佳期如梦
//通过18B20检测的数字温度可在电脑上显示当前温度值 #include <reg52.h> #define uchar unsigned char #define uint unsigned int sbit DS=P2^2 //define interface uint temp // variable of temperature uchar flag1 // sign of the result positive or negative sbit dula=P2^6 sbit wela=P2^7
标签: define unsigned include 18B20
上传时间: 2014-01-19
上传用户:Andy123456
//1602液晶显示字屏为:TX-1C MCU GOTOYUNLONGDZ #include<reg52.h> #define uchar unsigned char #define uint unsigned int
标签: GOTOYUNLONGDZ unsigned include define
上传时间: 2014-11-14
上传用户:caiiicc
93c46读写程序 define di_93 dip3 #define sk_93 dip2 #define cs_93 dip1 #define do_93 dip4 #define gnd_93 dip5 #define org_93 dip6
上传时间: 2013-12-25
上传用户:invtnewer
usb 开发 源码 #define USBStorName "USB Mass Storage" #define USBStorRev 1 #define USBStorFeature DRP_FC_IO_FOR_INQ_AEP #define USBSTOR_Major_Ver 0x03 #define USBSTOR_Minor_Ver 0x0A
标签: define USBStorFeature USBStorName USBStorRev
上传时间: 2016-12-05
上传用户:上善若水
The purpose of this document is to define the format of the messages and data being communicated between microprocessors used in heavy-duty vehicle applications. It is meant to serve as a guide toward a standard practice to promote software compatibility among microcomputer based modules. This document is to be used with SAE J1708. SAE J1708 defines the requirements for the hardware and basic protocol that is needed to implement this document.
标签: communicated the document messages
上传时间: 2013-12-09
上传用户:tedo811
//使用gray code的解法 #include <iostream> #include <cmath> using namespace std #define ZERO 0 #define ONE 1 #define ODD 1 #define EVEN 0 #define RIGHT 1 #define LEFT 0 #define MAX 10
标签: include namespace iostream define
上传时间: 2016-12-31
上传用户:luke5347
#include "iostream.h" #include "iomanip.h" #define N 20 //学习样本个数 #define IN 1 //输入层神经元数目 #define HN 8 //隐层神经元数目 #define ON 1 //输出层神经元数目 double P[IN] //单个样本输入数据 double T[ON] //单个样本教师数据 double W[HN][IN] //输入层至隐层权值 double V[ON][HN] //隐层至输出层权值 double X[HN] //隐层的输入 double Y[ON] //输出层的输入 double H[HN] //隐层的输出
标签: define include iostream iomanip
上传时间: 2014-01-01
上传用户:凌云御清风