python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Comparisons between two strings don't work
I'm writing a menu and I try to choose a option with a string. Following the concerned part my program :
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "pen...
thomas rocheteau
Votes: 0
Answers: 1
What is wrong with it? This example from Head First C, does not run as it should be. I've tested every part but I jus't can't it figure out
#include <stdio.h>
#include <string.h>
char tracks[][80] = {
"I left my heart in Harvard Med School",
"Newark, Newark - a wonderful town",
"Dancing w...
RIBA
Votes: 0
Answers: 1
fgets() works wrong in for loop
I am trying to use fgets and fputs to copy-paste a file. I wrote in two ways, one in for loop, the other in while loop. While loop works perfectly, but for loop acts weird.
I tried to debug and wrote ...
kowalski
Votes: 0
Answers: 2