代码搜索结果
找到约 10,000 项符合
Switch 的代码
switch.c
/* Demonstrates the switch statement. */
#include
int main( void )
{
int reply;
puts("Enter a number between 1 and 5:");
scanf("%d", &reply);
switch (reply)
switch.h
/* switch.h
* Definitions needed for implementing context switching.
*
* Context switching is inherently machine dependent, since
* the registers to be saved, how to set up an initial
* call fram
switch.s
/* switch.s
* Machine dependent context switch routines. DO NOT MODIFY THESE!
*
* Context switching is inherently machine dependent, since
* the registers to be saved, how to set up an initi
switch.cpp
// switch box routing
#include
#include "stack.h"
bool CheckBox(int net[], int n)
{// Determine whether the switch box is routable.
Stack *s = new Stack (n);
/
switch.out
Type number of pins in switch box
Type net numbers for pins 1 through 8
Switch box is routable
switch.dat
8
1 2 2 1 3 3 4 4
switch.cpp
// switch.cpp -- use the switch statement
#include
using namespace std;
void showmenu(); // function prototypes
void report();
void comfort();
int main()
{
showmenu();
in