I'm using the CS50 IDE for the course. My code is as follows:
#include <stdio.h>
#include <string.h>
int main(void)
{
Type: Posts; User: mcavanaugh8
I'm using the CS50 IDE for the course. My code is as follows:
#include <stdio.h>
#include <string.h>
int main(void)
{
Do you know why my compiler might tell me to put a semicolon at the end of my for() statement but when I add the semicolon, it asks me to take it away? This is incredibly frustrating lol.
I believe I was simply over-thinking the whole thing, assuming for some reason that I needed some kind of function that returned you to the start, rather than just using an if / else or while loop....
Yup, that is the correct formatting for the pyramid.
And ohh, that makes sense now--thanks! I think I've also figured out that the number of spaces is equal to height - rows, so I think some...
Thanks for the reply! This is actually something I've had trouble figuring out. The cs50 class provides its own library with premade functions that are "training wheels," of sorts. I've used those...
Thanks for the reply, Elkvis!
Thanks for catching the mistake with the range of my condition--and I'm not sure why I put ||, I actually meant &&.
The forum messed with the formatting--in the...
Hey all!
So I'm taking the Harvard CS50 course online in my free time to help me learn some coding / computer logic. I've worked through some of the problems in Problem Set 1, but am stuck on the...
Thanks! So I fixed the first part, with your help. However, I'm still having issues with the input verification part. It's not so much an issue with getting separate feedback if the user puts in...
Ah, thanks! For some reason, I was under the impression that the number inside of the [] brackets was the length of the array--maybe that is just for characters? If not, I must have misunderstood...
Hey all! Still very new to C; trying to learn during my free time after work, when I have it, whether on edX, codeacademy, or through some texts. Anyway, I have the following code:
#include...
That's quite the document haha.
Thanks so much for your help!
Ah, the latter idea makes a lot of sense. Thanks!
This might be a silly question, but what is the best way to get to know the C libraries and which functions exist within them? For example, I read...
Hey everyone,
First time posting, glad to be a part of the forums! I have a keen interest in computer science, and programming in general, and this forum seems like a tremendous resource to help...