石水2
石水2
关注数: 1
粉丝数: 5
发帖数: 191
关注贴吧数: 10
找编译原理一个例题,数字识别 问题描述: 找编译原理一个例题,数字识别,是个很薄的书上的。具体内容记不清了,很抱歉。大概内容是,给了一个“数字”的状态转换图,当时只给了图,然后根据这个图,可以根据左递归文法判断一个字符串是否是数字,如3.1415926是数字,3.14abc不是,3.14e+08是数字(科学表示法),3.14ebc+08不是。 根据状态装换图来写程序的话也很简单,就是把每个状态转换单独写一个函数,从初始状态开始,每吃进一个字符的话,就调用相应的状态装换函数,最终状态如果是数字,那就是数字,如果不是数字,那就不是数字。 简单来说,我在找这个数字的状态转换图,另外,我也比较感兴趣怎么画这个图(当时直接给了图,没说怎么画)。 毕业n多年了,时不时想起这个问题,感觉还是挺有意思的,自己想不起来了,寻求下网友的力量。
Compile wxWidgets in Unicode mode Compile wxWidgets in Unicode mode After unpacking the zip file to a directory of your choice, open a cmd prompt, and navigate to the folder build/msw inside the wxWidgets folder. Use the following commands to compile wxWidgets:set path=c:\mingw\bin;c:\mingw\mingw32\bin mingw32-make -f makefile.gcc SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 clean mingw32-make -f makefile.gcc SHARED=1 MONOLITHIC=1 BUILD=release UNICODE=1 This assumes your MinGW installation is in C:\mingw. Use a different path if you installed MinGW somewhere else. You will see a lot of warning messages during compilation. Don't worry, this is normal, you are compiling wxWidgets. The build process may take 10-30 minutes, depending on your computer's speed. If you are using a recent version of MinGW you may find that the object files are too large and that the linker runs out of memory. To fix this problem you need to edit config.gcc so that inline functions are not exported, by modifying the CFLAGS and CXXFLAGS lines to: CFLAGS ?= -fno-keep-inline-dllexport CXXFLAGS ?= -fno-keep-inline-dllexport remark: If you want to use wxWidgets not only for building Code::Blocks, but also for writing wxWidgets programs, and if you want to use the debugger in those programs, you have to compile a debug build of wxWidgets as well. Use the same commands as for the release build, but replace "release" by "debug". Optional: To reduce the size of your wxWidgets library, you can disable features which are not used by Code::Blocks. However, you should not do this unless you know what you are doing. You have to delete the generated setup.h from lib/gcc_dll/msw/wx before building, because your changes to include/wx/msw will otherwise not be honoured.
问题:如何让自定义的结构体和类高亮显示 就像下面这样图1 CodeBlocks中,自定义结构体不能高亮图2 VC安装VA插件后,自定义结构体可以高亮显示
请问mingw和tdm-gcc是什么关系? 我知道两者都是windows下的GCC,但两个有好像不是一个工程,那么他们的差别是什么呢?尤其是tdm-gcc,下载后的默认安装目录居然是“C:\MinGW32”。 sourceforge dot net/projects/mingw/ sourceforge dot net/projects/tdm-gcc/ " dot "请替换成"."
请问mingw和tdm-gcc是什么关系? 我知道两者都是windows下的GCC,但两个有好像不是一个工程,那么他们的差别是什么呢?尤其是tdm-gcc,下载后的默认安装目录居然是“C:\MinGW32”。 sourceforge dot net/projects/mingw/ sourceforge dot net/projects/tdm-gcc/ " dot "请替换成"."
错误“No such file or directory” 问个问题,为什么一个简单的“hello world”程序,我命令行下用gcc编译却出现错误“No such file or directory”?图1 错误“No such file or directory” 我的MinGW是CodeBlocks12.11自带的版本,并且用CodeBlocks编译(编译器是MinGW)没有问题。 有人说出现“No such file or directory”错误的原因是因为缺少“boost库”,请问我该怎么配置它呢?
错误"No such file or directory" 图1 错误“No such file or directory” 我的MingGW是CodeBlocks12.11里面自带的版本,在CodeBlocks界面里面编译运行hello.c时一切正常,当时当我拿到命令行里编译时却总是出现“No such file or directory”错误。 我的CodeBlocks的下载地址是: http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fjaist.dl.sourceforge.net%2Fproject%2Fcodeblocks%2FBinaries%2F12.11%2FWindows%2Fcodeblocks-12.11mingw-setup.exe&urlrefer=65d18d6e36c4088e62c1eb1052c2748e 如果在linux下的话,这么简单的程序,一句“gcc -o hello.exe hello.c”铁定就成了,为什么我这里会出现“No such file or directory”这个错误呢
有人尝试过在windows平台下编译codeblocks源代码吗 这里有个老外写到详细步骤,但是版本貌似比较老了,这篇文章大概是他在2011-02-28写的 http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fwiki.codeblocks.org%2Findex.php%3Ftitle%3DInstalling_Code%3A%3ABlocks_from_source_on_Windows&urlrefer=c3b938b00b6012fb0027717ce6601223 代码我已经下好了,用svn更新的,codeblocks也装好了,但是还不清楚怎么编译这个codeblocks的源代码,希望有过来人能够指点一二。图1 CodeBlocks源代码
U盘引导的相关资料 http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fbbs.pediy.com%2Fshowthread.php%3Ft%3D173869&urlrefer=0625687642a54d250036d3a836d60393 关于USB模拟成软驱启动 如果运气好的话,U盘引导的操作系统其实很容易就完成了。例如,将系统的软盘映像haribote.img (osask项目里)用winhex直接复制到U盘的第一扇区开始的地方,U盘引导盘就完成了。cpu会用软驱模拟器启动USB,因此此模式下USB的读写和软盘相同。 通过实验,在我的Dell一体机里,可以成功引导并进入系统,和在虚拟机里看到的效果一样,可以响应键盘输入,但遗憾的是鼠标不能移动了(why?) ; 而在我的Thinkpad T410 笔记本里却引导失败(能进入引导程序,但加载系统失败,估计读写出了问题,难道启动USB的时候用的是硬盘模拟器而不是软盘模拟器?)。 /*****************************************/ 相关资料: http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fboard.flatassembler.net%2Ftopic.php%3Ft%3D12389&urlrefer=3824b47c4ccaaa249f9ba991037e51a3 摘录 USB Booting Secret #2: What happens in the boot sector, stays in the boot sector! When it comes to USB booting there are basically 4 types of computers: PC without USB, or with USB and can't boot USB because of old BIOS firmware. ;不支持USB启动 PC that always boots USB with floppy disk emulation. ;总是以软驱模拟器引导 PC that always boots USB with hard drive emulation. ;总是以硬盘驱动器模拟器引导 PC that examines the boot sector to determine the type of emulation and/or with BIOS selection setup.;根据BIOS的设置来决定模拟器类型 相关资料 A simple FAT32 bootloader written in assembly to boot from USB drives. http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fblog.ishans.info%2F2012%2F01%2F19%2Fa-simple-fat32-bootloader-written-in-assembly-to-boot-from-usb-drives%2F&urlrefer=77f6b7056d01ef754b06062a3554a394 相关资料 http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fboard.flatassembler.net%2Ftopic.php%3Ft%3D12469&urlrefer=cf6c8f29c9a4fb47513f754f1c7ea52b http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fmbldr.sourceforge.net%2Fspecsedd30.pdf&urlrefer=378e0f2f8f13ffe99bb90e9a840c0b92 摘录 USB Booting Secret # 3: If the PC can boot from USB, you can use the BIOS to access the entire flash drive. Interrupt 13h, ah=42h Extended Read and ah=43h Extended Write can be used for USB flash drive LBA access.
笑死我了 “做出这个规定的应该是IBM的大叔们,不过估计他们现在都成爷爷了”!!!
有骗分嫌疑 http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fzhidao.baidu.com%2Fquestion%2F110602249.html&urlrefer=a82a218d84ccfee21aab10bb79de34aa 问题过于简单,小学生都不认为难 而且,答案都一样,不去第一个,不去第二个,偏偏取最后一个,呵呵,让人信服吗,有悖常理
我有一个问题提交成功了但是不能显示 关于降分的问题 我若再问一遍,你们会扣我分吗,或者,让我不能回答问题吗?
200分的问题,我的答案为什么还没有上交呢?都过了几天了 谢谢解决问题,还真是神速
200分的问题,我的答案为什么还没有上交呢?都过了几天了 我回答了这个问题 http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fzhidao.baidu.com%2Fquestion%2F108154496.html&urlrefer=7bca30e01338851e20ff46298b45ca5c 我辛苦打了很多字的, ……
想改变提问的分类怎么办
1
下一页