首页 \ 问答 \ 为什么我的过程变成T(已终止)状态?(Why my process became T (Terminated)State ?)

为什么我的过程变成T(已终止)状态?(Why my process became T (Terminated)State ?)

一个简单的Java演示

public class Test {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    int number = scanner.nextInt();
    System.out.println(number);
  }
}

我编译了程序并运行它后台: java Test & ,但进程是终止状态并停止了,我只知道原因与scanner.nextInt()函数有关,但我不明白细节。


A simple Java demo

public class Test {
  public static void main(String[] args) {
    Scanner scanner = new Scanner(System.in);
    int number = scanner.nextInt();
    System.out.println(number);
  }
}

I compiled the program and run it background : java Test &, but the process was Terminated State and stopped, I just know the reason is related about scanner.nextInt() function, but I don't understand the details.


原文:https://stackoverflow.com/questions/47078266
更新时间:2023-09-19 09:09

最满意答案

尝试这个

ini_set( 'error_reporting', E_ALL );
ini_set( 'display_errors', true );

include './members/reg.php';

可能包括工作,但造成了沉默的错误。


Try this

ini_set( 'error_reporting', E_ALL );
ini_set( 'display_errors', true );

include './members/reg.php';

Possibly the include worked but caused a silenced error.

相关问答

更多
  • 您的代码有两个问题,首先是在gruntfile中指定了错误的路径,第二个在您的html上指定了错误的源代码。 让我们按照你的grunt文件中的部分进行操作: ... includeSource: { options: { basePath: 'app/file1.js' }, ... docs上的basepath选项说: 类型:字符串或数组[String]默认值:'' 扩展文件时使用的基本路径。 可以是支持从多个路径扩展文件的阵列。 这允许我们做的是将一个或多个路径作为我们 ...
  • php/ 是一个相对路径,并使用当前目录作为起点 ./php/ 是一个相对路径,并显式声明当前目录( 。 )作为起点 /php/ 是一个不相对的路径,这意味着它的起点是顶级目录(根目录/ ) php/ is a relative path and uses the current directory as a starting point ./php/ is a relative path and explicitly declares the current directory (.) as a ...
  • ctools_include()加载了dropdown.theme.inc文件,我们知道,因为否则,调用theme_ctools_dropdown()会因调用未定义函数而导致致命错误。 theme_ctools_dropdown()本身无条件地添加所需的dropdown.js和dropdown.css文件。 所以我相信你的代码永远不会在这些页面上被调用(即不会显示块)。 为了证明这一点,挤进drupal_set_message('Hello world'); 你的hook_block_view()某个地方, ...
  • 你试过这种方式吗? 只有成功地能够包含wrapper.php,这才能完美地工作。 Have you tried this way? This will work perfectly onl ...
  • 其次,根据MSDN关于FindFirstFile函数: “在目录中搜索名称与特定名称匹配的文件或子目录(如果使用通配符,则搜索部分名称)。” 我在输入字符串中看不到通配符,所以我只能猜测FindFirstFile会在当前执行目录中查找名为"folder"的文件。 尝试寻找"folder\\*" 。 Secondly, according to MSDN about the FindFirstFile function: "Searches a directory for a file or subdirec ...
  • 用这个。 我测试了它,它的工作原理。 RewriteEngine on RewriteBase / RewriteCond %{THE_REQUEST} folder1/folder2/(.*)\.php RewriteRule ^(.*)\.php $1.html [R=301,L] RewriteCond %{THE_REQUEST} folder1/folder2/(.*)\.html RewriteRule ^(.*)\.html $1.php [L] 编辑:忘记仅添加特定文 ...
  • @ShrimpCrackers, 通常建议您通过将示例代码之一复制到项目中,然后将项目属性设置为wx-config --cxxflags和wx-config --libs的输出来启动您的项目。 所以你应该做的是将wxWidgets / samples / minimal / minimal.cpp复制到你投影的目录中,修复项目属性并重新编译。 顺便说一句,你不必做make install 。 您可能想要在一台机器上编译库的调试版本和发行版本,这会破坏安装目的。 您只需使用该库的编译版本 @ShrimpCra ...
  • 尝试这个 ini_set( 'error_reporting', E_ALL ); ini_set( 'display_errors', true ); include './members/reg.php'; 可能包括工作,但造成了沉默的错误。 Try this ini_set( 'error_reporting', E_ALL ); ini_set( 'display_errors', true ); include './members/reg.php'; Possibly the inclu ...
  • 解决了! 我忘了在php.ini文件中包含ZendFramework库的路径。 这就是我所拥有的:include_path =“.; C:\ xampp \ htdocs \ pear; C:\ xampp \ php \ PEAR” 这就是它工作所需的:include_path =“.; C:\ xampp \ htdocs \ pear; C:\ xampp \ php \ PEAR; C:\ zend \ ZendFramework-1.11.11 \ library” 问候! Solved! I f ...
  • PHP可能找不到要包含的文件。 您确定文件夹'includes'与index.php在同一目录中吗? 另外,我建议在开始时使用带有斜杠的“** / ** includes / ...”以确保它从根目录中搜索包含的文件,而不是从index.php的相对路径中搜索。 此外,你的根不应该是WAMP中的C:\ wamp \ www \吗? It is likely that PHP does not find the files to be included. Are you sure the folder 'in ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。