C++ DOS Chess

I'm trying to make a Chess game that runs on Dos in C++

  • (2 Pages)
  • +
  • 1
  • 2

20 Replies - 4871 Views - Last Post: 14 July 2009 - 07:32 PM Rate Topic: -----

#16 AGRAC393  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 3
  • View blog
  • Posts: 248
  • Joined: 13-May 09

Re: C++ DOS Chess

Posted 14 July 2009 - 05:06 PM

WAIT! I see they beat me to helping you, but at least they answered your question! You must never give up on any language! You can never know too many languages... It's good to atleast know the basics...
Was This Post Helpful? 1
  • +
  • -

#17 Glorfindal  Icon User is offline

  • Java Enthusiast
  • member icon

Reputation: 23
  • View blog
  • Posts: 538
  • Joined: 31-December 08

Re: C++ DOS Chess

Posted 14 July 2009 - 05:07 PM

Then could you show me the error so I can know this valuable function in the future?
Was This Post Helpful? 0
  • +
  • -

#18 xPurplex  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 10
  • View blog
  • Posts: 93
  • Joined: 17-June 09

Re: C++ DOS Chess

Posted 14 July 2009 - 05:08 PM

NO! Don't give up like that! The error means that you never created "input" just add
int input;
and it should work perfectly.

EDIT: but the others are right: chess is not a good project to learn if/else statements on. If you jump ahead too fast, you'll find yourself giving up like you just did a second ago.

This post has been edited by xPurplex: 14 July 2009 - 05:10 PM

Was This Post Helpful? 1
  • +
  • -

#19 Glorfindal  Icon User is offline

  • Java Enthusiast
  • member icon

Reputation: 23
  • View blog
  • Posts: 538
  • Joined: 31-December 08

Re: C++ DOS Chess

Posted 14 July 2009 - 05:11 PM

Thank you!
Was This Post Helpful? 0
  • +
  • -

#20 xPurplex  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 10
  • View blog
  • Posts: 93
  • Joined: 17-June 09

Re: C++ DOS Chess

Posted 14 July 2009 - 05:11 PM

anytime =D
Was This Post Helpful? 0
  • +
  • -

#21 jjl  Icon User is offline

  • Engineer
  • member icon

Reputation: 1072
  • View blog
  • Posts: 4,532
  • Joined: 09-June 09

Re: C++ DOS Chess

Posted 14 July 2009 - 07:32 PM

i see your using printf and cout. I would just use cout for bettter c++ practice. remove all your system("pause"); commands and just place a cin.get(); before your return 0;
Was This Post Helpful? 0
  • +
  • -

  • (2 Pages)
  • +
  • 1
  • 2