Questions tagged [capitalize]
The capitalize tag has no usage guidance.
5
questions
0
votes
1answer
20 views
PSET5: Missing Words from Text and Memory Leaks
UPDATE: I just fixed the capitalized spell-checking errors.
UPDATE 2: free didn't totally free the string "caterpillar". Look at image:
My code seems to encounter a weird bug where it does ...
0
votes
2answers
679 views
initialize doesnt capitalize
This is my code for initialize....what did I do wrong and what can i do to fix it.
#include <stdio.h>
#include <cs50.h>
#include <ctype.h>
#include <string.h>
#include <...
1
vote
2answers
24 views
Why 'a'-'A', instead of 32
In the lectures and the walkthroughs for Week 2, David goes through a capitalize program. He makes a point of using the subtraction 'a'-'A' rather than simply the value 32 in order to change the case ...
0
votes
1answer
54 views
Is it “OK” to leave out the variable `n` in the “capitalize” walkthough from pset2?
I normally watch the video and then switch to my editor program and rebuild it out of memory following my logic and the tools I just learned.
So I programmed it a little bit different and wondered if ...
3
votes
2answers
2k views
How to Declare and Initialize Variables in C?
While I was watching the walkthrough for pset2 (capitalize), I noticed that David didn't declare a variable in his program. However, it still worked and I was wondering why.
I tried to implement my ...