就要毕业了,无奈运气不好,选了中国象棋编程这个题目,小弟本身编程能力很弱,而且C#以前就学了一个月,基本连入门都不是。象棋棋盘是用Graphics函数画的,当然借鉴了别人的源码,象棋棋子本人用的是PictureBox控件,一个棋子用这么一个控件然后一一贴图,可能是最笨的一种方法了。但是现在贴好之后不知道怎么样控制这些棋子的移动,求高手指点
这是贴完图后的……继续阅读 »
10年前 (2015-11-16) 1971浏览
0个赞
void cvCalibrateCamera2( const CvMat* object_points, const CvMat* image_points, const CvMat* point_counts, CvSize image_size, CvMat* intrinsic_matrix, CvMat* distortion_coeffs, Cv……继续阅读 »
10年前 (2015-11-15) 1347浏览
0个赞
visual studio2010
设置断点调试时提示无可用源,调用堆栈位置ftol2-sse,如图所示。
但是不设断点,整个程序运行时候又没问题,这是怎么回事,求高手
解决方案:10分
出现这种情况的时候点主菜单“Debug”=>“窗口”=>“反汇编”,或直接按Ctrl+Alt+D
解决方案:10分
应该是微软没提供函数对应的符号表。所……继续阅读 »
10年前 (2015-11-15) 3709浏览
0个赞
有没有好点的例子可供参考(C++的)
解决方案:35分
ppt的还是word的
解决方案:5分
最新版MSDN里面应该有用C#开发Office插件的例子。
……继续阅读 »
10年前 (2015-11-15) 1628浏览
0个赞
以下是本人写的一个字符串的逆序函数:
void reverse2(char *s)
{
int i=0,j;
char *p1;
p1=s;
int len;
len=strlen(s);
char temp;
while(len>0)
{
temp=*(s+len-1);
*(s+len-1)=*(p1+i); //运行……继续阅读 »
10年前 (2015-11-15) 1283浏览
0个赞
Rational.h
#ifndef RATIONAL_CLASS
#define RAIIONAL_CLASS
#include <iostream>
using namespace std;
class Rational {
private:
int numerator, denominator;
static int digits(dou……继续阅读 »
10年前 (2015-11-15) 1113浏览
0个赞
1 #include<iostream>
2 #include<string>
3 using namespace std;
4
5 int main(){
6 const string hexdigits=”0123456789ABCDEF”;
7 cout<<……继续阅读 »
10年前 (2015-11-15) 1024浏览
0个赞
#include <iostream>
using namespace std;
class CPoint
{
public:
unsigned x;
unsigned y;
bool IsInCircle(CCircle *circle)
{
return (((x – circle->Center.x) * (x R……继续阅读 »
10年前 (2015-11-15) 1606浏览
0个赞
class Person
{
public:
Person(){};
~Person(){};
friend ostream& operator<<(ostream& os, const Person& p)
{
os << "本人是" &……继续阅读 »
10年前 (2015-11-15) 984浏览
0个赞