探求出c++、c的知识
现在有关c++、c的书籍,那些书是较深层次的?请介绍几本?
#include <iostream>
using namespace std;
int funhion(int x, int y )
{
int m,n;
if(x>=y)
{
m=y;n=x;
}
if(y>x)
{
n=y;m=x;
}
while(((n%m)!=0)||((x%m)!=0))
{
m=m-1;
}
return(m);
}
int main()
{
int x,y;
cout < <"输入两数:";
cin >>x>>y;
cout < <"最大公约数和最小公倍数是:" < <funhion(x,y) < <"," < <x*y/funhion(x,y);
return(0);
}
看下其中的错误
深度探寻c++model,c++沉思录
相关问答:
#include <stdio.h>
#include <graphics.h>
void main()
{
int x0,y0,x1,y1,driver,mode,i;
driver=VGA;
mode=VGAHI;
initgraph(&driver,&mode,&qu ......
//C 接口
extern "C"
{
TESSDLL_API int __cdecl GetTessText(const char *imagefile, char *text);
}
//我在C#中声明
//调用C DLL 中的函数
[DllImport("OCRapi.dll&quo ......
目前遇到的问题是:
存放在远程服务器端c/s程序一有更新,如何做到客户端立即响应弹出有最新升级的提示窗口。
本来有点思路:采用WCF+windowns服务+定时器的方式也能实现,但是每台客户端机子每隔都去访问一下远程 ......
请问用C或C++如何编写求解3D魔方的程序,该从何开始?
谢谢各位,帮忙提点建议吧。
http://www.mofang.net/code/176/182/6581.html
我只能突破60秒!唉。
我刚过40秒
google的android中有个OpenGL ES + ......
内容涉及:C、C++、STL、VC++、MFC、COM、ATL、Windows网络编程、数据库编程、Windows驱动编程、软件工程、Windows操作系统编程,等等方面。
下载地址:http://www.cctry.com/forumdisplay.php?fid=46
......