pascal

How to play multiple .wav files simultaneously in delphi

僤鯓⒐⒋嵵緔 提交于 2019-12-18 17:55:24
问题 I wish to multiple .wav files simultaneously in delphi. When I open and plat the first things are fine. However the second one causes a error when it tries to open. It would appear that i can only use one media player at a time.... is there any way around this what do i do? 回答1: How would you play a single sound? When I want fine control, I use the waveOut functions, as in this answer. My answer there also allows you to play the sound using a thread (that is, among other things,

delphi mergesort for string arrays [closed]

ε祈祈猫儿з 提交于 2019-12-18 07:24:21
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . Found this coded mergesort on http://www.explainth.at/en/delphi/dsort.shtml (site down but try wayback machine or this site: http://read.pudn.com/downloads192/sourcecode/delphi_control/901147/Sorts.pas__.htm) but

论文翻译之Enriched Feature Guided Refinement Network for Object Detection

可紊 提交于 2019-12-18 06:33:34
摘要 我们提出了一个单阶段检测框架,该框架解决了多尺度目标检测和类不平衡的问题。我们没有设计更深层的网络,而是引入了一种简单而有效的特征丰富化方案来生成多尺度的上下文特征。我们进一步引入了一种级联的优化(精炼)方案,该方案首先将多尺度的上下文特征注入到一阶段检测器的预测层中,以增强其进行多尺度检测的判别能力。 其次,级联精炼方案通过细化锚(anchors)和丰富的特征以改善分类和回归来解决类不平衡问题。 实验在两个基准上执行:PASCAL VOC和MSCOCO。 对于MS COCO测试上的320×320输入,我们的检测器在单尺度推理的情况下以33.2的COCO AP达到了最先进的一阶段检测精度,操作是在一个Titan XP GPU上以21毫秒运行的 。 对于MS COCO测试上的512×512输入,与最佳报告的单阶段结果相比,就COCO AP而言,我们的方法获得了一个明显的增加(增加了1.6%)[5]。源代码和模型可在以下位置获得:https://github.com/Ranchentx/EFGRNet. 1. 介绍 目标检测是众多现实应用中的一个活跃的研究问题。 基于卷积神经网络(CNN)的现代目标检测方法可分为两类:(1)两阶段方法[33,23],以及(2)一阶段方法[27,32]。两阶段方法首先生成目标建议,然后对这些建议进行分类和回归

Does C++ have “with” keyword like Pascal?

元气小坏坏 提交于 2019-12-17 19:32:53
问题 with keyword in Pascal can be use to quick access the field of a record. Anybody knows if C++ has anything similar to that? Ex: I have a pointer with many fields and i don't want to type like this: if (pointer->field1) && (pointer->field2) && ... (pointer->fieldn) what I really want is something like this in C++: with (pointer) { if (field1) && (field2) && .......(fieldn) } 回答1: In C++, you can put code in a method of the class being reference by pointer . There you can directly reference the

What is wrong with my if-statement?

不羁岁月 提交于 2019-12-17 14:49:29
问题 I am now trying to explore pascal. And I ran into some compiler errors. I wrote a if else if statement like this: if ((input = 'y') or (input = 'Y')) then begin writeln ('blah blah'); end; else if ((input = 'n') or (input = 'N')) then begin writeln ('blah'); end; else begin writeln ('Input invalid!'); end; And it gives me an error at the first else : ";" expected but "ELSE" found I looked for a lot of tutorials about if statements and they just do it like me: if(boolean_expression 1)then S1 (

What is wrong with my if-statement?

 ̄綄美尐妖づ 提交于 2019-12-17 14:49:26
问题 I am now trying to explore pascal. And I ran into some compiler errors. I wrote a if else if statement like this: if ((input = 'y') or (input = 'Y')) then begin writeln ('blah blah'); end; else if ((input = 'n') or (input = 'N')) then begin writeln ('blah'); end; else begin writeln ('Input invalid!'); end; And it gives me an error at the first else : ";" expected but "ELSE" found I looked for a lot of tutorials about if statements and they just do it like me: if(boolean_expression 1)then S1 (

Screen recorder [closed]

喜欢而已 提交于 2019-12-17 02:24:18
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 26 days ago . I'm interested in a library(for windows) written in Delphi/Pascal or C++ that allows me to record(to a video format) desktop screen, requirements: must be able to specify the frame rate, or at least be able to record @ 5fps; must be open source or free; the output format could be almost any, but the quality must

pascal skips file whilst it is not empty

拈花ヽ惹草 提交于 2019-12-14 04:09:47
问题 I am trying to read some data from a txt file using pascal. When I use a while loop to keep doing actions whilst the file has not ended pascal ignores the while loop and proceeds to the end of my program. Don't really know why this is happening the file I am using is a .txt file which is most certainly not empty! Code beneath program Wiki_Lezen; {$mode objfpc} TYPE wikiNew=RECORD naam,omschrijving:string; END; var f: file of wikiNew; var bestandsNaam:string; var wiki:wikiNew; var teller

program stops after reading procedure (delphi)

帅比萌擦擦* 提交于 2019-12-14 03:14:26
问题 My program stops to read anymore lines and ends the program after this procedure like its 'end.' after it (but its not) : Procedure BubbleSort; var i, j : integer; begin for i := 0 to count - 1 do begin for j := count - 1 downto i do if (together[j] > together[j - 1]) then Swap(together[j - 1], together[j]); end; end; 回答1: I guess the problem is the out of bounds array access. You access index -1. Avoid this by changing the outer loop to: for i := 1 to count - 1 do begin I suggest that you

Does any dialect of Pascal allow a variable number of arguments?

会有一股神秘感。 提交于 2019-12-13 16:31:19
问题 This is a question for the older programmers. Years ago, I encountered a dialect of Pascal which allowed a variable number of arguments, through some kind of extension. Does anyone know of a current dialect of Pascal which allows a variable number of arguments? Given that Pascal is not as popular as it used to be, I wouldn't be surprised if the answer is no. BTW, it is more correct, isn't it, to say variable number of arguments , rather than parameters ? 回答1: No. The answer is based on the