代码搜索结果
找到约 21,386 项符合
Switch 的代码
switch.cpp
// switch.cpp -- use the switch statement
#include
using namespace std;
void showmenu(); // function prototypes
void report();
void comfort();
int main()
{
showmenu();
in
switch.v
//as switch==1, stop counter
//and then as switch goes from 1 to 0, change the state
module Switch( s_clk, s_sw, s_diswork, s_change );
input s_clk, s_sw;
output s_diswork, s_change;
reg s_d
switch.rpt
Project Informationc:\documents and settings\no7\my documents\traffic light\switch.rpt
MAX+plus II Compiler Report File
Version 10.0 9/14/2000
Compiled: 03/16/2004 02:05:16
Copyright (C) 1988-
switch-statements.js
// Please note: this file contains snippets for comparison
// it is not self-contained or ready-to-use code as such
switch (true)
{
case score >= 90:
var grade = 'distinction';
break
switch.csp
package switch_test;
function main() {
var i = -1,a;
var j;
for(j = 0;j < 10000;j++)
{
switch(j % 4)
{
case 0: a = "zero"; break;
case 1: a = "one"; break;
c
switch.cpp
// switch.cpp -- use the switch statement
#include
using namespace std;
void showmenu(); // function prototypes
void report();
void comfort();
int main()
{
showmenu();
in
switch.rc2
//
// Switch.RC2 - Microsoft Visual C++ 不会直接编辑的资源
//
#ifdef APSTUDIO_INVOKED
#error 此文件不能由 Microsoft Visual C++ 编辑
#endif //APSTUDIO_INVOKED
///////////////////////////////////////////////
switch.h
// Switch.h : PROJECT_NAME 应用程序的主头文件
//
#pragma once
#ifndef __AFXWIN_H__
#error "在包含此文件之前包含“stdafx.h”以生成 PCH 文件"
#endif
#include "stdafx.h"
#include "resource.h" // 主符号
// CSwitchApp:
switch.h
void switch()
{
case 1:
case 2:
case 3:
}