mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-06-13 21:37:11 +02:00
Update POCO library.
This commit is contained in:
+5
-5
@@ -23,32 +23,32 @@ using Poco::BinaryReader;
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
std::stringstream str;
|
||||
|
||||
|
||||
BinaryWriter writer(str);
|
||||
writer << true
|
||||
<< 'x'
|
||||
<< 42
|
||||
<< 3.14159265
|
||||
<< "foo bar";
|
||||
|
||||
|
||||
bool b;
|
||||
char c;
|
||||
int i;
|
||||
double d;
|
||||
std::string s;
|
||||
|
||||
|
||||
BinaryReader reader(str);
|
||||
reader >> b
|
||||
>> c
|
||||
>> i
|
||||
>> d
|
||||
>> s;
|
||||
|
||||
|
||||
std::cout << b << std::endl
|
||||
<< c << std::endl
|
||||
<< i << std::endl
|
||||
<< d << std::endl
|
||||
<< s << std::endl;
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user