python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
I´m making a simple tic-tac-toe game in C and it ends after the first input
I have this problem and I don´t know what´s wrong. The code doesn´t have any errors or warnings but it always take the first if statement of the checkVictory function as correct.
I've tried comparing ...
Jaime
Votes: 0
Answers: 1
How can I combine two similar while loops in C?
I am going through K&R C and am currently trying to make my code for Exercise 1-22 more readable. I have two loops like so
while (spaces != 0) {
buf[pos]=' ';
++pos;
--spac...
SeetheMoar
Votes: 0
Answers: 1
How do I tell my program to go back to a certain point after the wrong answer is selected?
In my midterm CYA game, you come across 2 staircases, left and right. You have the option to choose which one you go to, the right advancing you and the left (eventually) sending you back because it i...
MEDAKk
Votes: 0
Answers: 1
Python is not running my codes in else statement
I am doing the first Hog project for CS61A, a UC Berkeley Intro CS course that publishes all its materials online, to self-study CS(Link:https://inst.eecs.berkeley.edu/\~cs61a/sp20/) For its first que...
Miller Yuan
Votes: 0
Answers: 1