Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
The problem set for Week 2 continues with the C programming language used in problem set 1.
0
votes
1
answer
96
views
function prototype
#include <stdio.h>
#include <cs50.h>
int animalCategory(void); //function prototype
int currencyCategory(void); //function prototype
int scienceCategory(void); // function prototype
int main()
{
…
0
votes
1
answer
18
views
function declaration
my code
#include <stdio.h>
#include <cs50.h>
int animalCategory(void); //function prototype
int currencyCategory(void); //function prototype
int scienceCategory(void); // function prototype
int mai …
0
votes
1
answer
164
views
done with initials coding pset2
~/workspace/pset2/ $ make initial1
clang -ggdb3 -O0 -std=c11 -Wall -Werror -Wshadow initial1.c -lcs50 -lm -o initial1
~/workspace/pset2/ $ . … /initial1 olarinde ayodeji
.OASegmentation fault
~/workspace/pset2/ $
Any reason for the segmentation fault? …
0
votes
1
answer
382
views
working with caesar's cipher
below is my code for caesar's cipher but for some reason it doesn't print anything.
/* a program, caesar, that encrypts messages using Caesar’s cipher*/
#include <stdio.h>
#include <cs50.h>
#include …
0
votes
1
answer
158
views
practising initials
/home/ubuntu/workspace/pset2/ $ make initials
clang -ggdb3 -O0 -std=c11 -Wall -Werror -Wshadow initials.c -lcs50 -lm -o initials
initials.c:5:1: error: type specifier missing, defaults to 'int' [-Werror … ^
initials.c:8:22: error: use of undeclared identifier 'N'
string Last_name[N];
^
3 errors generated.
make: *** [initials] Error 1
/home/ubuntu/workspace/pset2 …
0
votes
1
answer
145
views
still practising initials 1
~/workspace/pset2/ $ make initials
clang -ggdb3 -O0 -std=c11 -Wall -Werror -Wshadow initials.c -lcs50 -lm -o initials
initials.c:12:23: error: format specifies type 'char *' but the argument has type …
1
vote
pset2 initials directory problem
Besides that, make sure you include,
int main(void)
since you are working in the main function.
-1
votes
Trying to Increment Characters in a String
If you meant iterating through the characters in the string, then you can use a for loop to do that.