Questions tagged [problem]

The tag has no usage guidance.

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

What error is resulting in incorrect values for change?

My code follows: // include all necessary header files #include <stdio.h> #include <cs50.h> #include <math.h> // define all coin values #define QUARTER 0.25 #define DIME 0.10 #...
0
votes
2answers
57 views

Problem Set 1, Cash: maths issues

I have been trying to fix this code for the last day, and still can't work out where I am going wrong. Can anyone point me in the right direction please? Thanks in advance! int main(void) { // ...
0
votes
0answers
154 views

React-Native obfuscation

How to obfuscate my react-native JS code? I have set the following in my build.gradle file: release { minifyEnabled true proguardFiles getDefaultProguardFile("proguard-android.txt"), "...
0
votes
2answers
38 views

My vigenere code is not encrypting properly

This is my code: #include <stdio.h> #include <ctype.h> #include <cs50.h> #include <stdlib.h> #include <string.h> int main(int argc, string argv[]) { int index =0; ...
0
votes
0answers
266 views

CS50 pset7 application.py buy - problem: won't insert information into new table

I've tried this a bunch of different ways and I can't get it to work. Everything seems to work. The total price of the bought shares gets subtracted from the users table, but I can't get it to ...
0
votes
0answers
268 views

CS50 IDE not saving files

I've had this problem before where I've saved a file, run make, gotten errors, fixed the errors, saved the file, run make and got the exact same errors. When I refresh, or close and return, update the ...
0
votes
1answer
63 views

pset2 segmentation fault

I have one problem with this code please help me! #include <stdio.h> #include <cs50.h> #include <string.h> #include <ctype.h> int main(void) { ...
0
votes
1answer
151 views

Code check for bad credit pset1

This is my attempt for the bad credit problem in pset1 and I'm having trouble debugging my code. Any help would be appreciated. #include <stdio.h> #include <cs50.h> bool checksum(long ...
0
votes
1answer
84 views

Do I have to Resubmut The Form W/ The Problem Set?

I submitted everything and got a 0.68 (Mario had all 0s because I forgot to cite my code). Then I resubmitted it without the form and got 0.04, only everything worked. Then I resubmitted it again ...
0
votes
1answer
214 views

hello.c Problem Set 1 problem - make: *** [hello] Error 1

I'm stuck on the hello.c file. My code is: int main(void) { printf("hello, world\n"); } I've checked to make sure that I'm in the right directory. However, when I type make hello, the terminal ...
0
votes
1answer
62 views

I have some questions with Scratch.(I am a beginner)

I have some questions now, I don't know how it works. please teach me these knowledge if you know it, thanks a lot. this is my first project, I have some questions. question: I want to let Tera have ...
0
votes
1answer
139 views

I don't know why my code isn't working? | Pset2 CS50

I don't understand why my code for pset2 isn't working. The goal is to use a shift key, given by the user, and then shift all the letters in a string, also given by the user, that amount of spaces, in ...
0
votes
1answer
68 views

CS50; Problem Set 3 - can't make/execute “window.c” - please help!

Could you please help me with Problem Set 3. Paragraph "Breaking Out". After unzip src4m.zip I see: Makefile button.c click.c label.c pointers.c sigma-1.c text.c bounce.c checkbox.c ...
1
vote
2answers
128 views

Yet again, problem with padding

I am having a problem with my code, and I think it has to do with the use of fseek. I have read a lot of the articles on the cs50 Stack Exchange, and tweaked my code a lot, but my problem still ...
0
votes
1answer
105 views

What's wrong with this code?

Well, I don't know what's the matter with this code (Mario). When I run it, the terminal goes crazy, like a thousands enters are triggered, the "craziness" of the terminal don't stop, I have to quit ...
0
votes
1answer
197 views

Answers for all problem sets

Is there proper answers to all the given problems set every week directly? if so where?
1
vote
2answers
200 views

Approaching pset1?

I'm a 16 year old student trying to grasp the concepts of C in Week 2 of the course and I'm definitely struggling quite a bit - I'm at a loss for where to start with my Mario project. To help myself, ...
1
vote
1answer
46 views

Problem Sets Not Following Week Headers

I am seeing Problem Set 0 in Week 1. Week 1's section is about the appliance and not the scratch program. Why do they seem to be offset in the EDX setup?
2
votes
2answers
112 views

I cannot submit my problem set 0?

I used the link given in the PDF for problem set0.It was accessible for the first three times.But due to some reasons I could'nt submit it and so closed the link.This time when i try to submit them ...
0
votes
2answers
208 views

My VMware Player and Virtual Box is not working!

All day i have been trying to setup CS50 appliance and downloaded VMware Player and Virtual Box but BOTH were giving errors. I uninstalled both and reinstalled them, but no luck. Please help! (sorry, ...