cfnpipe2.cpp

来自「这是c++编程方面的名著的例子代码」· C++ 代码 · 共 25 行

CPP
25
字号
// This program is from Listing 7-8
// This program is used with the program
// from Listing 7-7
// It used the named pipe npstream class

#include "npipe2.cpp"



void main(void)
{


   int Size;
   int N;
   int Value;
   npstream<int> Client("\\pipe\\mypipe");
   Client >> Size;
   for(N = 0; N < Size; N++)
   {
       Client >> Value;
       cout << "From Server " << Value << endl;
   }

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?