为什么我的过程变成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 aboutscanner.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 include doesn't work as it should)[2021-12-07]
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 ...
-
htaccess从文件夹内的所有文件将.html更改为.php(htaccess change .html to .php from all files inside folder)[2023-01-05]
用这个。 我测试了它,它的工作原理。 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包含不起作用(The PHP include is not working)[2022-05-13]
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 ...