Omie Jay
gone
i got decent coverage of wifi in ASB when i used to hang there with friends..
mabe my laptop is just awesome, mabe its a certain room..
mabe my laptop is just awesome, mabe its a certain room..
rofl
lol FAIL.
ASB lifts cant tell what level it is in.
nah I'm doing a Computational Physics subject where we program in "c"@ Muimo: u doing comp1911? i got the course textbook from last year (PROGRAMMING PROBLEM SOLVING & ABSTRACTION WITH C, alistair moffat), rrp is like 65 i think, i sell to u for $30?
Hey does anybody here know how to program in C ?
#include <stdio.h>
int main(int argc, char *argv[]) {
printf("Hai fag\n");
return 0;
}
Code:#include <stdio.h> int main(int argc, char *argv[]) { printf("Hai fag\n"); return 0; }
how do i create functions ?
(obviously the main() is a function) but how do i make a function lets say making a function that squares a number.
how would i make that function and secondly how would i refer to it in my main program ?
Or if you want to pass arguments...#include <stdio.h>
void doYourMum(){
printf("I want to do your mum\n");
}
int main(int argc, char *argv[]) {
doYourMum();
return 0;
}
#include <stdio.h>
void doYourMum(int x){
printf("I want to do your mum %d times\n",x);
}
int main(int argc, char *argv[]) {
doYourMum(8);
return 0;
}
#include <stdio.h>
#define MAGIC_NUMBER 9001
void fun(int x);
int main (int argc, char* argv[]) {
printf("OVER NINE THOUSAND!!!\n");
fun(MAGIC_NUMBER);
return 0;
}
void fun (int x) {
for (int i = 0; i <= x; i++) {
printf("over 9000 ");
}
}
#include <stdio.h>
int main (int argc, char* argv[]) {
int i = 0;
while (i < 1) {
printf("penus");
}
return 0;
}