Posts

File Processing

Processing a file in C is surprisingly easy all you have to do is declare a file FILE *fileVar like so. whenever you want to open a file all you have to do is fileVar = fopen("fileName.ext","mode"); there are many types of mode: r Open for reading. If the file does not exist, fopen() returns NULL. rb Open for reading in binary mode. If the file does not exist, fopen() returns NULL. w Open for writing. If the file exists, its contents are overwritten. If the file does not exist, it will be created. wb Open for writing in binary mode. If the file exists, its contents are overwritten. If the file does not exist, it will be created. a Open for append. i.e, Data is added to end of file. If the file does not exists, it will be created. ab Open for append in binary mode. i.e, Data is added to end of file. If the file does not exists, it will be created. r+ Open f

Cloud Computing

New topic New question what is cloud computing? Cloud computing is a shared pools of computer system resources and high-level services that can be maintained with minimal effort over the Internet. Three types of service model: Platform as a service (PAAS) Infrastructure as a service(IAAS) Software as a service (SAAS) Cloud Types: there are three types of cloud 1. Public Cloud: public cloud is open for general use and is usually free 2. Private Cloud: a private cloud is usually owned by an organization, although there's little to no difference with public cloud the security is a lot more tight 3. Hybrid Cloud: hybrid cloud combines the two types of cloud and bound them together. why should we use cloud? efficiency flexibility  disaster recovery security and many more

Function and Recursive

ola you might think when learning about function it's a hard part of programming but fret not for it is an easy process and it'll make your programs a lot more cleaner and tidier. when defining a function you may use any data types as long as you're able to use return, if for some reason you don't want to use return you might find void data type a lot more useful. don't forget whenever you want to use function you'll also need parameter in it. int functionName( int parameter1, int parameter2, ...){  some program;  return; } int main(){  someVariable = functionName(para1,para2,...);  return 0; } that's the basic when calling an int based function void funcName(int para1, int para2, ...){  some program } int main(){  funcName(para1,para2,...);  return 0; } when using void you don't need th return command as the function will do everything inside it. now what about recursive.????? all you have to know about recursive is

Pointer and Array

Pointer What is Pointer? Pointer is a variable that store the value of another variable. Basically, a pointer isvariable that points at another variable when it is called, hence the name "Pointer". How to use it? It's rather easy to use pointer. int a; int *pointer; *pointer = &a; Notice the difference? that's right a pointer use '*' before the variable and the designated variable needs '&' as it is a symbol for the address of a variable. "But can i point a pointer using a pointer?" Well folks you're in luck because fortunately we could point a pointer with another pointer.   int a; int *pointer; int **point; *pointer = &a; **point = &pointer; to point another pointer we could just put another '*' behind the variable but wait, WHAT'S THE LIMIT? My friend, the limit is your imagination so use as many pointers as you want Array What is an Array?   Array is structures of

Algorithm Programming - Repetition

REPETITION           As a programmer when writing a program you may encounter problems where you need to run a block several number of times. Generally, programs run codes in order from top to bottom or sequentially; first line then second line and so on, this is where Repetition shines the brightest What is a repetition?           Repetition also known as looping is a type of function that repeats a single or more block of codes several number of times. To simplify it we could also say repetition in programming is the same as things we do in our daily routine e.g eating, showering etc. There are 4 kinds of repetition: 1. For 2. While 3. Do...While 4. Nested loop What we'll be learning this time is For loop. What is For loop?          For is used for repeating certain tasks in a specific number of times. the structure of For is as follows. For(initialization; condition; increment or decrement){          statement(s); } initialization is a single dec