源代码c语言代码(在线)

源代码  时间:2021-08-03  阅读:()

谁知道新版《源代码》那个电影在哪里可以在线观看。

  • 源代码/源码/启动原始码/危机解密高清版
  • 主演: 杰克·吉伦哈尔 Jake Gyllenhaal
  • 类型:科幻片
  • 地区:美国
  • 语言:中文字幕
  • /kh/yuandaima_yuanma_qidongyuanshima_weijijiemi/

    姓名数字代码在线查询

    在线查询: /sweb/detail.jsp?sid=ATqqmcqxFMXxnTCRUkdau7qg&g_ut=1&pos=1&level=2&url=%2F%25CA%25B3%25C6%25B7%25BF%25C6%25D1%25A7%2Fblog%2Fitem%2F125a942538947d6135a80f2f.html

    [100分] 高分求 用java写的视频播放器 源代码~在线等 好的话马上给分

    不全~代码发不了了~,剩下的是播放器的关闭以及播放格式的支持与否,不麻烦的自己写吧 MediaPlayer.java ---------------------------------------------------------------------------- //程序主文件 import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.media.*; import java.io.*; import java.util.*;//为了导入Vector //.sun.java.swing.plaf.windows.*; public class MediaPlayer extends JFrame implements ActionListener,Runnable { private JMenuBar bar;//菜单条 private JMenu fileMenu,choiceMenu,aboutMenu; private JMenuItem openItem,openDirItem,closeItem,about,infor; private JCheckBoxMenuItem onTop; private boolean =false,loop;//设定窗口是否在最前面 private Player player;//Play是个实现Controller的接口 private File file,listFile;//利用File类结合JFileChooser进行文件打开操作,后则与list.ini有关 private Container c; //private UIManager.LookAndFeelInfo[] look; private String title,listIniAddress;//标题 private FileDialog fd; private JPanel panel,panelSouth; private Icon icon; //开始进入的时候要显示的图标,它为抽象类,不能自己创建 private JLabel label,listB;//用来显示图标 private JList list;//播放清单 private JScrollPane scroll;//使播放清单具有滚动功能 private ListValues listWriteFile;//用于向文件中读取对象 private ObjectInputStream input;//对象输入流 private ObjectOutputStream output;//对象输出流 private JPopupMenu popupMenu;//鼠标右键弹出菜单 private JMenuItem del,delAll,reName; //弹出菜单显示的菜单项,包括删除,全部删除和重命名 private Vector fileName,dirName,numList; private String files,dir; private int index;//曲目指针 private Properties prop;//获得系统属性 private int indexForDel;//标志要删除的列表项目的索引 private ButtonGroup buttonGroup;//控制按钮组 private JRadioButtonMenuItem[] buttonValues; private String[] content={"随机播放","顺序播放","单曲循环"}; private DialogDemo dialog1; //private JDialogTest dialog2;//用于显示播放清单 MediaPlayer()//构造函数 { super("java音频播放器1.1版");//窗口标题 c=getContentPane(); c.setLayout(new BorderLayout()); //c.setBackground(new Color(40,40,95)); fileName=new Vector(1); dirName=new Vector(1); numList=new Vector(1);//构造三个容器用于支持播放清单 //vectorToString=new String[]; //prop=new Properties(System.getProperties()); //listIniAddress=prop.getProperty("user.dir")+"\list.ini"; //listFile=new File(listIniAddress);//本来这些代码用来取的系统属性,后来 //发现根本就不用这么麻烦 listFile=new File("list.ini");//直接存于此目录 Thread readToList=new Thread(this);//注意编线程程序的时候要注意运行的时候含有的变量亿定义或者初始化, //这就要求线程要等上述所说的情况下再运行,否则很容易发生错误或则异常 list=new JList(); list.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); list.setSelectionForeground(new Color(0,150,150)); list.setVisibleRowCount(10); list.setFixedCellHeight(12); list.setFixedCellWidth(250); list.setFont(new Font("Serif",Font.PLAIN,12)); list.setBackground(new Color(40,40,95)); list.setForeground(new Color(0,128,255)); //list.setOpaque(false); list.setToolTipText("点右键显示更多功能");//创建播放清单并设置各个属性 list.addMouseListener(new MouseAdapter() { public void mouseClicked(MouseEvent e) { if (e.getClickCount() == 2) //判断是否双击 { index = list.locationToIndex(e.getPoint());//将鼠标坐标转化成list中的选项指针 createPlayer2(); //System.out.println("Double clicked on Item " + index);,此是测试的时候加的 } } /* public void mousePressed(MouseEvent e) { checkMenu(e);//自定义函数,判断是否是右键,来决定是否显示菜单 }*/ public void mouseReleased(MouseEvent e) { checkMenu(e);//与上面的一样,判断是否鼠标右键 } } ); //listB=new JLabel(new ImageIcon("qingdan.gif"),SwingConstants.CENTER); scroll=new JScrollPane(list);//用于存放播放列表 //dialog2=new JDialogTest(MediaPlayer.this,"播放清单",scroll); //dialog2.setVisible(true); readToList.start();//启动先程,加载播放列表 try { Thread.sleep(10); } catch(InterruptedException e) { e.printStackTrace(); } /*look=UIManager.getInstalledLookAndFeels(); try { UIManager.setLookAndFeel(look[2].getClassName()); SwingUtilities.updateComponentTreeUI(this); } catch(Exception e) { e.printStackTrace(); }*///与下面的代码实现相同的功能,但执行速度要慢,原因:明显转了个大弯 /*try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch(Exception e) { e.printStackTrace(); } *///此段代码使执行速度大大降低 bar=new JMenuBar(); setJMenuBar(bar);//此两行创建菜单栏并放到此窗口程序 //bar.setBackground(new Color(48,91,183)); fileMenu=new JMenu("文件"); bar.add(fileMenu); choiceMenu=new JMenu("控制"); bar.add(choiceMenu); aboutMenu=new JMenu("帮助"); bar.add(aboutMenu); openItem =new JMenuItem("打开文件"); openDirItem =new JMenuItem("打开目录"); closeItem =new JMenuItem("退出程序"); openItem.addActionListener(this); openDirItem.addActionListener(this); closeItem.addActionListener(this); fileMenu.add(openItem); fileMenu.add(openDirItem); fileMenu.add(closeItem); onTop=new JCheckBoxMenuItem("播放时位于最前面"); choiceMenu.add(onTop); onTop.addItemListener(new ItemListener() { public void itemStateChanged(ItemEvent e) { if(onTop.isSelected()) =true; =false; ); } } ); choiceMenu.addSeparator();//加分割符号 buttonGroup=new ButtonGroup(); buttonValues=new JRadioButtonMenuItem[3]; for(int bt=0;bt<3;bt++) { buttonValues[bt]=new JRadioButtonMenuItem(content[bt]); buttonGroup.add(buttonValues[bt]); choiceMenu.add(buttonValues[bt]); } buttonValues[0].setSelected(true); choiceMenu.addSeparator(); /*loopItem=new JCheckBoxMenuItem("是否循环"); choiceMenu.add(loopItem); loopItem.addItemListener(new ItemListener() { public void itemStateChanged(ItemEvent e) { loop=!loop; } } );*/ infor=new JMenuItem("软件简介"); aboutMenu.add(infor); infor.addActionListener(this); about=new JMenuItem("关于作者"); about.addActionListener(this); aboutMenu.add(about); //菜单栏设置完毕 panel=new JPanel(); panel.setLayout(new BorderLayout()); c.add(panel,BorderLayout.CENTER); panelSouth=new JPanel(); panelSouth.setLayout(new BorderLayout()); c.add(panelSouth,BorderLayout.SOUTH); icon=new ImageIcon("icon\Player.jpg"); label=new JLabel(icon); panel.add(label); popupMenu=new JPopupMenu(); del =new JMenuItem("删除");//鼠标右键弹出菜单对象实例化 popupMenu.add(del); del.addActionListener(this); delAll =new JMenuItem("全部删除"); popupMenu.add(delAll); delAll.addActionListener(this); reName =new JMenuItem("重命名"); popupMenu.add(reName); reName.addActionListener(this); scroll=new JScrollPane(list);//用于存放播放列表 listB=new JLabel(new ImageIcon("icon\qingdan.gif"),SwingConstants.CENTER); panelSouth.add(listB,BorderLayout.NORTH); panelSouth.add(scroll,BorderLayout.CENTER); dialog1=new DialogDemo(MediaPlayer.this,"软件说明"); this.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);//设定窗口关闭方式 //this.setTitle("d");编译通过,说明可以再次设定标题 this.setLocation(400,250);//设定窗口出现的位置 //this.setSize(350,320);//窗口大小 setSize(350,330); this.setResizable(false);//设置播放器不能随便调大小 this.setVisible(true);//此句不可少,否则窗口会不显示 } public void actionPerformed(ActionEvent e) { if(e.getSource()==openItem)//getSource()判断发生时间的组键 { //System.out.println("d");测试用 openFile(); //createPlayer(); //setTitle(title); } if(e.getSource()==openDirItem)//打开目录 { openDir(); } if(e.getSource()==closeItem)//推出播放器 { exity_n(); //System.exit(0); } if(e.getSource()==about) { JOptionPane.showMessageDialog(this,"此简易播放器由计科0302 " +"harly "+" 完成 ", "参与者", JOptionPane.INFORMATION_MESSAGE); } if(e.getSource()==del) { //index //delPaintList(index); fileName.removeElementAt(indexForDel); dirName.removeElementAt(indexForDel); numList.removeAllElements();//从三个容器里面移除此项 Enumeration enumFile=fileName.elements(); while(enumFile.hasMoreElements()) { numList.addElement((numList.size()+1)+"."+enumFile.nextElement()); //numList添加元素,显示播放里表中 } //list.setListData(fileName); list.setListData(numList); if(index<indexForDel) list.setSelectedValue(numList.elementAt(index),true); else { if(index==indexForDel); else if(index!=0) list.setSelectedValue(numList.elementAt(index-1),true); } //list.setSelectedIndex(index); } if(e.getSource()==delAll)//全部删除 { fileName.removeAllElements(); dirName.removeAllElements(); numList.removeAllElements(); list.setListData(numList); } if(e.getSource()==reName)//重命名 { String name;//=JOptionPane.showInputDialog(this,"请输入新的名字"); try { name=reNames(); fileName.setElementAt(name,indexForDel); numList.setElementAt((indexForDel+1)+"."+name,indexForDel); } catch(ReName e2)//自定义的异常 { } } if(e.getSource()==infor) { dialog1.setVisible(true); } } public static void main(String[] args) { final MediaPlayer mp=new MediaPlayer(); mp.setIconImage(new ImageIcon("icon\mPlayer.jpg").getImage());//改变默认图标 mp.addWindowListener(new WindowAdapter()//注册窗口事件 { public void windowClosing(WindowEvent e) { //System.exit(0); mp.exity_n(); } } ); System.out.println("注意:更新文件列表后,请先正常关闭播放器" +" 然后再关闭此DOS窗口,否则导致播放列表不能保存!!"); } private void openFile()//为了界面原因,此代码重写,估计兼容性不好了 { /*JFileChooser fileChooser=new JFileChooser();//文件选择器 fileChooser.setFileSelectionMode(JFileChooser.FILES_ONLY);//可以选择文件不能目录 int result=fileChooser.showOpenDialog(this);//创建文件打开对话框,并设定此程序为父窗口监控*/ /*通过result的值来判断文件是否打开成功 *JFileChooser类有很多静态成员变量 **/ /*if(result==JFileChooser.CANCEL_OPTION) { file=null;//file已经在类中定义,如果选择取消,file指向为空 } else { file=fileChooser.getSelectedFile();//获得文件对象 title=file.getAbsolutePath();//取得文件的绝对路径并且赋给title设定标题 }*/ //if(fd==null) //{ //String filename="java音频播放器"; fd = new FileDialog(MediaPlayer.this); //Filters fl=new Filters(); //fd.setFilenameFilter(fl); fd.setVisible(true); if (fd.getFile() != null) { title = fd.getDirectory() + fd.getFile();//原因请见同目录下的FileDialogDemo.java文件 files=fd.getFile(); //dir =fd.getDirectory(); file=new File(title); createPlayer(); } //title=filename; //fd=null;//缺少此句如果第一次打开文件的时候取消操作的时候第二次也不能打开文件了 //} } private void openDir() { JFileChooser fileChooser=new JFileChooser(); fileChooser.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); int result=fileChooser.showOpenDialog(MediaPlayer.this); if(result==JFileChooser.CANCEL_OPTION) return; file=fileChooser.getSelectedFile(); if(file==null||file.getName().equals("")) JOptionPane.showMessageDialog(this,"错误的路径", "出错了",JOptionPane.ERROR_MESSAGE); String[] sFiles=file.list(); for(int i=0;i<sFiles.length;i++) { fileName.addElement(sFiles[i]); numList.addElement((numList.size()+1)+"."+sFiles[i]); dirName.addElement(file.getAbsolutePath()+"\"+sFiles[i]); } list.setListData(numList); /*fd=new FileDialog(MediaPlayer.this); fd.setVisible(true); if(fd.getDirectory()!=null) { File fileDir=new File(fd.getDirectory()); String[] ss=fileDir.list(); for(int i=0;i<ss.length;i++) { System.out.println(ss[i]); } }*/ }

    c语言代码(在线)

    这个程序我见过!地址如下。

    程序是没有任何问题的。

    do..while只是为了提高程序的判断验错能力。

    给你解释一下: void insert() { int i=n,j,g; //这里n是全局变量,它记录了总学生数 printf("input number: "); //这里是提示要插入(增加的人数),比如要增加10个学生,输入10,只增加1个学生就输入1,这个概念要清楚 scanf("%d",&m); do { g=1; while(g) { g=0; printf("iuput %dth telephone: ",i+1); //提示输入,提示你输入第n+1个学生的数据 scanf("%s",phon[i].tel); for(j=0;j<i;j++) if(strcmp(phon[i].tel,phon[j].tel)==0) //对字符串不能直接比较故用字符串比较函数strcmp()判断 { printf("that have ,please input again! "); //相等则说明输入重复,有重复立即退出该层循环并要求重新输入 g=1; break; //如有重复立即退出该层循环 } } printf("input %dth name: ",i+1); scanf("%s",phon[i].name); printf("input %dth address: ",i+1); scanf("%s",phon[i].add); printf("input %dth telephone: ",i+1); scanf("%s",phon[i].tel); printf("input %dth E-mail: ",i+1); scanf("%s",phon[i].mail); if(g==0) //如果g==0,说明输入正确(也就是无重复),那么i加1表示实际人数加1 { i=i; //这句去掉,多余无用 i++; } }while(i<n+m); //当输入的总人数小于m时继续输入 n+=m; //输入完成后总学生数为n+m,把这个数字保存到全局变量中供排序函数等其他函数调用 printf(&plate. "); } 再说明一点,这里新增加的学生,或者是改动学生的数据都只是保存在内存中,并没有真正写入到硬盘的文件tonxunlu.dat中,所以要把结果保存到文件中,退出程序时必须调用功能模块save()函数将内存中的有关数据(包括增加和改动后的)全部写入到文件tonxunlu.dat中。

    这一点源程序已经说明得很清楚。

    当然如果你不想在退出前执行save()函数模块,可以在insert()函数中的最下面调用该save()函数也可以,也就是: void insert() { ...... n+=m; save();//这里 printf(&plete. ");//此单词写错 }

    RAKsmart 2021新年新增韩国服务器及香港美国日本VPS半价

    RAKsmart 商家我们肯定不算陌生,目前主要的营销客户群肯定是我们。于是在去年的时候有新增很多很多的机房,比如也有测试过的日本、香港、美国机房,这不今年有新增韩国机房(记得去年是不是也有增加过)。且如果没有记错的话,之前VPS主机也有一次磁盘故障的问题。 这不今天有看到商家新增韩国服务器产品,当然目前我还不清楚商家韩国服务器的线路和速度情况,后面我搞一台测试机进行...

    统计一下racknerd正在卖的超便宜VPS,值得推荐的便宜美国VPS

    racknerd从成立到现在发展是相当迅速,用最低的价格霸占了大部分低端便宜vps市场,虽然VPS价格便宜,但是VPS的质量和服务一点儿都不拉跨,服务器稳定、性能给力,尤其是售后方面时间短技术解决能力强,估计这也是racknerd这个品牌能如此成功的原因吧! 官方网站:https://www.racknerd.com 多种加密数字货币、信用卡、PayPal、支付宝、银联、webmoney,可...

    飞讯云E5-2678V3 64GB,湖北十堰100G高防物理机330元/月

    飞讯云官网“飞讯云”是湖北飞讯网络有限公司旗下的云计算服务品牌,专注为个人开发者用户、中小型、大型企业用户提供一站式核心网络云端部署服务,促使用户云端部署化简为零,轻松快捷运用云计算。飞讯云是国内为数不多具有ISP/IDC双资质的专业云计算服务商,同时持有系统软件著作权证书、CNNIC地址分配联盟成员证书,通过了ISO27001信息安全管理体系国际认证、ISO9001质量保证体系国际认证。 《中华...

    源代码为你推荐
    1头牛168万人民币一个人650元买头牛?00元卖出;850元又买回来;900元卖出;问是亏还是赚公司网络被攻击公司的一个员工手机中病毒了,今天公司网络被攻击大家的手机都上不了网,说是有人在扫描我们的无线网,lunwenjiance论文检测,知网的是32.4%,改了以后,维普的是29.23%。如果再到知网查,会不会超过呢?www.99cycy.com谁在这个http://www.sifangmall.com网站上买过东西?www.bbb336.comwww.zzfyx.com大家感觉这个网站咋样,给俺看看呀。多提意见哦。哈哈。www.kk4kk.com猪猪影院www.mlzz.com 最新电影收费吗?www.zjs.com.cn怎么查询我的平安信用卡寄送情况广告法新修订的《广告法》有哪些内容www.ijinshan.com桌面上多了一个IE图标,打开后就链接到009dh.com这个网站,这个图标怎么删掉啊?m.yushuwu.org花样滑冰名将YU NA KIM的资料谁有?
    备案域名 域名城 电信服务器租用 服务器配置技术网 漂亮qq空间 便宜域名 koss 美国主机代购 搜狗抢票助手 css样式大全 howfile 域名评估 网站在线扫描 网通服务器 photobucket 注册阿里云邮箱 购买空间 国外网页代理 国外免费云空间 免备案cdn加速 更多