Syntax Error Hectopat Katılım 2 Ocak 2021 Mesajlar 1.653 Çözümler 9 31 Mayıs 2021 #1 Mesela diyelim ki şöyle bir kod yazdık: C++:Panoya kopyala #include <iostream> using namespace std; int main() { system("fdisk -l"); return 0; } Şimdi burada fdisk -l komutunun çıktısı diskler falan olacak bu çıktıyı C++ ile hangi komutla alabilirim mümkün müdür?
Mesela diyelim ki şöyle bir kod yazdık: C++:Panoya kopyala #include <iostream> using namespace std; int main() { system("fdisk -l"); return 0; } Şimdi burada fdisk -l komutunun çıktısı diskler falan olacak bu çıktıyı C++ ile hangi komutla alabilirim mümkün müdür?
3 316332 Hectopat Katılım 5 Nisan 2020 Mesajlar 722 Çözümler 9 Yer 127.0.0.1 Daha fazla Cinsiyet Erkek 31 Mayıs 2021 #2 How do I execute a command and get the output of the command within C++ using POSIX? I am looking for a way to get the output of a command when it is run from within a C++ program. I have looked at using the system() function, but that will just execute a command. Here's an exampl... stackoverflow.com
How do I execute a command and get the output of the command within C++ using POSIX? I am looking for a way to get the output of a command when it is run from within a C++ program. I have looked at using the system() function, but that will just execute a command. Here's an exampl... stackoverflow.com
The Anorak Terapat Zamanın Tanığı Forumun Hafızası Katılım 2 Mart 2014 Mesajlar 6.694 Makaleler 1 Çözümler 128 31 Mayıs 2021 #3 Child Process olarak çalıştırıp çıktıları String olarak alabilirsiniz.