lyxs.net
当前位置:首页 >> liBComputECpp.so >>

liBComputECpp.so

C++程序: #include using namespace std; void compute(float a, float b, float *sum, float *sub, float *pro) { *sum = a + b; *sub = a - b; *pro = a * b; } void gcd_gcm(int n, int m, int *gcd, int *gcm) { int temp; int n1, m1; n1 ...

#ifndef MD5_H #define MD5_H typedef struct { unsigned int count[2]; unsigned int state[4]; unsigned char buffer[64]; }MD5_CTX; #define F(x,y,z) ((x & y) | (~x & z)) #define G(x,y,z) ((x & z) | (y & ~z)) #define H(x,y,z) (x^y^z)...

enum op{dos,windows,xp,win7,vista};class computer{enum op op1;int men,hard;public:computer(int a,int b);void SetOp(op op2);int GetMen();int GetHard();op GetOp();};computer::computer(int a,int b){men=a;hard=b;}void computer::Set...

class Computer{ public: void start(); void end(); private: HDD hdd; CDROM cdrom; CPU cpu; };

这个是windows系统定义的,如果你的程序包含了windows.h这个头文件,就可以用系统定义的一些宏了。

让你打字填进去

Class Computer { public: Compuer(std::string cpu, std::string ram, std::string cdrom) : m_cpu(cpu), m_ram(ram), m_cdrom(cdrom) { } private: std::string m_cpu; std::string m_ram; std::string m_cdrom; };

#include #include int main() { using namespace std; int n,j; cout

估计上课的时候你泡妹妹去了。。哈哈。这个那么简单你都不能完成。

写几个小函数就可以了,看看书就可以搞定!

网站首页 | 网站地图
All rights reserved Powered by www.lyxs.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com