📄 cfnpipe2.cpp
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -