Questions tagged [bounce.c]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
29 views

Week 4 walkthrough: bounce.c (and other)

I would be grateful for the help on how to write and run such programs as bounce.c on Mac OS 10.7.5. I am using Appliance only partially, and have done all previous pests in Xcode, and used a ...
0
votes
1answer
67 views

How to execute the given instructions properly to get unzipped files of src4m.zip in pset3?

While trying to download the unzipped files as per instructions of "Braking out", I encountered a problem. The first time I executed the following instructions in the terminal, it did work and I got ...
1
vote
4answers
419 views

week 4 | walkthroughs | bounce | compiler error

jharvard@appliance (~/Dropbox/pset3): make ./bounce clang -ggdb3 -O0 -std=c99 -Wall -Werror bounce.c -lcs50 -lm -o bounce /usr/bin/ld: /usr/lib/debug/usr/lib/i386-linux-gnu/crt1.o(.debug_info): ...
1
vote
1answer
973 views

What do I get compilation errors when compiling bounce.c?

I copied the source code for bounce.c and tried to compile it, but I got these errors. This also happens for other programs that use the SPL. jharvard@appliance (~/new): make bounce clang -ggdb3 -...
2
votes
1answer
165 views

Why use `pause` function if `velocity` could be defined to a smaller value in the first place?

In bounce.c in Problem set 3, why is pause(10) used to slow down the circle when circle's velocity could be defined to a smaller value in the first place? I tried velocity = 0.005 and it seems to be ...