代码搜索:try
找到约 10,000 项符合「try」的源代码
代码结果 10,000
www.eeworm.com/read/342018/3240493
java pcfixed.java
class Q{
int n;
boolean valueSet=false;
synchronized int get(){
if(!valueSet)
try{
wait();
}
catch(InterruptedException e){
System.out.println("InterruptedException caught.")
www.eeworm.com/read/340896/3263500
java inputnum.java
package num;
import java.io.*;
public class InputNum{
private int i;
public int getnum(){
try{
InputStreamReader ir;
BufferedReader in;
ir=new InputStreamReader(System
www.eeworm.com/read/340896/3263636
java displaynum.java
import java.io.*;
class InputNum{
private int i;
public int getnum(){
try{
InputStreamReader ir;
BufferedReader in;
ir=new InputStreamReader(System.in);
//from key
www.eeworm.com/read/340665/3273515
c catch10.c
// Test that we notice unfortunate handler ordering.
struct A { };
struct B: public A { };
struct C: private A { };
void f();
void g()
{
try { f(); }
catch (...) { } // ERROR - ... followed by
www.eeworm.com/read/340665/3273953
c init7.c
// simplified from testcase in Windows Developer Journal,
// submitted by eyal.ben-david@aks.com
// The initialization of a static local variable must be retried if a
// previous try finished by thro
www.eeworm.com/read/340665/3276618
c eb66.c
#include
#include
int bar ()
{
throw 100;
}
int main ()
{
int i = 0;
try
{
i = bar ();
}
catch (...)
{
}
// std::cout
www.eeworm.com/read/340665/3280015
c 20020109-1.c
/* This testcase ICEd when 2 different successors of a basic block
were successfully threaded and try_forward_edges was not expecting
that. */
typedef struct A
{
struct A *s, *t;
unsigned
www.eeworm.com/read/339486/3299965
java testpaper.java
package org.mmxbb.exam.bean;
import java.io.Serializable;
public class TestPaper
implements Serializable {
public TestPaper() {
try {
jbInit();
} catch (Exception ex) {
www.eeworm.com/read/339444/3309189
java applicationinout.java
import java.io.*;
public class ApplicationInOut
{
public static void main(String args[])
{
String s="";
System.out.print("please enter a string:");
try
www.eeworm.com/read/339444/3309224
java ch3errorcorrect1.java
import java.io.*;
public class Ch3ErrorCorrect1
{
public static void main(String args[])
{
try
{
BufferedReader br = new BufferedReader(
n