История изменений
Исправление shdown, (текущая версия) :
#include <iostream>
#include <fstream>
#include <stdio.h>
#include <ext/stdio_filebuf.h>
int main()
{
__gnu_cxx::stdio_filebuf<char> filebuf(stdout, std::ios::out);
std::ostream cpp_stream(&filebuf);
cpp_stream << "Muh thread safety!" << std::endl;
return 0;
}
Опять без сишки и шагу ступить не могут. Сишка — лучший язык out there.
Исправление shdown, :
#include <iostream>
#include <fstream>
#include <stdio.h>
#include <ext/stdio_filebuf.h>
int main()
{
__gnu_cxx::stdio_filebuf<char> filebuf(stdout, std::ios::out);
std::ostream cpp_stream(&filebuf);
cpp_stream << "Muh thread safety!\n";
return 0;
}
Опять без сишки и шагу ступить не могут. Сишка — лучший язык out there.
Исходная версия shdown, :
#include <iostream>
#include <fstream>
#include <stdio.h>
#include <ext/stdio_filebuf.h>
int main()
{
__gnu_cxx::stdio_filebuf<char> filebuf(stdout, std::ios::out);
std::ostream cpp_stream(&filebuf);
cpp_stream << "Muh thread safety!\n";
return 0;
}
Опять без сишки и шагу ступить не могут. Сишка — лучший язык out there.