All Questions
3 questions
2
votes
1
answer
2k
views
why do we pass arguments to the main function?
I did not understand that ,why do we pass arguments to the main function?
for example in pset3 generate.c main {int argc,string argv[]}.
please explain?
0
votes
1
answer
267
views
Breakout main function will not move the paddle or the ball
I have created the paddle, ball, and bricks, but when I write the code to make paddle move nothing happens. I tried to write the ball movement code also but that doesn't work either. I think I am ...
0
votes
1
answer
3k
views
pset3 helpers c, linear search
bool search(int value, int values[], int n)
{
// TODO: implement a searching algorithm
for (int i = 0; i < n; i++)
{
if(values[i] == value)
{
return i;
...