虫虫首页|资源下载|资源专辑|精品软件
登录|注册

break

  • #include<iostream> using namespace std int main() { unsigned long x,warcraft,war,l

    #include<iostream> using namespace std int main() { unsigned long x,warcraft,war,l cin> x while(x) { unsigned long *p=new unsigned long[x+1] if(p==NULL) { cerr<<"error!"<<endl abort() } for(warcraft=0 warcraft<=x warcraft++) *(p+warcraft)=0 *p=1 for(warcraft=0 warcraft<x warcraft++) { cout<<*p<<" " war=*p for(l=1 x>1 l++) { if(*(p+l)==0) { cout<<endl *(p+l)=1 break } else { cout<<*(p+l)<<" " *(p+l)=war+*(p+l) war=*(p+l)-war } } } cout<<endl delete [] p cin>>x } return 0 }

    标签: namespace iostream unsigned warcraft

    上传时间: 2015-12-11

    上传用户:manlian

  • An instrument other than a watch for measuring or indicating time, especially a mechanical or electr

    An instrument other than a watch for measuring or indicating time, especially a mechanical or electronic device having a numbered dial and moving hands or a digital display.break down the enemy s resistance

    标签: instrument especially indicating mechanical

    上传时间: 2014-01-11

    上传用户:二驱蚊器

  • C语言精彩百例第1-44例 实例1 数据类型转换 实例2 转义字符 实例3 关系和逻辑运算 实例4 自增自减 实例5 普通位运算 实例6 位移运算 实例7 字符译码 实例8 指针操作符

    C语言精彩百例第1-44例 实例1 数据类型转换 实例2 转义字符 实例3 关系和逻辑运算 实例4 自增自减 实例5 普通位运算 实例6 位移运算 实例7 字符译码 实例8 指针操作符 实例9 if判断语句 实例10 else-if语句 实例11 嵌套if语句 实例12 switch语句 实例13 for语句 实例14 while语句 实例15 do-while语句 实例16 break和continue语句 实例17 exit()语句 实例18 综合实例 实例19 一维数组 实例20 二维数组 实例21 字符数组 实例22 数组初始化 实例23 数组应用 实例24 函数的值调用 实例25 函数的引用调用 实例26 数组函数的调用 实例27 命令行变元 实例28 函数的返回值 实例29 函数的嵌套调用 实例30 函数的递归调用 实例31 局部和全局变量 实例32 变量的存储类别 实例33 内部和外部函数 实例34 综合实例1 实例35 综合实例2 实例36 变量的指针 实例37 一维数组指针 实例38 二维数组指针 实例39 字符串指针 实例40 函数指针 实例41 指针数组 实例42 二维指针 实例43 指针的初始化 实例44 综合实例

    标签: 字符 C语言 数据类型

    上传时间: 2014-01-15

    上传用户:royzhangsz

  • New training algorithm for linear classification SVMs that can be much faster than SVMlight for larg

    New training algorithm for linear classification SVMs that can be much faster than SVMlight for large datasets. It also lets you direcly optimize multivariate performance measures like F1-Score, ROC-Area, and the Precision/Recall break-Even Point.

    标签: classification algorithm for training

    上传时间: 2014-12-20

    上传用户:stvnash

  • 词法分析器的功能是输入源程序

    词法分析器的功能是输入源程序,输出单词符号。词法分析器的单词符号常常表示成以下的二元式(单词种别码,单词符号的属性值)。 识别保留字:if、int、for、while、do、return、break、continue; 单词种别码为1。 其他的都识别为标识符;单词种别码为2。 常数为无符号整形数;单词种别码为3。 运算符包括:+、-、*、/、=、>、<、>=、<=、!= ; 单词种别码为4。 分隔符包括:,、 、{、}、(、)、【、】; 单词种别码为5。

    标签: 分析器 输入 源程序

    上传时间: 2016-07-15

    上传用户:aig85

  • The ISD51_Demo project for the MSC1200 shows how to use the ISD51 In-System-Debugger with flash bre

    The ISD51_Demo project for the MSC1200 shows how to use the ISD51 In-System-Debugger with flash breakpoints or hardware breakpoints. By default, it is configured for flash breakpoints which allow you to set real-time breakpoints in your software. Using Flash breakpoints has also the benefit that no special handing for the shared interrupt vector is required, since the hardware break registers of the MSC1200 are not used at all.

    标签: In-System-Debugger ISD the project

    上传时间: 2014-11-17

    上传用户:dongqiangqiang

  • function [U,center,result,w,obj_fcn]= fenlei(data) [data_n,in_n] = size(data) m= 2 % Exponent fo

    function [U,center,result,w,obj_fcn]= fenlei(data) [data_n,in_n] = size(data) m= 2 % Exponent for U max_iter = 100 % Max. iteration min_impro =1e-5 % Min. improvement c=3 [center, U, obj_fcn] = fcm(data, c) for i=1:max_iter if F(U)>0.98 break else w_new=eye(in_n,in_n) center1=sum(center)/c a=center1(1)./center1 deta=center-center1(ones(c,1),:) w=sqrt(sum(deta.^2)).*a for j=1:in_n w_new(j,j)=w(j) end data1=data*w_new [center, U, obj_fcn] = fcm(data1, c) center=center./w(ones(c,1),:) obj_fcn=obj_fcn/sum(w.^2) end end display(i) result=zeros(1,data_n) U_=max(U) for i=1:data_n for j=1:c if U(j,i)==U_(i) result(i)=j continue end end end

    标签: data function Exponent obj_fcn

    上传时间: 2013-12-18

    上传用户:ynzfm

  • #include<stdio.h> #include<string.h> #include<limits.h> #include<unistd.h>

    #include<stdio.h> #include<string.h> #include<limits.h> #include<unistd.h> #include<sys/types.h> #define PROMPT_STRING "[myshell]$" #define QUIT_STRING "exit\n" static char inbuf[MAX_CANON] char * g_ptr char * g_lim extern void yylex() int main (void){ for( ){ if(fputs(PROMPT_STRING,stdout)==EOF) continue if(fgets(inbuf,MAX_CANON,stdin)==NULL) continue if(strcmp(inbuf,QUIT_STRING)==0) break g_ptr = inbuf g_lim = inbuf + strlen(inbuf) yylex() } return 0 }

    标签: include gt lt limits

    上传时间: 2016-12-31

    上传用户:colinal

  • void insert_sort(int *a,int n) { if(n==1) return insert_sort(a,n-1) int temp=a[n-1] for(

    void insert_sort(int *a,int n) { if(n==1) return insert_sort(a,n-1) int temp=a[n-1] for(int i=n-2 i>=0 i--) { if(temp<a[i]) a[i+1]=a[i] else break } a[i+1]=temp }

    标签: insert_sort int return void

    上传时间: 2014-01-22

    上传用户:banyou

  • C语言实现病毒源码 当含有病毒部分的程序被执行时

    C语言实现病毒源码 当含有病毒部分的程序被执行时,首先进入病毒程序。它在磁盘上找扩展名为C的匹配文件,如果找到,查找是否有被传染过的标志“INFECTED”。如果有此标志,继续找其它的C文件,直至全部检查一遍。若没有这个标志,则 (1)在未被感染的C程序头部加入“INFECTED”已被传染标志。 (2)读取病毒文件的头文件,将其插入到即将被感染的文件头部。如果发现有重复则不插入。 (3)在主程序中插入“VIRUSES();”调用VIRUSES函数。寻找printf、for、while、break语句,如果找到就在之前插入。 (4)在文件尾部插入VIRUSES_SUB子程序。 (5)在插入到将感染文件里面的VIRUSES_SUB子程序里面,必须把文件名改为当前自身的文件名,否则被传染后的文件经过编译、连接和运行后不能再继续传染。 (6)最后插入VIRUSES子程序。这个子程序里面调用了VIRUSES_SUB,执行到这里返回执行结果信息。

    标签: 病毒 C语言 源码

    上传时间: 2013-12-24

    上传用户:缥缈