问题列表 - 第10537页

在Erlang,我什么时候使用; 或者,或.?

我一直在努力学习Erlang,并且遇到了函数和case语句中的结尾行的一些问题.

也就是说,我什么时候在我的函数或case语句中使用分号,逗号或句点?

我已经有了工作的东西,但我真的不明白为什么,并且正在寻找更多的信息.

erlang punctuation

47
推荐指数
3
解决办法
8302
查看次数

使用VBA永久删除Outlook中的MailMessage?

我正在寻找一种方法来永久删除带有VBA代码的Outlook 2000中的MailMessage.我想这样做,而不必做第二个循环来清空已删除的项目.

本质上,我正在寻找一个等同于点击消息和点击SHIFT+ 的UI方法的代码DELETE.

有这样的事吗?

outlook vba message outlook-vba

8
推荐指数
1
解决办法
2万
查看次数

Flex:有没有人知道一个好的HTML编辑器?

我正在寻找一个可以让我用图像编辑富文本的flex组件.

来自flex的RichTextEditor,除了它允许你添加和预览图像,也可以生成HTML代码.

html apache-flex adobe rich-text-editor

4
推荐指数
1
解决办法
5071
查看次数

C#中的文件记录器

我正在寻找一个.net类来处理将各种信息记录到文件中.记录器应具有时间戳,记录数据的类别(能够区分通知和错误),错误的严重性级别,以及能够在日志文件超过特定大小后拆分日志文件.

.net c# logging file

4
推荐指数
3
解决办法
7426
查看次数

使用row_number()时可以依赖输出顺序吗?

我相信答案是否定的.我正在寻找一个反例来证明输出顺序不能保证,没有order by子句.

考虑:

create table #order (orderId int primary key clustered
    , customerId int not null -- references customer(customerId)
    , orderDateTIme datetime not null)

insert into #order values (1, 100, '2009-01-01')
insert into #order values (2, 101, '2009-01-02')
insert into #order values (3, 102, '2009-01-03')
insert into #order values (4, 103, '2009-01-04')
insert into #order values (5, 100, '2009-01-05')
insert into #order values (6, 101, '2009-01-06')
insert into #order values (7, 101, '2009-01-07')
insert into #order …
Run Code Online (Sandbox Code Playgroud)

sql t-sql sql-server

3
推荐指数
1
解决办法
563
查看次数

如何使用公式的输出替换单元格中的公式?

如何使用公式的输出替换单元格中的公式?

我只需要"=右(E86,LEN(E86)+ 1-FIND("(",E86,1))"成为"(e)"

有没有办法对整张表格执行此操作?用公式显示的公式替换所有单元格?我使用的是2003版.

excel vba excel-2003 excel-vba

0
推荐指数
1
解决办法
1144
查看次数

捕获FFMPEG输出

我需要阅读ffmpeg的输出,以便从昨天开始尝试我的问题的解决方案.这是我问题的另一个问题,所以我提出了一个新问题.

我怎样才能从ffmpeg -iPHP中获取命令的输出?

这就是我一直在尝试的:

<?PHP
    error_reporting(E_ALL);
    $src = "/var/videos/video1.wmv";
    $command = "/usr/bin/ffmpeg -i " . $src;
    echo "<B>",$command,"</B><br/>";
    $command = escapeshellcmd($command);

    echo "backtick:<br/><pre>";
    `$command`;

    echo "</pre><br/>system:<br/><pre>";
    echo system($command);

    echo "</pre><br/>shell_exec:<br/><pre>";
    echo shell_exec($command);

    echo "</pre><br/>passthru:<br/><pre>";
    passthru($command);

    echo "</pre><br/>exec:<br/><pre>";
    $output = array();
    exec($command,$output,$status);
    foreach($output AS $o)
    {
            echo $o , "<br/>";
    }
    echo "</pre><br/>popen:<br/><pre>";
    $handle = popen($command,'r');
    echo fread($handle,1048576);
    pclose($handle);
    echo "</pre><br/>";
?>
Run Code Online (Sandbox Code Playgroud)

这是我的输出:

<B>/usr/bin/ffmpeg -i /var/videos/video1.wmv</B><br/>
backtick:<br/>
    <pre></pre><br/>
system:<br/>
    <pre></pre><br/>
shell_exec:<br/>
    <pre></pre><br/>
passthru:<br/>
    <pre></pre><br/>
exec:<br/> …
Run Code Online (Sandbox Code Playgroud)

php ffmpeg exec

10
推荐指数
2
解决办法
1万
查看次数

尝试在排序后保持年龄/名称对匹配

我正在编写一个程序,用户输入名称然后老化.然后程序按字母顺序对列表进行排序并输出对.但是,我不确定在按字母顺序排序之后如何保持年龄与名称相匹配.我到目前为止所有的一切都是......

编辑:将代码更改为此 -

#include "std_lib_facilities.h"

struct People{
       string name;
       int age;
};

int main()
{
    vector<People>nameage;
    cout << "Enter name then age until done. Press enter, 0, enter to continue.:\n";
    People name;
    People age;
    while(name != "0"){
                 cin >> name;
                 nameage.push_back(name);
                 cin >> age;
                 nameage.push_back(age);}
    vector<People>::iterator i = (nameage.end()-1);
    nameage.erase(i);    
}
Run Code Online (Sandbox Code Playgroud)

我得到了!=运算符和cin运算符的编译器错误.不知道该怎么办.

c++

2
推荐指数
2
解决办法
833
查看次数

未按预期返回CustomAttributes

我有一些看起来如下的东西:

[CoolnessFactor]
interface IThing {}

class Tester
{
    static void TestSomeInterfaceStuff<T>()
    {
        var attributes = from attribute 
                        in typeof(T).GetCustomAttributes(typeof(T), true)
                        where attributes == typeof(CoolnessFactorAttribute)
                        select attribute;
        //do some stuff here
    }
}
Run Code Online (Sandbox Code Playgroud)

然后我会这样称呼它:

TestSomeInterfaceStuff<IThing>();
Run Code Online (Sandbox Code Playgroud)

但是,当我这样做时,它根本不会返回任何属性.

思考?

c# attributes interface

0
推荐指数
1
解决办法
83
查看次数

数字范围0000到9999的正则表达式

我需要一个asp.net网站上的文本字段的正则表达式

应介于两者之间

0000至9999

它不是

0到9999

regex asp.net visual-studio-2008

2
推荐指数
3
解决办法
4481
查看次数