文章分类 - C++
摘要:为了能用上原来的C++代码,只好研究下从C# 中调用DLL首先必须要有一个声明,使用的是DllImport关键字: 包含DllImport所在的名字空间[csharp] view plaincopyusingSystem.Runtime.InteropServices;publicclassXXXX...
阅读全文
摘要://代码一,主要是标准头文件的引用,及“::”作用域,定义变量并初始化,std::cout,std::cin#include <iostream> //标准头文件的引用/* Simple main function: Read two numbers and write their sum */int main(){// prompt user to enter two numbersstd::cout << "Enter two numbers:" << std::endl; int v1 = 0, v2 = 0; //定义变量并初始化
阅读全文