Questions tagged [cs50x2023]
The cs50x2023 tag has no usage guidance.
7 questions
0
votes
1
answer
42
views
CS50 2023 Problem Set 1 Mario-more Check50 incorrect?
I am fairly confused with the Check50 results.
I seem to have written the correct code for this problem and all testing shows its working as intended. My code is below:
#include <cs50.h>
#...
0
votes
0
answers
23
views
Need help with speller.c
So, when I was testing my code for pset5's speller, I ran it and it worked not so well, to be honest, heres my code if you wanna know:
#include <ctype.h>
#include <stdbool.h>
#include <...
0
votes
1
answer
35
views
I keep getting an error or my code doesn't run , what should i do?
I am trying to use selection sort to sort the list in descending order and I have been on it , just having absolutely no progress. I don't know what to do anymore! This is my latest trial
// Practice ...
0
votes
1
answer
64
views
i keep seeing this line underlined with an error that says "using the result of an assignment as a condition without parentheses"
The program is not complete but here is the line causing me issues...
string replace(string argv[1]);
string output ="";
for (int i = 0; output = strlen(argv[1]); i < output; i++)...
0
votes
1
answer
21
views
Argument list in c
what is an argument list in c? Please I need a very simple explanation that if possible I'll remember for life! also... show me one containing an array
0
votes
1
answer
11
views
'i' is undefined error
i am trying to calculate hours it takes to complete each week depending on if user asks for total or average, this is not the full code but the part shown is one that should do the calculation. I am ...
0
votes
1
answer
594
views
I need help to fix my selection sort code - Practice Problems (Average High Temperatures)
I need help fixing my code. I don't know what else to do, I've been trying to sort all the temps array in descending order. But I don't know what I'm doing wrong. Can you help me saying what things I ...