2014-06-21 4 views
1

Cling을 내 C++ 인터프리터로 사용하고 싶습니다. 현재 콘솔 입력을 받고 출력을 제공하도록 설계되었습니다. 임베디드되기 위해 어떻게 변경 될 수 있습니까? 입력 스트림을 얻고 내 응용 프로그램에서 사용할 수있는 출력 스트림을 제공합니까?임베디드 C++ 인터프리터로서의 집착?

답변

0
[cling$] .help 
... 
    .> <filename>  - Redirect command to a given file 
    '>' or '1>'  - Redirects the stdout stream only 
    '2>'   - Redirects the stderr stream only 
    '&>' (or '2>&1')  - Redirects both stdout and stderr 
    '>>'   - Appends to the given file 

이렇게하면 실행 결과의 스트리밍을 리디렉션 할 수 있습니다.