资源简介
深入理解计算机系统实验指导及答案

代码片段和文件信息
/***************************************************************************
* Dr. Evil‘s Insidious Bomb Version 1.0
* Copyright 2002 Dr. Evil Incorporated. All rights reserved.
*
* LICENSE:
*
* Dr. Evil Incorporated (the PERPETRATOR) hereby grants you (the
* VICTIM) explicit permission to use this bomb (the BOMB). This is a
* time limited license which expires on the death of the VICTIM.
* The PERPETRATOR takes no responsibility for damage frustration
* insanity bug-eyes carpal-tunnel syndrome loss of sleep or other
* harm to the VICTIM. Unless the PERPETRATOR wants to take credit
* that is. The VICTIM may not distribute this bomb source code to
* any enemies of the PERPETRATOR. No VICTIM may debug
* reverse-engineer run “strings“ on decompile decrypt or use any
* other technique to gain knowledge of and defuse the BOMB. BOMB
* proof clothing may not be worn when handling this program. The
* PERPETRATOR will not apologize for the PERPETRATOR‘s poor sense of
* humor. This license is null and void where the BOMB is prohibited
* by law.
***************************************************************************/
#include
#include “support.h“
#include “phases.h“
/*
* Note to self: Remember to erase this file so my victims will have no
* idea what is going on and so they will all blow up in a
* spectaculary fiendish explosion. -- Dr. Evil
*/
FILE *infile;
int main(int argc char *argv[])
{
char *input;
/* Note to self: remember to port this bomb to Windows and put a
* fantastic GUI on it. */
/* When run with no arguments the bomb reads its input lines
* from standard input. */
if (argc == 1) {
infile = stdin;
}
/* When run with one argument the bomb reads from
* until EOF and then switches to standard input. Thus as you
* defuse each phase you can add its defusing string to and
* avoid having to retype it. */
else if (argc == 2) {
if (!(infile = fopen(argv[1] “r“))) {
printf(“%s: Error: Couldn‘t open %s\n“ argv[0] argv[1]);
exit(8);
}
}
/* You can‘t call the bomb with more than 1 command line argument. */
else {
printf(“Usage: %s []\n“ argv[0]);
exit(8);
}
/* Do all sorts of secret stuff that makes the bomb harder to defuse. */
initialize_bomb();
printf(“Welcome to my fiendish little bomb. You have 6 phases with\n“);
printf(“which to blow yourself up. Have a nice day!\n“);
/* Hmm... Six phases must be more secure than one phase! */
input = read_line(); /* Get input */
phase_1(input); /* Run the phase */
phase_defused(); /* Drat! They figured it out!
* Let me know how they did it. */
printf(“Phase 1 defused. How about the next one?\n“);
/* The second phase is harder. No one will ever figure out
* how to defuse this...
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2012-12-25 20:45 深入理解计算机系统实验指导及答案\
目录 0 2012-12-25 20:45 深入理解计算机系统实验指导及答案\bomb23\
文件 20446 2012-10-27 16:09 深入理解计算机系统实验指导及答案\bomb23\bomb
文件 4049 2012-10-27 16:09 深入理解计算机系统实验指导及答案\bomb23\bomb.c
文件 67152 2012-10-27 21:41 深入理解计算机系统实验指导及答案\bomb23\code
文件 23 2012-10-28 10:37 深入理解计算机系统实验指导及答案\bomb23\ID
文件 159 2012-10-28 16:07 深入理解计算机系统实验指导及答案\bomb23\README
文件 95 2012-10-28 10:35 深入理解计算机系统实验指导及答案\bomb23\solution
文件 1538 2012-11-01 18:59 深入理解计算机系统实验指导及答案\bomb23\test.c
目录 0 2012-12-25 20:45 深入理解计算机系统实验指导及答案\bombs\
文件 30720 2008-10-07 18:49 深入理解计算机系统实验指导及答案\bombs\bomb1.tar
文件 30720 2008-10-07 18:49 深入理解计算机系统实验指导及答案\bombs\bomb10.tar
文件 30720 2008-10-07 18:49 深入理解计算机系统实验指导及答案\bombs\bomb11.tar
文件 30720 2008-10-07 18:49 深入理解计算机系统实验指导及答案\bombs\bomb12.tar
文件 30720 2008-10-07 18:49 深入理解计算机系统实验指导及答案\bombs\bomb13.tar
文件 30720 2008-10-07 18:49 深入理解计算机系统实验指导及答案\bombs\bomb14.tar
文件 30720 2008-10-07 18:49 深入理解计算机系统实验指导及答案\bombs\bomb15.tar
文件 30720 2008-10-07 18:49 深入理解计算机系统实验指导及答案\bombs\bomb16.tar
文件 30720 2008-10-07 18:49 深入理解计算机系统实验指导及答案\bombs\bomb17.tar
文件 30720 2008-10-07 18:49 深入理解计算机系统实验指导及答案\bombs\bomb18.tar
文件 30720 2008-10-07 18:49 深入理解计算机系统实验指导及答案\bombs\bomb19.tar
文件 30720 2008-10-07 18:49 深入理解计算机系统实验指导及答案\bombs\bomb2.tar
文件 30720 2008-10-07 18:49 深入理解计算机系统实验指导及答案\bombs\bomb20.tar
文件 30720 2008-10-07 18:49 深入理解计算机系统实验指导及答案\bombs\bomb21.tar
文件 30720 2008-10-07 18:49 深入理解计算机系统实验指导及答案\bombs\bomb22.tar
目录 0 2012-12-25 20:45 深入理解计算机系统实验指导及答案\bombs\bomb23\
文件 30720 2008-10-07 18:49 深入理解计算机系统实验指导及答案\bombs\bomb23.tar
文件 20446 2008-10-07 18:48 深入理解计算机系统实验指导及答案\bombs\bomb23\bomb
文件 4049 2008-10-07 18:48 深入理解计算机系统实验指导及答案\bombs\bomb23\bomb.c
文件 22 2008-10-07 18:48 深入理解计算机系统实验指导及答案\bombs\bomb23\ID
文件 99 2008-10-07 18:48 深入理解计算机系统实验指导及答案\bombs\bomb23\README
............此处省略129个文件信息
- 上一篇:逻辑函数公式化简器
- 下一篇:CSS梅兰商城项目实战PSD
相关资源
- labview魔方程序
- 一个labview仿真的函数信号发生器.vi
- labview编程软件滤波器以及编写程序设
- labview语音输入输出
- labview中的DAQ助手采集多个通道电压
- Labview与CH372CH375的通信测试
- LabVIEW钢琴实例
- 编程实现二维DCT变换
- silicon lab公司的收音IC SI47XX全套开发工
- 图像二值化
- 用FFT对信号进行频谱分析
- nachos-lab 02
- Tone-Reservation
- QGA 量子遗传算法
- 差分形式的阻滞增长模型
- 遗传算法的M文件
- LabVIEW入门与实战开发100例190153
- LABVIEW做的蓝牙数据发送程序.vi
- VCS lab 和 VCS lab guide
- 基于labview的变声器
- 基于labview的方差标准差计算(求方差
- smart和labview通讯(smart_connet.vi)
- LabVIEW 数据采集 模拟量+编码器(Daq
- LabVIEW 声音信号的采集与存储.vi
- LabVIEW步进电机控制.vi
- 多通道数据采集.vi(labview)
- labview智能电梯(6层电梯.vi)
- 用labview编写的一个神经网络Vi图
- 基于Labview的电子秤的设计.docx
- labview汽车仪表盘
评论
共有 条评论