No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Hey, I've written a tic tac toe program. Computer makes some random moves, but i want it to be smarter and make some intellegent moves. any idea how to approach it? here's the code i've written. Although it's not that high-level, it's working fine. [CODE]#include<stdio.h> #define BOARDSIZE 9 #define USER … |
|
hey! I'm working on a program that part of it asks for an integer input. then if the value entered is not an integer, it should print an error message. If not, then the rest of program (which I've got partly complete). But, I have no idea how to distinguish … |
|
what is a newline character and what does it do? for example, what does " variable != '\n' " mean? And is there any other way to write" if (variable != '0' && variable != '1' && variabel != '\n') "? I've tried " if (variable < '0' && variable … |
|
hey there; i wanted to write a program to convert binary to decimal. i did that using the " character approach". it works just fine. then i decided to enhance the program by adding an error message whenever the input are invalid (i.e anything other than 0, 1 ), but … |