Thursday, January 21, 2010

OOP344 - Using SVN

I learned today how to use SVN :
1) Check out: to get the code out of the repository.
2) Work with code :
A) add : is to add information to the repository.
B) Modify or Edit : to change and fix the code you have.
3)Update : to make sure your code is up to date if any member has changed any thing .
4) Commit : to commit the changes you've made to the code

I learned that
for (i=0,j=0;i<10;i++,j++){//some code
}
is the same as
i=0;
j=0;
while (i<10){//somecode
i++;
j++;
}
and that
for (i=0,j=0;i<10;i++,j++){//some code
}
it's okay to put two operations in the same place in the for loop as long as they are separated by comma( ,)
but it's ot okay to put two comma seprated operations at the condition part becuase it doesnt' make sense like
for (i=0,j=0;i<10,j<10;i++,j++){//some code
}
in this case which one is the condition so if you want them to be executed together you can join them with && or ||

I enjoyed learning these things

0 comments: