pipe串口软件,用piped.exe可以配合虚拟机本地打印串口信息
2022-05-11 18:02:21 76KB pipe
1
卡耐基梅陇的SSD课程答案 import java.io.*; import java.util.*; /* DOCUMENT THIS CLASS */ public class ShoppingCartApplication { private static BufferedReader stdIn = new BufferedReader( new InputStreamReader(System.in)); private static PrintWriter stdOut = new PrintWriter(System.out, true); private static PrintWriter stdErr = new PrintWriter(System.err, true); private ShoppingCart cart; /* DOCUMENT THIS PUBLIC METHOD */ public static void main(String[] args) throws IOException { ShoppingCartApplication application = new ShoppingCartApplication(); application.run(); } private void run() throws IOException { cart = new ShoppingCart(); int choice = getChoice(); while (choice != 0) { if (choice == 1) { cart.addProduct(readProduct()); } else if (choice == 2) { stdOut.println(cart.toString()); } else if (choice == 3) { stdOut.println(cart.getTotalValue()); } choice = getChoice(); } } private int getChoice() throws IOException { do { int input; try { stdErr.println(); stdErr.print("[0] Quit\n" + "[1] Add Product\n" + "[2] Display Products\n" + "[3] Display Total\n" + "choice>"); stdErr.flush(); input = Integer.parseInt(stdIn.readLine()); if (0 <= input && 3 >= input) { return input; } else { stdErr.println("Invalid choice: " + input); } } catch (NumberFormatException nfe) { stdErr.println(nfe); } } while (true); } private Product readProduct() throws IOException { final String DELIM = "_"; String name = ""; int quantity = 0; double price = 0.0; /* PLACE YOUR CODE HERE */ for (;;) { try { stdErr.print("product [name_qty_price]> "); stdErr.flush(); String s = stdIn.readLine(); StringTokenizer st = new StringTokenizer(s, DELIM); if (st.countTokens() != 3) { stdErr.println("Invalid input"); } else { name = st.nextToken(); quantity = Integer.parseInt(st.nextToken()); price = Double.parseDouble(st.nextToken()); if ((quantity >= 0) && (price >= 0.0D)) { return new Product(name, quantity, price); } stdErr.println("Invalid input"); } } catch (NumberFormatException iae) { stdErr.println(iae); } } } }
2022-04-24 21:43:28 1.9MB ssd3答案 exe1 exe2 exe3
1
先指路径,打开 ProjectGroup_xe10 ,不要编译 直接安装
2021-11-27 18:36:37 9.14MB RMhineXE10
1
剑鸣之妻一
2021-10-22 09:00:41 358.98MB oracle
1
免费提供Oracle 11g xe版本,如有时间麻烦给博主博文点赞,谢谢! OracleXE112_Win64.zip
2021-10-13 13:06:13 316.55MB OracleXE
1
Oracle XE 11.2版,类似于MS SQL server Express 版本,用于实验的
2021-08-30 21:30:06 312.18MB OracleXE
1
reportmachine for delphi xe10.3.1报表打印控件 通过代码修改后,rm完全支持delphi xe10.3.1 并经过测试成功。内有中文说明,但也需要一定Delphi基础
2021-08-24 14:48:39 8.73MB reportmachine delphi xe10.3.1 rm
1
文件比对、拷贝台方便
2021-08-11 10:02:48 2.22MB 工具
1
oracleXE11g数据库安装包windowsX64免费下载,请笑纳。 Oracle Database Express Edition (XE) is a community supported edition of the Oracle Database family. Please go to the Oracle Database XE Community Support Forum for help, feedback, and enhancement requests.
2021-08-04 11:41:28 316.55MB oracleXE11g安装包
1
111111111111111111111111111
2021-04-29 20:00:37 19.34MB windows 10 服务网格
1