Questions tagged [hashes]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
33 views

How do I make the pyramid in mario.c less render normally?

#include <cs50.h> #include <stdio.h> int main(void) { int n; do { n = get_int ("Height: "); } while (n < 1 || n > 8); for (int i = 0; i < n; i++) { for (int j = (i - ...
0
votes
1answer
54 views

pset1: Printing too many hashes

for the past few weeks I've been struggeling with making the half-piramid in pset1. I managed to come up with this code that prints the height of the piramid according to the user input, but after ...
0
votes
1answer
82 views

Understanding for loops and lingering questions I need answered before moving on!

I coded this and it passes. I just want to understand it much better than I do at this moment. I got hung up on a few of things and found the solutions online to those questions I was having but I ...
0
votes
1answer
65 views

Falling to put hashes in every line in mario.c

I manage to put the base of the pyramid and the rows needed, but I fail to put hashes before the base. #include <cs50.h> int main(void) { printf("Height: "); int Height; do { ...
0
votes
3answers
182 views

pset1 not printing hashes for mario

#include <stdio.h> #include <cs50.h> int main(void) { int height; do { printf("Please give an integer that is less than 23 and greater than 0: \n"); rows = GetInt(); printf("Height:%i\...
0
votes
2answers
114 views

Hash tables running time

In the week 6, it was said for hash tables that - "We could even combine names and birthdays somehow to create a larger hash table that’s even more uniform and have smaller chains, and be even faster" ...
0
votes
2answers
1k views

Tips on spaces and hashes Mario

So I've been on Mario for about a week now and I have the user input part and the rows right, and I just need someone to give me tips or how to get started on the spaces and hashes, and btw I really ...
0
votes
1answer
552 views

Mario help! Spaces and hashes do not match the code

This is what my program outputs: Please give me an height for your tower between 0 and 23. 4 ....### ...## ..# . jharvard@appliance (~/Dropbox/pset1): The meat of my code for running this is below: ...
0
votes
2answers
465 views

pset1 Mario. Spaces work, hashes don't and i can't see why

So I have been working on CS50's pset 1, making marios half pyramid. I have been looking over other problems on this site and I've gotten this far. But I can't seem to see what the problem is with my ...