2.1Compiling the exampleTo compile the example, we use scalac, the Sca การแปล - 2.1Compiling the exampleTo compile the example, we use scalac, the Sca ไทย วิธีการพูด

2.1Compiling the exampleTo compile

2.1Compiling the example
To compile the example, we use scalac, the Scala compiler. scalac works like most
compilers: it takes a source file as argument, maybe some options, and produces
one or several object files. The object files it produces are standard Java class files.
If we save the above program in a file called HelloWorld.scala, we can compile
it by issuing the following command (the greater-than sign ‘>’ represents the shell
prompt and should not be typed):
> scalac HelloWorld.scala
This will generate a few class files in the current directory. One of them will be called
HelloWorld.class, and contains a class which can be directly executed using the
scala command, as the following section shows.
0/5000
จาก: -
เป็น: -
ผลลัพธ์ (ไทย) 1: [สำเนา]
คัดลอก!
2.1Compiling the example
To compile the example, we use scalac, the Scala compiler. scalac works like most
compilers: it takes a source file as argument, maybe some options, and produces
one or several object files. The object files it produces are standard Java class files.
If we save the above program in a file called HelloWorld.scala, we can compile
it by issuing the following command (the greater-than sign ‘>’ represents the shell
prompt and should not be typed):
> scalac HelloWorld.scala
This will generate a few class files in the current directory. One of them will be called
HelloWorld.class, and contains a class which can be directly executed using the
scala command, as the following section shows.
การแปล กรุณารอสักครู่..
ผลลัพธ์ (ไทย) 2:[สำเนา]
คัดลอก!
2.1Compiling ตัวอย่างเช่น
รวบรวมตัวอย่างเช่นเราจะใช้ scalac คอมไพเลอร์สกาล่า scalac ทำงานชอบมากที่สุด
คอมไพเลอร์: มันต้องใช้แหล่งไฟ le เป็นอาร์กิวเมนต์อาจจะบางตัวเลือกและผลิต
วัตถุหนึ่งหรือหลายสาย les วัตถุสาย les จะผลิตเป็นชั้น Java มาตรฐานสาย les.
ถ้าเราบันทึกโปรแกรมดังกล่าวข้างต้นในสาย le เรียก HelloWorld.scala เราสามารถรวบรวม
ได้โดยการออกคำสั่งต่อไป (ที่มากขึ้นกว่าสัญญาณ '>' แสดงให้เห็นถึงเปลือก
รวดเร็วและไม่ควร จะพิมพ์):
> scalac HelloWorld.scala
นี้จะสร้างสายระดับไม่กี่ les ในไดเรกทอรีปัจจุบัน หนึ่งของพวกเขาจะถูกเรียกว่า
HelloWorld.class และมีระดับที่สามารถดำเนินการได้โดยตรงโดยใช้
คำสั่งสกาล่าในขณะที่ส่วนต่อไปนี้แสดงให้เห็นว่า
การแปล กรุณารอสักครู่..
ผลลัพธ์ (ไทย) 3:[สำเนา]
คัดลอก!
2.1compiling ตัวอย่าง
เพื่อรวบรวมตัวอย่าง เราใช้ สกาล่า scalac , ผู้แปล scalac ทำงานเหมือนกับคอมไพเลอร์ส่วนใหญ่
: ใช้เป็นแหล่งถ่ายทอดเลอเป็นอาร์กิวเมนต์ บางทีบางตัวเลือกและผลิต
หนึ่งหรือหลายวัตถุจึงเลส วัตถุจึงเล จะผลิตเป็นมาตรฐานจาวาคลาสจึงเลส
ถ้าเราบันทึกรายการข้างบน ใน เลอ helloworld.scala จึงเรียกว่าเราสามารถรวบรวม
โดยคำสั่งต่อไปนี้ ( ยิ่งกว่าเครื่องหมาย ' > ' เป็นเปลือก
รวดเร็วและไม่ควรพิมพ์ ) :

> scalac HelloWorld สกาล่า นี้จะสร้างกี่ชั้น จึงเล ในไดเรกทอรีปัจจุบัน หนึ่งของพวกเขาจะเรียกว่า
helloworld.class และมีคลาสซึ่งสามารถโดยตรงการใช้
Scala คำสั่งดังต่อไปนี้
ส่วนแสดง
การแปล กรุณารอสักครู่..
 
ภาษาอื่น ๆ
การสนับสนุนเครื่องมือแปลภาษา: กรีก, กันนาดา, กาลิเชียน, คลิงออน, คอร์สิกา, คาซัค, คาตาลัน, คินยารวันดา, คีร์กิซ, คุชราต, จอร์เจีย, จีน, จีนดั้งเดิม, ชวา, ชิเชวา, ซามัว, ซีบัวโน, ซุนดา, ซูลู, ญี่ปุ่น, ดัตช์, ตรวจหาภาษา, ตุรกี, ทมิฬ, ทาจิก, ทาทาร์, นอร์เวย์, บอสเนีย, บัลแกเรีย, บาสก์, ปัญจาป, ฝรั่งเศส, พาชตู, ฟริเชียน, ฟินแลนด์, ฟิลิปปินส์, ภาษาอินโดนีเซี, มองโกเลีย, มัลทีส, มาซีโดเนีย, มาราฐี, มาลากาซี, มาลายาลัม, มาเลย์, ม้ง, ยิดดิช, ยูเครน, รัสเซีย, ละติน, ลักเซมเบิร์ก, ลัตเวีย, ลาว, ลิทัวเนีย, สวาฮิลี, สวีเดน, สิงหล, สินธี, สเปน, สโลวัก, สโลวีเนีย, อังกฤษ, อัมฮาริก, อาร์เซอร์ไบจัน, อาร์เมเนีย, อาหรับ, อิกโบ, อิตาลี, อุยกูร์, อุสเบกิสถาน, อูรดู, ฮังการี, ฮัวซา, ฮาวาย, ฮินดี, ฮีบรู, เกลิกสกอต, เกาหลี, เขมร, เคิร์ด, เช็ก, เซอร์เบียน, เซโซโท, เดนมาร์ก, เตลูกู, เติร์กเมน, เนปาล, เบงกอล, เบลารุส, เปอร์เซีย, เมารี, เมียนมา (พม่า), เยอรมัน, เวลส์, เวียดนาม, เอสเปอแรนโต, เอสโทเนีย, เฮติครีโอล, แอฟริกา, แอลเบเนีย, โคซา, โครเอเชีย, โชนา, โซมาลี, โปรตุเกส, โปแลนด์, โยรูบา, โรมาเนีย, โอเดีย (โอริยา), ไทย, ไอซ์แลนด์, ไอร์แลนด์, การแปลภาษา.

Copyright ©2026 I Love Translation. All reserved.

E-mail: