VS 2019+ ,make sure `X86 MODE`
the client.cpp and server.cpp were another main function to show this program. You can repalce the DH_A.cpp and DH_B.cpp in the project. Am I very cute? isn't?
1.If You got an Unexpected interruption,Just Restart it!!!
2.IF You got an error:eror:4996
Just add#pragma warning(disable: 4996)
to you project.(Some compilers was Just warnning 4996)
VS 2019或以上版本,选择x86模式,即可运行
1.如果使用中出现,无法建立连接,或vector报错。 原因为C++内置库函数vector在出入栈时的问题 关闭重新运行即可!!!
2.如果报错4996,部分编译器下只是警告不影响运行,如果是error:加上下面这条代码
#pragma warning(disable: 4996)