cfnpipe.cpp

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

CPP
19
字号
// Listing 7-6
// Demonstrates the use of a npstream
// client.  This program is
// used with the program in Listing 7-5

#include "npipe2.cpp"



void main(void)
{


   char Message[] = "HELLO";
   npstream<char *> Client("\\pipe\\mypipe");
   Message[5] = '\0';
   Client << Message;
   cout << "To Server X = " << Message << endl;
}

⌨️ 快捷键说明

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