Container內 cin疑問 - Linux
By Elma
at 2021-04-25T23:03
at 2021-04-25T23:03
Table of Contents
跑以下程式cin 一直吃不到qq
https://i.imgur.com/ABmskit.jpg
指令:
https://i.imgur.com/b4wzHjP.jpg
結果:
https://i.imgur.com/5An1c6l.jpg
以下為container 環境
https://i.imgur.com/v5CnfuR.jpg
container 外(一樣是ubuntu18.04) 跑a.out皆正常
數字應該是x(忘記初始化 ),問題是x吃不到cin
用過scanf、cin.ignore()和getline(cin,str)
目前想得到的原因是背景有東西在input跑進buffer ,但這個container內只用ip link 建了bridge跟veth
想請教還有什麼原因會這樣QQ ,麻煩了,謝謝各位
-----
Sent from JPTT on my iPhone
--
Tags:
Linux
All Comments
By Ida
at 2021-04-27T17:20
at 2021-04-27T17:20
By Gary
at 2021-04-29T11:38
at 2021-04-29T11:38
By Odelette
at 2021-05-01T05:55
at 2021-05-01T05:55
By Barb Cronin
at 2021-05-03T00:12
at 2021-05-03T00:12
By Erin
at 2021-05-04T18:29
at 2021-05-04T18:29
By Elizabeth
at 2021-05-06T12:46
at 2021-05-06T12:46
By Bennie
at 2021-05-08T07:03
at 2021-05-08T07:03
By William
at 2021-05-10T01:20
at 2021-05-10T01:20
By Andy
at 2021-05-11T19:37
at 2021-05-11T19:37
By Anonymous
at 2021-05-13T13:55
at 2021-05-13T13:55
Related Posts
請問現在 Linux 繁中注音輸入法是不是一灘死水?
By Hardy
at 2021-04-25T15:22
at 2021-04-25T15:22
Gnuplot (繪圖)
By Una
at 2021-04-22T21:31
at 2021-04-22T21:31
可在已安裝系統分區的硬碟上作軟raid嗎
By Franklin
at 2021-04-21T21:38
at 2021-04-21T21:38
postfix ssl憑證設定請教
By Hazel
at 2021-04-21T17:36
at 2021-04-21T17:36
file descriptor 檔案描述符的問題
By Ethan
at 2021-04-21T15:51
at 2021-04-21T15:51