What is standard input (stdin)?

This is a recommends products dialog
Top Suggestions
Starting at
View All >
Language
French
English
ไทย
German
繁體中文
Country
Hi
All
Sign In / Create Account
language Selector,${0} is Selected
Register & Shop at Lenovo Pro
Register at Education Store

Pro Tier Benefits

• Save up to an extra 3% on Think everyday pricing
• Spend HK$78,000, advance to Plus Tier with increased benefits

Plus Tier Benefits

• Save up to an extra 5% on Think everyday pricing
• Spend HK$120,000 advance for free to Elite Tier with increased benefits
• Take advantage of flexible payment options with TruScale Device as a Service.

Elite Tier Benefits

• Save up to an extra 8% on Think everyday pricing
• Take advantage of flexible payment options with
TruScale Device as a Service.
Reseller Benefits
• Access to Lenovo's full product portfolio
• Configure and Purchase at prices better than Lenovo.com
View All Details >
more to reach
PRO Plus
PRO Elite
Congratulations, you have reached Elite Status!
Pro for Business
Delete icon Remove icon Add icon Reload icon
TEMPORARILY UNAVAILABLE
DISCONTINUED
Temporary Unavailable
Cooming Soon!
. Additional units will be charged at the non-eCoupon price. Purchase additional now
We're sorry, the maximum quantity you are able to buy at this amazing eCoupon price is
Sign in or Create an Account to Save Your Cart!
Sign in or Create an Account to Join Rewards
View Cart
Wow, your cart is empty!
Remove
item(s) in cart
Fill it in with great deals
Some items in your cart are no longer available. Please visit cart for more details.
has been deleted
Please review your cart as items have changed.
of
Contains Add-ons
Proceed to Checkout
Yes
No
Popular Searches
What are you looking for today ?
Trending
Recent Searches
Hamburger Menu
{"arrowColor":"#ffffff","backgroundColor":"#285d50","divideColor":"","sideMsg":"","data":[{"pcInfo":"","mAndTabInfo":"","bannerInfo":{"t_id":"Pageb7f2e1ff-3557-49a5-94a2-7c82c8dee25b","language":{"zh_hk":"%3Cp%20style%3D%22text-wrap%3A%20wrap%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3E%3Cstrong%3ELenovo%20Pro%20%E4%BC%81%E6%A5%AD%E5%B0%88%E4%BA%AB%E9%AB%98%E9%81%94%208%20%E6%8A%98%E8%B3%BC%E7%89%A9%E5%84%AA%E6%83%A0%3C%2Fstrong%3E%26nbsp%3B%7C%20%E7%99%BB%E8%A8%98%E5%8D%B3%E7%8D%B2%E9%AB%98%E9%81%94%246%2C000%E8%BF%8E%E6%96%B0%E6%8A%98%E6%89%A3%20%2B%20%E5%85%8D%E8%B2%BB%E7%A6%AE%E7%89%A9%EF%BC%81%3C%2Fspan%3E%3C%2Fp%3E%3Cp%20style%3D%22text-wrap%3A%20wrap%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3E%E8%87%B4%E9%9B%BB%26nbsp%3B%3Ca%20href%3D%22tel%3A25930388%22%20style%3D%22color%3A%20rgb(255%2C%20192%2C%200)%3B%20text-decoration%3A%20underline%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20192%2C%200)%3B%22%3E%3Cstrong%3E2593%200388%3C%2Fstrong%3E%3C%2Fspan%3E%3C%2Fa%3E%26nbsp%3B%E8%A7%A3%E9%8E%96%E5%84%AA%E6%83%A0%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%3C%2Fspan%3E%3Ca%20href%3D%22%2Fbusiness%2Fbenefits%2F%3FipromoID%3Dhellobar_01_lpro_learn%22%20target%3D%22_blank%22%20textvalue%3D%22%E7%9E%AD%E8%A7%A3%E6%9B%B4%E5%A4%9A%22%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%20text-decoration%3A%20underline%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3E%3Cstrong%3E%E7%9E%AD%E8%A7%A3%E6%9B%B4%E5%A4%9A%3C%2Fstrong%3E%3C%2Fspan%3E%3C%2Fa%3E%3C%2Fp%3E%3Cp%3E%3Cbr%2F%3E%3C%2Fp%3E","en":"","en_hk":"%3Cp%20style%3D%22text-wrap%3A%20wrap%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%20font-family%3A%20arial%2C%20helvetica%2C%20sans-serif%3B%22%3E%3Cstrong%3ELenovo%20Pro%20Business%20Offer%2020%25%20OFF%3C%2Fstrong%3E%26nbsp%3B%7C%20Join%20us%20to%20get%20up%20to%20%246%2C000%20Welcome%20Discount%20%2B%20Free%20Gift!%26nbsp%3B%3C%2Fspan%3E%3C%2Fp%3E%3Cp%20style%3D%22text-wrap%3A%20wrap%3B%22%3E%3Ca%20href%3D%22tel%3A25930388%22%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%20font-family%3A%20arial%2C%20helvetica%2C%20sans-serif%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20192%2C%200)%3B%22%3E%3Cstrong%3ECall%202593%200388%3C%2Fstrong%3E%3C%2Fspan%3E%3C%2Fa%3E%3Cspan%20style%3D%22font-family%3A%20arial%2C%20helvetica%2C%20sans-serif%3B%22%3E%3Cstrong%3E%3Cspan%20style%3D%22font-family%3A%20Montserrat%3B%20color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2Fspan%3E%3C%2Fstrong%3E%26nbsp%3B%3C%2Fspan%3E%3Ca%20href%3D%22%2Fbusiness%2Fbenefits%2F%3FipromoID%3Dhellobar_01_lpro_learn%22%20target%3D%22_blank%22%20textvalue%3D%22Learn%20More%22%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%20text-decoration%3A%20underline%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3E%3Cstrong%3ELearn%20More%3C%2Fstrong%3E%3C%2Fspan%3E%3C%2Fa%3E%3C%2Fp%3E%3Cp%3E%3Cbr%2F%3E%3C%2Fp%3E","zh":""},"id":"Pageb7f2e1ff-3557-49a5-94a2-7c82c8dee25b"},"gInfo":""},{"pcInfo":"","mAndTabInfo":"","bannerInfo":{"t_id":"Pagecfa8504b-eb77-4339-9085-bcf23eb1a764","language":{"zh_hk":"%3Cp%20style%3D%22text-wrap%3A%20wrap%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3ELenovo%20%E6%95%99%E8%82%B2%E5%84%AA%E6%83%A02023%26nbsp%3B%7C%20%E5%AD%B8%E7%94%9F%E5%8F%8A%E6%95%99%E8%81%B7%E5%93%A1%E5%8F%AF%E4%BA%AB%E4%BD%8E%E8%87%B36%E6%8A%98%E5%84%AA%E6%83%A0%2C%20%E4%BD%BF%E7%94%A8%20SheerID%E5%BF%AB%E9%80%9F%E8%AA%8D%E8%A8%BC%26nbsp%3B%3C%2Fspan%3E%3C%2Fp%3E%3Cp%20style%3D%22text-wrap%3A%20wrap%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3E%E8%87%B4%E9%9B%BB%26nbsp%3B%3Ca%20href%3D%22tel%3A25930388%22%20style%3D%22color%3A%20rgb(255%2C%20192%2C%200)%3B%20text-decoration%3A%20underline%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20192%2C%200)%3B%22%3E%3Cstrong%3E2593%200388%3C%2Fstrong%3E%3C%2Fspan%3E%3C%2Fa%3E%26nbsp%3B%E8%A7%A3%E9%8E%96%E5%84%AA%E6%83%A0%26nbsp%3B%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%3C%2Fspan%3E%3Ca%20href%3D%22%2Fd%2Fschool-from-home%2F%3FipromoID%3Dhellobar_02_edu%22%20target%3D%22_blank%22%20textvalue%3D%22%E7%AB%8B%E5%8D%B3%E8%B3%BC%E8%B2%B7%22%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%20text-decoration%3A%20underline%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3E%3Cstrong%3E%E7%AB%8B%E5%8D%B3%E8%B3%BC%E8%B2%B7%3C%2Fstrong%3E%3C%2Fspan%3E%3C%2Fa%3E%3C%2Fp%3E%3Cp%3E%3Cbr%2F%3E%3C%2Fp%3E","en":"","en_hk":"%3Cp%20style%3D%22text-wrap%3A%20wrap%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%20font-family%3A%20Montserrat%3B%22%3E%3Cstrong%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%20font-family%3A%20arial%2C%20helvetica%2C%20sans-serif%3B%22%3E%3C%2Fspan%3EBack%20to%20School%3C%2Fstrong%3E%26nbsp%3B%7C%20Join%20Lenovo%20Education%20to%20enjoy%20up%20to%2040%25%20Discount%20for%20students%20%26amp%3B%20teachers.%20SheerID%20is%20applicable.%3C%2Fspan%3E%3C%2Fp%3E%3Cp%20style%3D%22text-wrap%3A%20wrap%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20192%2C%200)%3B%20font-family%3A%20Montserrat%3B%22%3E%26nbsp%3B%3Ca%20href%3D%22tel%3A25930388%22%20style%3D%22color%3A%20rgb(255%2C%20192%2C%200)%3B%20text-decoration%3A%20underline%3B%22%3E%3Cstrong%3ECall%202593%200388%3C%2Fstrong%3E%3C%2Fa%3E%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%3C%2Fspan%3E%3Ca%20href%3D%22%2Fd%2Fschool-from-home%2F%3FipromoID%3Dhellobar_02_edu%22%20target%3D%22_self%22%20textvalue%3D%22Shop%20now%22%20style%3D%22text-decoration%3A%20underline%3B%20color%3A%20rgb(255%2C%20255%2C%20255)%3B%20font-family%3A%20Montserrat%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%20font-family%3A%20Montserrat%3B%22%3E%3Cstrong%3EShop%20now%3C%2Fstrong%3E%3C%2Fspan%3E%3C%2Fa%3E%3C%2Fp%3E","zh":""},"id":"Pagecfa8504b-eb77-4339-9085-bcf23eb1a764"},"gInfo":""},{"pcInfo":"","mAndTabInfo":"","bannerInfo":{"t_id":"Pagef53f1aa2-3b1d-4357-a57e-850230463f26","language":{"zh_hk":"%3Cp%20style%3D%22text-wrap%3A%20wrap%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3E%3Cstrong%3EPC%E4%BD%8E%E8%87%B37%E6%8A%98%3C%2Fstrong%3E%26nbsp%3B%7C%20%E7%B2%BE%E9%81%B8%E5%9E%8B%E8%99%9F%E7%8F%BE%E8%B2%A8%E7%99%BC%E5%94%AE%2C%20%E6%9C%80%E5%BF%AB3%E6%97%A5%E9%80%81%E8%B2%A8%EF%BC%81%E6%89%80%E6%9C%89%E8%A8%82%E5%96%AE%E5%9D%87%E4%BA%AB%E5%85%8D%E9%81%8B%E8%B2%BB%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2Fspan%3E%3C%2Fp%3E%3Cp%20style%3D%22text-wrap%3A%20wrap%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3E%E8%87%B4%E9%9B%BB%26nbsp%3B%3Ca%20href%3D%22tel%3A25930388%22%20style%3D%22color%3A%20rgb(255%2C%20192%2C%200)%3B%20text-decoration%3A%20underline%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20192%2C%200)%3B%22%3E%3Cstrong%3E2593%200388%3C%2Fstrong%3E%3C%2Fspan%3E%3C%2Fa%3E%26nbsp%3B%E8%A7%A3%E9%8E%96%E5%84%AA%E6%83%A0%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%3C%2Fspan%3E%3Ca%20href%3D%22%2Fd%2Fdeals%2Fexpress%2F%3FipromoID%3Dhellobar_03_quickship%22%20target%3D%22_blank%22%20textvalue%3D%22%E7%AB%8B%E5%8D%B3%E8%B3%BC%E8%B2%B7%22%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%20text-decoration%3A%20underline%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3E%3Cstrong%3E%E7%AB%8B%E5%8D%B3%E8%B3%BC%E8%B2%B7%3C%2Fstrong%3E%3C%2Fspan%3E%3C%2Fa%3E%3C%2Fp%3E%3Cp%3E%3Cbr%2F%3E%3C%2Fp%3E","en":"","en_hk":"%3Cp%20style%3D%22text-wrap%3A%20wrap%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%20font-family%3A%20arial%2C%20helvetica%2C%20sans-serif%3B%22%3E%3Cstrong%3EPC%20Up%20to%2030%25%20off%3C%2Fstrong%3E%26nbsp%3B%7C%20Selected%20models%20are%20on%20sale%20in%20stock%2C%20and%20the%20fastest%20delivery%20is%203%20days!%20Free%20shipping%20site-wide%2C%20no%20minimum%20spend.%3C%2Fspan%3E%3C%2Fp%3E%3Cp%20style%3D%22text-wrap%3A%20wrap%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%20font-family%3A%20arial%2C%20helvetica%2C%20sans-serif%3B%22%3E%26nbsp%3B%3Ca%20href%3D%22tel%3A25930388%22%20style%3D%22color%3A%20rgb(255%2C%20192%2C%200)%3B%20text-decoration%3A%20underline%3B%22%3E%3Cspan%20style%3D%22font-family%3A%20Montserrat%3B%20color%3A%20rgb(255%2C%20192%2C%200)%3B%22%3E%3Cstrong%3ECall%202593%200388%3C%2Fstrong%3E%3C%2Fspan%3E%3C%2Fa%3E%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%3C%2Fspan%3E%3Ca%20href%3D%22%2Fd%2Fdeals%2Fexpress%2F%3FipromoID%3Dhellobar_03_quickship%22%20target%3D%22_blank%22%20textvalue%3D%22Shop%20now%22%20style%3D%22text-decoration%3A%20underline%3B%20color%3A%20rgb(255%2C%20255%2C%20255)%3B%20font-family%3A%20arial%2C%20helvetica%2C%20sans-serif%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%20font-family%3A%20arial%2C%20helvetica%2C%20sans-serif%3B%22%3E%3Cstrong%3EShop%20now%3C%2Fstrong%3E%3C%2Fspan%3E%3C%2Fa%3E%3C%2Fp%3E%3Cp%3E%3Cbr%2F%3E%3C%2Fp%3E","zh":""},"id":"Pagef53f1aa2-3b1d-4357-a57e-850230463f26"},"gInfo":""},{"pcInfo":"","mAndTabInfo":"","bannerInfo":{"t_id":"Page40a4db87-5fc2-477e-aa8e-51281582d62c","language":{"zh_hk":"%3Cp%3E%3Cspan%20style%3D%22text-wrap%3A%20wrap%3B%20color%3A%20rgb(255%2C%20255%2C%20255)%3B%20font-family%3A%20arial%2C%20helvetica%2C%20sans-serif%3B%22%3E%E6%9C%89%E7%96%91%E5%95%8F%E5%97%8E%EF%BC%9F%20%E5%A6%82%E9%9C%80%E6%88%91%E5%80%91%E7%9A%84%E5%B0%88%E5%AE%B6%E5%BB%BA%E8%AD%B0%EF%BC%8C%E8%AB%8B%E8%87%B4%E9%9B%BB%26nbsp%3B%3Ca%20href%3D%22tel%3A25930388%22%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20192%2C%200)%3B%22%3E%3Cstrong%3E2593%200388%3C%2Fstrong%3E%3C%2Fspan%3E%3Cstrong%3E%E6%88%96%E9%BB%9E%E6%93%8A%E3%80%8C%E8%81%8A%E5%A4%A9%E3%80%8D%EF%BC%81%3C%2Fstrong%3E%3C%2Fa%3E%3C%2Fspan%3E%3Cspan%20style%3D%22text-wrap%3A%20wrap%3B%20font-family%3A%20arial%2C%20helvetica%2C%20sans-serif%3B%22%3E%26nbsp%3B%26nbsp%3B%3C%2Fspan%3E%3Ca%20target%3D%22_self%22%20class%3D%22live_chat_daily%22%20style%3D%22text-wrap%3A%20wrap%3B%20text-decoration-line%3A%20underline%3B%20color%3A%20rgb(255%2C%20255%2C%20255)%3B%20font-family%3A%20arial%2C%20helvetica%2C%20sans-serif%3B%22%3E%3Cstrong%3E%E8%81%AF%E7%B5%A1%E6%88%91%E5%80%91%3C%2Fstrong%3E%3C%2Fa%3E%3C%2Fp%3E","en":"","en_hk":"%3Cp%3E%3Cspan%20style%3D%22text-wrap%3A%20wrap%3B%20color%3A%20rgb(255%2C%20255%2C%20255)%3B%20font-family%3A%20arial%2C%20helvetica%2C%20sans-serif%3B%22%3ENeed%20Help%3F%26nbsp%3B%26nbsp%3B%3Ca%20href%3D%22tel%3A25930388%22%20style%3D%22color%3A%20rgb(255%2C%20192%2C%200)%3B%22%3E%3Cstrong%3ECall%202593%200388%3C%2Fstrong%3E%3C%2Fa%3E%26nbsp%3B%26nbsp%3Bor%20Chat%20with%20us%20now!%3C%2Fspan%3E%3Cspan%20style%3D%22text-wrap%3A%20wrap%3B%20font-family%3A%20arial%2C%20helvetica%2C%20sans-serif%3B%22%3E%26nbsp%3B%26nbsp%3B%3C%2Fspan%3E%3Ca%20target%3D%22_self%22%20class%3D%22live_chat_daily%22%20style%3D%22text-wrap%3A%20wrap%3B%20text-decoration-line%3A%20underline%3B%20color%3A%20rgb(255%2C%20255%2C%20255)%3B%20font-family%3A%20arial%2C%20helvetica%2C%20sans-serif%3B%22%3E%3Cstrong%3EContact%20Us%3C%2Fstrong%3E%3C%2Fa%3E%3C%2Fp%3E","zh":""},"id":"Page40a4db87-5fc2-477e-aa8e-51281582d62c"},"gInfo":""},{"pcInfo":"","mAndTabInfo":"","bannerInfo":{"t_id":"Page4daeae9a-96ce-41de-bb12-39e5cc32e16a","language":{"zh_hk":"%3Cp%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3E%E5%B9%B4%E5%BA%A6%E6%9C%80%E5%BC%B711.11%E5%84%AA%E6%83%A0%20%7C%20%E6%89%8B%E6%8F%90%E9%9B%BB%E8%85%A6%E6%BF%80%E6%B8%9B%E8%87%B3%20%241%2C798!%20%E8%B3%BC%E7%89%A9%E9%80%81%24400%E8%B6%85%E5%B8%82%E7%A6%AE%E5%88%B8!%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2Fspan%3E%3Ca%20href%3D%22%2Fd%2Fdeals%2Fspecial-offer%2F%22%20target%3D%22_self%22%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%20text-decoration%3A%20underline%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3E%3Cstrong%3E11.11%E7%B2%BE%E9%81%B8%E5%9E%8B%E8%99%9F%3C%2Fstrong%3E%3C%2Fspan%3E%3C%2Fa%3E%3C%2Fp%3E","en":"%3Cp%3E%3Cspan%20style%3D%22text-wrap%3A%20wrap%3B%20color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3EMega%20Clearance%20Sale%20%7C%20Laptops%20starts%20at%20%241%2C998%26nbsp%3B%20%26nbsp%3B%20Up%20to%2040%25%20off%20for%20Gaming%20PCs%2FYoga%20PCs%26nbsp%3B%20%26nbsp%3B%20Free%20shipping%20on%20any%20orders%2C%20as%20fast%20as%202%20days%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2Fspan%3E%3Ca%20href%3D%22https%3A%2F%2Fadmin.lenovo.com%2Fd%2Fdeals%2Fspecial-offer%2F%3FipromoID%3Dhellobar_05%22%20target%3D%22_blank%22%20title%3D%22Mega%20Clearance%22%20style%3D%22text-wrap%3A%20wrap%3B%20color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3E%3Cstrong%3EMega%20Clearance%3C%2Fstrong%3E%3C%2Fa%3E%3C%2Fp%3E","en_hk":"%3Cp%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3E11.11%20Crazy%20Deals%20%7C%20Laptop%20Starting%20at%20%241798!%20Get%20%24400%20supermarket%20vouchers!%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%3C%2Fspan%3E%3Ca%20href%3D%22%2Fd%2Fdeals%2Fspecial-offer%2F%22%20target%3D%22_self%22%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%20text-decoration%3A%20underline%3B%22%3E%3Cspan%20style%3D%22color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3E%3Cstrong%3E11.11%20Deals%3C%2Fstrong%3E%3C%2Fspan%3E%3C%2Fa%3E%3C%2Fp%3E","zh":"%3Cp%3E%3Cspan%20style%3D%22text-wrap%3A%20wrap%3B%20color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3E%E7%A7%8B%E5%AD%A3%E9%96%8B%E5%80%89%E5%A4%A7%E6%BF%80%E8%B3%9E%7C%20%E9%9B%BB%E8%85%A6%E4%BD%8E%E8%87%B3%241%2C998%E8%B5%B7%26nbsp%3B%20%E9%9B%BB%E7%AB%B6%E9%9B%BB%E8%85%A6%2FYoga%E9%9B%BB%E8%85%A6%E4%BD%8E%E8%87%B36%E6%8A%98%20%E4%BB%BB%E4%BD%95%E8%A8%82%E5%96%AE%E5%85%8D%E8%B2%BB%E9%80%81%E8%B2%A8%20%E6%9C%80%E5%BF%AB2%E6%97%A5%E9%80%81%E5%88%B0%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%3C%2Fspan%3E%3Ca%20href%3D%22https%3A%2F%2Fadmin.lenovo.com%2Fd%2Fnotebook-recommendation%2F%3FipromoID%3Dhellobar_05%22%20target%3D%22_blank%22%20title%3D%22%E5%8D%B3%E6%90%B6%E7%A7%8B%E5%AD%A3%E9%96%8B%E5%80%89%E5%84%AA%E6%83%A0%22%20style%3D%22text-wrap%3A%20wrap%3B%20color%3A%20rgb(255%2C%20255%2C%20255)%3B%22%3E%3Cstrong%3E%E5%8D%B3%E6%90%B6%E7%A7%8B%E5%AD%A3%E9%96%8B%E5%80%89%E5%84%AA%E6%83%A0%3C%2Fstrong%3E%3C%2Fa%3E%3Cspan%20style%3D%22text-wrap%3A%20wrap%3B%22%3E%3C%2Fspan%3E%3C%2Fp%3E"},"id":"Page4daeae9a-96ce-41de-bb12-39e5cc32e16a"},"gInfo":""}],"autoRun":true,"isShowDivide":true}
11.11 Super Sale
Sale Extended for 1 Week! Hurry Last Chance! Shop NOW!
Days
Hours
Minutes
Seconds
11.11 Super Sale
Sale Extended for 1 Week! Hurry Last Chance! Shop NOW!
Days
Hours
Minutes
Seconds


What is standard input (stdin)?

Standard input (stdin) is a commonly used term in programming and is a term used in computer programming. It refers to the default input device that the program uses to read data. In most cases, this will be the keyboard, but it can also be a file or another device. When you interact with a program through the command line or terminal, you can provide input to the program using the standard input stream. It is a way to pass information to the program while it is running.

How does stdin work?

When a program is running, it reads input from the standard input stream to gather data. By default, the standard input stream is connected to the keyboard, so you can type in values or commands that the program expects. The program waits for your input and then processes it accordingly.

How does stdin work in a computer program?

Let's say you have a program that calculates the sum of two numbers. The program prompts you to enter the first number, and you type "5" followed by the Enter key. Then, the program prompts you to enter the second number, and you type "3" followed by the Enter key. The program reads these values from the standard input stream and performs the calculation, giving you the result of 8.

How is stdin different from command-line arguments?

While both stdin and command-line arguments allow you to provide input to a program, they serve different purposes. Stdin is used for interactive input during the execution of a program. It allows you to provide input dynamically while the program is running. However, command-line arguments are specified when you run the program and are used to pass initial values or options to the program. Command-line arguments are predefined before the program starts executing.

Can I redirect input to stdin from a file?

Absolutely. You can redirect the input from a file to the standard input stream using the input redirection feature provided by your operating system's command line interface. Instead of typing input directly, you can store the input in a file and then use the file as the input source for the program. This is useful when you have a large set of predefined inputs or when you want to automate input to the program.

How do I redirect input to stdin from a file in Unix-like systems?

In Unix-like systems, you can use the ‘<’ operator to redirect input from a file to Stdin. For example, if you have a file named "input.txt" containing the numbers you want to pass to a program, you can run the program with the following command: ./program < input.txt. This command tells the operating system to use the contents of "input.txt" as the input for the program.

Can I use stdin in programming languages other than C?

Yes, stdin is a concept that exists in various programming languages, not just C. Many programming languages provide built-in mechanisms or libraries to read input from the standard input stream. For example, in Python, you can use the input() function to read user input from stdin. Similarly, Java provides the Scanner class, which allows you to read input from System.in, which represents the standard input stream.

Is there a corresponding output stream for stdin?

Yes, just like there is a standard input stream (stdin), there is also a standard output stream (stdout). While stdin is used for receiving input, stdout is used for displaying output from a program. The standard output stream is typically connected to the console or terminal, and the program writes data to this stream to display it to the user. You can print messages, results, or any other information to the standard output stream.

Can I redirect stdout to a file?

Absolutely. Similar to redirecting input, you can redirect the output from the standard output stream (stdout) to a file. This is called output redirection. Instead of displaying the output on the console or terminal, you can store it in a file for further processing or analysis. In Unix-like systems, you can use the ‘>’operator to redirect the output to a file. For example, ./program > output.txt will write the program's output to the "output.txt" file.

Is stdin the only way to provide input to a program?

No, Stdin is one of the ways to provide input to a program, but it's not the only way. Depending on the programming language or environment you are working with, there may be alternative methods to receive input. For instance, graphical user interfaces (GUI) often provide input fields or buttons to interact with a program. Additionally, web applications can receive input through hyper text markup language (HTML) forms or application programming interface (API) requests.

Can I use stdin to read data from a network connection?

Yes, you can use stdin to read data from a network connection. In certain programming languages, libraries or modules are available that allow you to establish network connections and read data from them through the standard input stream. This can be useful when you want to receive data from remote systems or network devices.

Are there any special characters or commands used with stdin?

Yes, there are special characters or commands that you can use with stdin to control the input or interact with a program. For example, in Unix-like systems, pressing Ctrl+D (or Ctrl+Z in some systems) indicates the end of input, allowing the program to process the data received so far. Moreover, certain programs or utilities may implement their own special commands or syntax for specific interactions.

Can I use stdin in batch processing or scripting?

Absolutely. Stdin is commonly used in batch processing or scripting scenarios. You can write scripts or batch files that take input from the standard input stream, allowing you to automate repetitive tasks or process data in bulk. By redirecting input to Stdin from files or other sources, you can create powerful scripts that operate on large datasets or perform complex operations.

How do I handle errors when reading from stdin?

When reading from stdin, it's important to handle potential errors to ensure the program runs smoothly. Most programming languages provide error handling mechanisms, such as try-catch blocks or exception handling, which allow you to gracefully handle errors that may occur when reading from the standard input stream. Proper error handling helps prevent program crashes or unexpected behavior when encountering invalid or unexpected input.

Can I combine stdin with other input sources?

Yes, you can combine Stdin with other input sources depending on your program's requirements. For instance, you can read input from the standard input stream while also accepting command-line arguments or reading from files. This flexibility allows you to design programs that can receive input from various sources, giving you more options and versatility in data processing.

Is stdin used in interactive programming environments?

Yes, stdin is commonly used in interactive programming environments. Interactive programming environments, such as integrated development environments (IDEs) or read-eval-print loops (REPLs), provide a way to interactively write and execute code. These environments often have a console or terminal where you can provide input through the standard input stream, allowing you to experiment and test your code interactively.

Can I customize the behavior of stdin in my program?

Yes, you can customize the behavior of stdin in your program to suit your specific needs. Many programming languages provide libraries or functions that allow you to modify or extend the functionality of the standard input stream. For example, you can implement input validation, input parsing, or input buffering mechanisms to enhance the way your program reads and processes data from Stdin.

How can I ensure proper input when using stdin?

To ensure proper input when using stdin, it's essential to incorporate input validation and error handling in your program. Validating the input helps verify that it meets the expected format or constraints, preventing potential errors or unexpected behavior. Additionally, providing clear instructions or prompts to the user can help guide them in providing the correct input and reduce the likelihood of input errors.

{"pageComponentDataId":"537198bf07954-401a-b47a-087e257f1d72","isAssociatedRelease":"true","pageComponentDataLangCode":"en_hk","configData":{"jumpType":"currentTab","headlineColor":"black","displayNumber":"","styleMode":"vertical","miniCardHoMode":"2","headline":"","products":[{"number":{"t_id":"len101t0102","language":{"zh_hk":"len101t0102","en":"","en_hk":"len101t0102","zh":""},"id":"Page497e178f-e4db-4b5b-b1a5-ec4687329efb"}},{"number":{"t_id":"len101t0104","language":{"zh_hk":"len101t0104","en":"","en_hk":"len101t0104","zh":""},"id":"Page9145835b-830f-4dee-9765-5a8ed87b670f"}},{"number":{"t_id":"len101t0081","language":{"zh_hk":"len101t0081","en":"","en_hk":"len101t0081","zh":""},"id":"Pagebb4de9bf-4262-41eb-9982-04bc0777035c"}},{"number":{"t_id":"len101g0036","language":{"zh_hk":"len101g0036","en":"","en_hk":"len101g0036","zh":""},"id":"Paged7259f59-5586-49c9-8b68-20a93f7b4c51"}}]},"urlPrefix":"AAAAAAALAAAG","needGetLatestTransDataKey":"needGetLatestTransDataValue","title":"glossary-right-blue-boxes-fragment","pageId":"82171833-6325-4d09-947e-5979c9876a90","urlEdit":0,"uri":"/FragmentDirectory/glossary/glossary-right-blue-boxes-fragment.frag","pageComponentId":"537198bf07954-401a-b47a-087e257f1d72","tplId":"c7389f9a-59c0-4c34-a9e1-f1c090c6ab86","pageComponentUuid":"537198bf07954-401a-b47a-087e257f1d72","targetUser":"0"}
coming coming
Starting at
List Price
Est Value
Web Price:
List Price
Est Value (Estimated Value)
List Price is Lenovo’s estimate of product value based on the industry data, including the prices at which first and third-party retailers and etailers have offered or valued the same or comparable products. Third-party reseller data may not be based on actual sales.
Estimated value is Lenovo’s estimate of product value based on industry data, including the prices at which Lenovo and/or third-party retailers and e-tailers have offered or valued the same or comparable products. Third-party data may not be based on actual sales.
Learn More
See More
See Less
View {0} Model
View {0} Models
shipping.options.for.{0}
Part Number:
Features
See More
See Less
compare
Added!
Great choice!
You may compare up to 4 products per product category (laptops, desktops, etc). Please de-select one to add another.
View Your Comparisons
Add To Cart
Add To Cart
We're sorry,
Products are temporarily unavailable.
Continue Shopping
Learn More
Coming Soon
Featured Product
Featured Products
Oops! No results found. Visit the categories above to find your product.
Save
open in new tab
© 2024 Lenovo. All rights reserved.
© {year} Lenovo. All rights reserved.
Compare  ()
x