自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(57)
  • 资源 (2)
  • 收藏
  • 关注

原创 用flashCS6写的制作画板的代码

myPencil.addEventListener(MouseEvent.CLICK, holdPencil);function holdPencil(event:MouseEvent):void{stage.addEventListener(MouseEvent.MOUSE_MOVE, drawing);trace("已单击鼠标");//myPencil.removeEventListener(

2014-08-21 23:11:59 196

原创 英语课件素材处理_声音

课件制作中会用到不少声音素材,如果是音效类的如雨、风的声音等可以去网上找,下载,声音格式如不是wav或mp3,可以用软件转换。如GoldWave如果没有则需要自己处理,如手上有磁带或CD,但怎么把这些变为mp3文件呢?可以用软件, 这个是比较好的,可以录电脑的声音也可以录磁带的声音,具体的用法软件里有,应该看看就会,这时录进来的声音就是mp3了。如果录的时候

2014-08-16 12:01:44 120

原创 AS3 文本点播

如下主界面中要点击磁带图标听整个文本的播放,这个动画制作起来并不难,过去用MX制作时声音是放在mc里,然后点播相应的带声音文件的帧来实现,在AS3.0中这样做也很容易,但整个程序架构不同,如透明按钮上不再写语句,所有的语句都写在主线程的帧上。技术分解:透明按钮制作:按钮使用,声音播放

2014-01-28 14:41:11 973

原创 拖动文件到程序中得文件名示例程序

//WinXP, VS2008//拖动文件到程序中得文件名示例程序 //step1:新建项目new project-win32 project->Empty project. //Step 2: add WinMain.cpp, set Character set as not set in project properties //检查在属性use of MFC里

2013-02-07 20:14:58 252

原创 apache上安装iasp

为了运行论坛,学习php等程序设计,最近想要让机器运行asp,试了一下,和网上说明有点不一样,后运行成功,现讲下过程: 我的机器是winXP+apache2.2.16+php5, 这个都是原先用phpNow安装的。 为了运行asp:下载jdk7,安装下载iasp2.0,开始安装iasp2.0的安装和baidu里的安装方法是一样的,但是在我安装完成后,我在重启时出现了无法载入

2012-06-17 13:09:43 581

原创 254页习题8.9,读文件内容,按词存入vector

<br />//为了方便,要包含的文件会不同,但我没有删 #include <iostream> #include <string> #include <iostream>#include <string>#include <vector>#include <bitset>#include <cstring> //和C语言的string.h其实是一个版本#include <stdexcept> //或用 #include <exception> 都行#

2011-06-02 18:33:00 298

原创 输出的文件名的中文名都是乱码

<br />#define _WIN32_WINNT 0x0501#include <Windows.h>#include <stdio.h>#include <malloc.h>#include <tchar.h> #include <wchar.h> #include <strsafe.h>#define BUFSIZE MAX_PATHint listFilesNamesInADirectory(int argc, TCHAR *argv[]){

2011-06-01 16:36:00 368

原创 error C2871: 'System' : a namespace with this name does not exist

<br /> <br /> <br />为了能够获取指定目录下的所有文件名,看了下C++的官方文档,有如下代码需要运行<br />// enum_files.cpp// compile with: /clrusing namespace System;using namespace System::IO;int main(){ String^ folder = "C://"; array<String^>^ dir = Directory::GetDirectorie

2011-06-01 13:00:00 1708 3

原创 为文件重命名

#include rename( "333a.txt ", "a.txt ");

2011-06-01 11:59:00 316

原创 cin.clear()的使用注意

<br />#include<iostream><br />usingnamespace std;<br /> <br />    int main()<br />    {<br />         int ival=0;<br />    // read cin and test only for EOF; loop is executed even if there are other IO failures<br />    while (cin >> ival,!cin.eof ()) {<br

2011-06-01 11:27:00 2501 2

原创 文件的输入和输出类在IDE模式和命令行模式运行下的异同

对类的初思考:fstream被设为可以处理文件的读取的类,在IDE中进行了最初的尝试后,我发现fstream类并没有真正按要求工作,比如有1个txt文档,我想要用fstream的类去处理,但总是并没有真正的读入文件。是什么原因呢?由于我的IDE是vs2008,我选的项目类型为win console程序,也许是这个原因使我的程序只能与命令行进行交互而不能与文件进行交互,之后进行测试如有a.txt的文本文件,a.txt打开后只有两个数2 32.cpp文件内容为:#include #include usi

2011-06-01 10:43:00 304

原创 用命令行编绎方法

<br />如2.cpp文件在F:盘下<br />1.安装VS2008 <br />2.VS2008-工具-visual studio 2008 command promp<br />3. 进入目录f:<br />4.编绎:<br />cl 2.cpp<br />这时会生成exe文件,运行这个就是想要的<br />如果想要传参数如1, 2 给main,<br />直接打<br />2 1 2就行<br /> <br /> 

2011-06-01 10:21:00 145

原创 VC2008下提示找不到MSVCP90D.dll的解决办法

<br />这个问题的产生是由于是在fat32分区下工作产生的,具体别人的文如下<br /><br /> <br />运用这个方法时有一个问题,怎么找都找不到,应是在这个选项里<br /> <br /> <br /><br /> <br /> <br /> <br />改了以后,要删除这个目录里的所有文件,重新build 才行<br /> <br />

2011-06-01 10:07:00 150

原创 249页习题8.3编写函数,读取流直到到达文件结束符,并输出读到的内容,后重设流

<br />//为了方便,要包含的文件会不同,但我没有删#include <iostream>#include <string>#include <vector>#include <bitset>#include <cstring> //和C语言的string.h其实是一个版本#include <stdexcept> //或用 #include <exception> 都行using std::bitset;using std::vector;using st

2011-06-01 07:06:00 215

原创 228页习题7.33加入将两个sales_item对象相加的成员,并用之求平均价格

<br /><br /> <br />如图输入两笔交书的交易金额,求和与平均售价<br /> <br />主程序为<br />#include "Sales_item.h"#include <iostream> #include <string> #include <vector> #include <bitset> #include <cstring> //和C语言的string.h其实是一个版本 #include <stdexcept> //或用 #i

2011-05-29 23:22:00 315

原创 227页习题7.31编写自己的sales_item类的读入和写出函数,并运用它们

<br />#include "Sales_item.h"#include <iostream> #include <string> #include <vector> #include <bitset> #include <cstring> //和C语言的string.h其实是一个版本 #include <stdexcept> //或用 #include <exception> 都行 using std::bitset; usin

2011-05-29 22:52:00 483

原创 219页习题7.26用字符‘s’为默认实参写函数make_plural,并输出failure和success的单数和复数形式

//为了方便,要包含的文件会不同,但我没有删#include #include #include #include #include //和C语言的string.h其实是一个版本#include //或用 #include 都行using std::bitset;using std::vector;using std::cin;using std::endl;using std::cout;using std::string;using

2011-05-29 18:19:00 839

原创 211页习题7.16编写程序可以搂受命令行选项,并输出传给main实参的值

<br /><br /> <br />//为了方便,要包含的文件会不同,但我没有删#include <iostream>#include <string>#include <vector>#include <bitset>#include <cstring> //和C语言的string.h其实是一个版本#include <stdexcept> //或用 #include <exception> 都行using std::bitset;using std::vect

2011-05-29 13:25:00 302

原创 211页习题7.15编写主函数main,使用两个值作为实参,并输出它们的和

这个程序最后的运行是直接用命令行就行了运行过程比如文件为1.cpp首先用cl 1.cpp编绎该文件,产生了1.obj和1.exe两个文件再用1 2 3就可以把2和3两个数字作为实参传进去1.cpp的内容为 //为了方便,要包含的文件会不同,但我没有删#include #include #include #include #include //和C语言的string.h其实是一个版本#include //或用 #include 都行using std::bitse

2011-05-29 13:16:00 813 1

原创 210页习题7.14求vector 对象中所有元素之和

//为了方便,要包含的文件会不同,但我没有删#include #include #include #include #include //和C语言的string.h其实是一个版本#include //或用 #include 都行using std::bitset;using std::vector;using std::cin;using std::endl;using std::cout;using std::string;using

2011-05-29 11:28:00 250

原创 210页习题7.13编写三种求和函数,以不同方法处理数组边界,求数组元数之和

//为了方便,要包含的文件会不同,但我没有删#include #include #include #include #include    //和C语言的string.h其实是一个版本#include    //或用 #include 都行using std::bitset;using std::vector;using std::cin;using std::endl;using std::cout;using std::string;using std::overflow_error;//#defin

2011-05-28 22:29:00 425

原创 为什么函数中要用引用,const,和指针

<br />引用和指针的好处是可以改变变量的值,同时避免大量复制;<br />用const的好处是,非const和const型的值都可以调用该函数

2011-05-28 20:24:00 192

原创 201页习题7.6交换两个int型指针所指的值

//为了方便,要包含的文件会不同,但我没有删#include #include #include #include #include    //和C语言的string.h其实是一个版本#include    //或用 #include 都行using std::bitset;using std::vector;using std::cin;using std::endl;using std::cout;using std::string;using std::overflow_error;//#defin

2011-05-26 16:24:00 255

原创 199页习题7.4编写求绝对值的函数

<br />//为了方便,要包含的文件会不同,但我没有删<br />#include <iostream><br />#include <string><br />#include <vector><br />#include <bitset><br />#include <cstring>   //和C语言的string.h其实是一个版本<br />#include <stdexcept>   //或用 #include <exception> 都行<br />using std::bitset;<br

2011-05-25 18:54:00 410

原创 199页习题7.3编写求幂的函数,并用它求两个数的幂

<br />//为了方便,要包含的文件会不同,但我没有删<br />#include <iostream><br />#include <string><br />#include <vector><br />#include <bitset><br />#include <cstring>   //和C语言的string.h其实是一个版本<br />#include <stdexcept>   //或用 #include <exception> 都行<br />using std::bitset;<br

2011-05-25 18:49:00 249

原创 191页习题6.25,修改6.11程序,使其有条件输出运行时的输入单词信息

<br />//为了方便,要包含的文件会不同,但我没有删<br />#include <iostream><br />#include <string><br />#include <vector><br />#include <bitset><br />#include <cstring>   //和C语言的string.h其实是一个版本<br />#include <stdexcept>   //或用 #include <exception> 都行<br />using std::bitset;<br

2011-05-25 17:56:00 167

原创 189页习题6.24一个产生overflow_error异常的程序,捕获并输出提示信息

<br />//为了方便,要包含的文件会不同,但我没有删<br />#include <iostream><br />#include <string><br />#include <vector><br />#include <bitset><br />#include <cstring>   //和C语言的string.h其实是一个版本<br />#include <exception><br />using std::bitset;<br />using std::vector;<br />using

2011-05-25 16:55:00 284

原创 189页习题6.23一个产生overflow_error异常的程序

<br />//为了方便,要包含的文件会不同,但我没有删<br />#include <iostream><br />#include <string><br />#include <vector><br />#include <bitset><br />#include <cstring>   //和C语言的string.h其实是一个版本<br />#include <exception><br />using std::bitset;<br />using std::vector;<br />using

2011-05-25 16:49:00 332

原创 185页习题6.21读入系列单词直到有首字母大写的重复单词

<br />//为了方便,要包含的文件会不同,但我没有删<br />#include <iostream><br />#include <string><br />#include <vector><br />#include <bitset><br />#include <cstring>   //和C语言的string.h其实是一个版本<br />using std::bitset;<br />using std::vector;<br />using std::cin;<br />using std:

2011-05-23 18:30:00 152

原创 184页习题6.20读入系列单词直到有重复单词

<br />//为了方便,要包含的文件会不同,但我没有删<br />#include <iostream><br />#include <string><br />#include <vector><br />#include <bitset><br />#include <cstring>   //和C语言的string.h其实是一个版本<br />using std::bitset;<br />using std::vector;<br />using std::cin;<br />using std:

2011-05-18 19:21:00 162

原创 184页习题6.19在一组数里找某个数2

<br />//为了方便,要包含的文件会不同,但我没有删<br />#include <iostream><br />#include <string><br />#include <vector><br />#include <bitset><br />#include <cstring>   //和C语言的string.h其实是一个版本<br />using std::bitset;<br />using std::vector;<br />using std::cin;<br />using std:

2011-05-18 19:04:00 152

原创 183页习题6.18比较用户输入的两个string,直到请求退出

<br />//为了方便,要包含的文件会不同,但我没有删<br />#include <iostream><br />#include <string><br />#include <vector><br />#include <bitset><br />#include <cstring>   //和C语言的string.h其实是一个版本<br />using std::bitset;<br />using std::vector;<br />using std::cin;<br />using std:

2011-05-18 18:21:00 134

原创 181页习题6.16,比较两个vector对象,看是否有前缀关系

<br />//为了方便,要包含的文件会不同,但我没有删<br />#include <iostream><br />#include <string><br />#include <vector><br />#include <bitset><br />#include <cstring>   //和C语言的string.h其实是一个版本<br />using std::bitset;<br />using std::vector;<br />using std::cin;<br />using std:

2011-05-15 15:36:00 215

原创 207页习题6.12读入string,输出连续重复单词次数

<br />//为了方便,要包含的文件会不同,但我没有删<br />#include <iostream><br />#include <string><br />#include <vector><br />#include <bitset><br />#include <cstring>   //和C语言的string.h其实是一个版本<br />using std::bitset;<br />using std::vector;<br />using std::cin;<br />using std:

2011-05-15 10:07:00 237

原创 144页习题5.21处理vector对象,并将奇数以两倍输出

<br />//为了方便,要包含的文件会不同,但我没有删<br />#include <iostream><br />#include <string><br />#include <vector><br />#include <bitset><br />#include <cstring>   //和C语言的string.h其实是一个版本<br />using std::bitset;<br />using std::vector;<br />using std::cin;<br />using std:

2011-05-12 19:03:00 190

原创 144页习题5.20 提示输入两个数,并输出较小数

<br />//为了方便,要包含的文件会不同,但我没有删<br />#include <iostream><br />#include <string><br />#include <vector><br />#include <bitset><br />#include <cstring>   //和C语言的string.h其实是一个版本<br />using std::bitset;<br />using std::vector;<br />using std::cin;<br />using std:

2011-05-12 18:55:00 566

原创 142页5.18定义vector,其每个元素指向string类型的指针,读取并输出string的内容及相应长度

<br />//为了方便,要包含的文件会不同,但我没有删<br />#include <iostream><br />#include <string><br />#include <vector><br />#include <bitset><br />#include <cstring>   //和C语言的string.h其实是一个版本<br />using std::bitset;<br />using std::vector;<br />using std::cin;<br />using std:

2011-05-11 22:20:00 592

原创 用Excel迅速算总分

<br />人名      语       数总林202141文314071<br /> <br />如有以上的表,总分直接拖动从20到71,41和71就自然出来了

2011-05-08 11:14:00 326

原创 124页习题4.36 输出多维数组的内容

<br />//为了方便,要包含的文件会不同,但我没有删<br />#include <iostream><br />#include <string><br />#include <vector><br />#include <bitset><br />#include <cstring>   //和C语言的string.h其实是一个版本<br />using std::bitset;<br />using std::vector;<br />using std::cin;<br />using std:

2011-05-08 08:42:00 114

原创 122页习题4.34和4.35:从vector中复制字符串到字符指针数组中,并输出结果

<br />//为了方便,要包含的文件会不同,但我没有删<br />#include <iostream><br />#include <string><br />#include <vector><br />#include <bitset><br />#include <cstring>   //和C语言的string.h其实是一个版本<br />using std::bitset;<br />using std::vector;<br />using std::cin;<br />using std:

2011-05-08 08:23:00 374

英文连词成句练习用的flashCS3文件

英文连词成句练习用的flashCS3文件,会flash的,直接在代码中把需练习的句子输入进去,就可以生成swf文件了,可以用于连词成句的批量制作。

2014-08-21

flashCS3制作的幻灯片空模板

做课件时经常需要用到跳转,就作了一个模板,有些内容直接往里面的一个movie Clip文件里面加就行了,会自动根据帧数写出页面页数

2014-08-21

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除