看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檢測的數(shù)字溫度可在電腦上顯示當前溫度值 #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 開發(fā) 源碼 #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 //學習樣本個數(shù) #define IN 1 //輸入層神經元數(shù)目 #define HN 8 //隱層神經元數(shù)目 #define ON 1 //輸出層神經元數(shù)目 double P[IN] //單個樣本輸入數(shù)據(jù) double T[ON] //單個樣本教師數(shù)據(jù) double W[HN][IN] //輸入層至隱層權值 double V[ON][HN] //隱層至輸出層權值 double X[HN] //隱層的輸入 double Y[ON] //輸出層的輸入 double H[HN] //隱層的輸出
標簽: define include iostream iomanip
上傳時間: 2014-01-01
上傳用戶:凌云御清風