标签: command-line

关于javac

javac不是内部或外部命令错误即将到来.我已经设定了路径.然后它也给出了同样的错误.

java windows command-line

-1
推荐指数
1
解决办法
133
查看次数

在php文件中声明一个接口,然后是一个实现它的类错误

我收到255错误,无法解决原因

<?php

print "1 \n";
$a = new myClass("a");
print "2 \n";



interface Interabc
{
    public function test($item);
}

class myClass implements Interabc
{
    public function test($item)
    {
        print "test";
    }
}
Run Code Online (Sandbox Code Playgroud)

我得到的输出是:

1 

Process finished with exit code 255
Run Code Online (Sandbox Code Playgroud)

所有代码都是一个文件.我是从命令行调用它.

php command-line

-1
推荐指数
1
解决办法
38
查看次数

在php中生成证书请求

我有一张这样的桌子

<table  width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr> 
            <td class="TitleBar">Generate CSR</td>
            </tr>
        </table>
     <table  cellspacing="0" border="0" width="100%">

         <tr>               
            <td>Country Name(only two letters) :</td>
            <td >
            <input name="countryname" type="text"  id="countryname" MaxLength="2"/>
            </td>
        </tr>  
        <tr>                
            <td>State or Province Name :</td>
            <td> 
            <input name="province" type="text" id="province"/>
            </td>
         </tr>
         <tr>               
        <td>Locality Name :</td>
            <td >
            <input name="localityname" type="text"  id="localityname"/>
            </td>
        <tr>                
        <td>Organization Name :</td>
            <td> 
            <input name="organizationname" type="text" class="style16" id="organizationname"/>
            </td>
         </tr> 
         <tr>           
         <td>Organizational Unit Name :</td>
                <td > 
                <input name="organizationunit" type="text" id="organizationunit"/>
                </td>
         </tr> …
Run Code Online (Sandbox Code Playgroud)

php ssl command-line system function

-1
推荐指数
1
解决办法
3443
查看次数

如何使用VC++ 2008从Windows上的命令行编译C++文件?

我很想找到一种.cpp从Windows命令提示符编译文件的方法.有没有办法使用Visual Studio?我唯一的编译器是VC++ 2008.那么我可以将VC++定义为我的系统编译器吗?

command-line visual-c++

-1
推荐指数
1
解决办法
540
查看次数

在批处理文件中传递c#命令行参数

我已经构建了ac#代码,它基本上需要四个参数a1 a2 a3 a4.我正在尝试创建一个批处理文件,以便用户可以输入他的参数和代码给出特定的输出.我不知道如何将这些参数发送到批处理文件.我尝试创建exe但它似乎不起作用.

c# command-line batch-file command-line-arguments

-1
推荐指数
1
解决办法
2644
查看次数

Vim如何删除副本上的行号

当我在ssh术语上使用vim复制行时,我总是有行号:

 1 <?php
 2 echo "test";
 3
Run Code Online (Sandbox Code Playgroud)

我尝试过很多东西:

set mouse=a
set mousehide
set pastetoggle=
Run Code Online (Sandbox Code Playgroud)

我进入视觉模式它没有突出显示行号但我无法复制.

每次我想要复制一些内容时,我不想取消设置数字并再次设置;)

脚本是否存在?像autocmd或类似的东西?

我在Mac Os X上,但是我使用vim而不是ssh(-clipboard).

请注意,它不是重复的:如何在复制时清除Vim中的行号?

所以这是一个重复:在Mac的终端内滚动Vim

如果版主可以(重新)链接吗?

vim command-line copy line-numbers

-1
推荐指数
1
解决办法
8534
查看次数

如何运行(和编译)带有gcc参数的C文件?

我认为这是一个非常简单的问题,但我对命令行的经验较少.我有一个我想要运行的旧C程序.它显示以下文本:

/*      This is a stand-alone program intended to generate ...  It is called*/
/*      as follows:                                                         */
/*                                                                          */
/*          tw_r2fft N > outputfile.c                                       */ 
/*      This program will generate the ... array 'w'                        */
/*      and output the result to the display.  Redirect the                 */
/*      output to a file as shown above.                                    */
Run Code Online (Sandbox Code Playgroud)

我试过(在cmd中):

gcc tw_r2fft.c 1024 > outputfile.c
Run Code Online (Sandbox Code Playgroud)

gcc的错误消息是:

gcc: 1024: No such file or directory
Run Code Online (Sandbox Code Playgroud)

我尝试了一些变化但没有成功.

c command-line gcc

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

使用Java命令行读取用户输入

我是Java新手,我编写了一个程序来接受用户的一些值并进行一些操作,但是我收到了一个错误,我不知道出了什么问题.

这是我的代码:

    import java.util.Scanner;

    public class Computronix{

    public static void main(String[]args){

    Scanner input = new Scanner(System.in);

    int order;
    double total;
    double s_cost=1200000;
    double l_cost=900000;
    System.out.println("Enter number of laptop you need to purchase");
    order = input.nextInt();

        if(order<=0){
            System.out.println("Please Order one laptop or more ");
        }
        elseif(order>0 && order<25){
            total = order*s_cost;
            System.out.println("The total cost is "+ total);

        }
        elseif(order>=25){
            total = order*l_cost;
            System.out.println("The total cost is "+ total);
        }   

    }

}
Run Code Online (Sandbox Code Playgroud)

这是我得到的错误:

**C:\Users\Internally-root\Desktop\helow>javac Computronix.java
Computronix.java:17: error: ';' expected
            elseif(order>0 && order<25){ …
Run Code Online (Sandbox Code Playgroud)

java command-line

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

新行命令("\n")在读取文件时不起作用(Android)java

      String mystring="Hello"+"\n"+ "World" ;

        writeToFile(mystring);
        String newstring = readFromFile();
        mytextview.setText(newstring);
Run Code Online (Sandbox Code Playgroud)

我的文本视图只显示没有换行符的"HelloWorld"

我无法理解为什么它不承认"\n"

这些是我的writetofile和readfromfile函数;

private void writeToFile(String data) {
         try {
         OutputStreamWriter outputStreamWriter = new OutputStreamWriter(openFileOutput("myfilename", Context.MODE_PRIVATE));
         outputStreamWriter.write(data);
         outputStreamWriter.close();
         }
         catch (IOException e) {
        // Log.e(TAG, "File write failed: " + e.toString());
         }
         }


    //////////////////////////////////////////////////
    private String readFromFile() {
         String ret = "";

         try {
         InputStream inputStream = openFileInput("myfilename");

         if ( inputStream != null ) {
         InputStreamReader inputStreamReader = new InputStreamReader(inputStream);
         BufferedReader bufferedReader = new BufferedReader(inputStreamReader);
         String receiveString = "";
         StringBuilder …
Run Code Online (Sandbox Code Playgroud)

java string command-line android file

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

Java:如何从命令行读取选项,如-input或-h?

现在搜索一下......我不想使用特殊的解析器,只是内置方法.

问题是我想以-i=something简单的方式阅读选项.然后 - 在脚本中 - 我可以像args[i]这样调用这些选项.

有什么办法吗?谢谢

编辑:示例

命令行: java scriptname -write="test"

脚本: System.out.println(args[write]);

输出: test

java command-line parsing

-1
推荐指数
1
解决办法
1008
查看次数