Commit bcc2b70a authored by Artak Yenokyan's avatar Artak Yenokyan

Merge branch 'exe_49' into 'master'

exercise_06_49, version1

See merge request bpcarm/trainings2017!1324
parents a25e163e ebd2b769
#include <iostream>
int main()
int c; ///must be char c; because cin.get() takes only characters, not integer values.
if ( ( с = cin.get() ) != EOF )
std::cout << c;
return 0;
Line cout << c in all main() recursive steps this line work until we press ctrl+d(EOF).
But they stay in background because of first main() recursive call.
After pressing ctrl+d all recursive called main() cout's are shown on display.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment