C programming general
My favourite programming language general? Yes!
>>58526569#include <stdio.h>
int main (void){
while(1){
puts("Enter your number");
int num;
scanf("%d", &num);
puts(num%3==0?(num%5==0?"FizzBuzz":"Fizz"):(num%5==0?"Buzz":"No fizz or buzz for you m80."));
}
return 0;
}
>>58526655
that's pretty leet, anon
>>58526569
>>58526655
Ayy wtf#include <stdio.h>
int main (void){
while(1){
puts("Enter your number");
int num;
scanf("%d", &num);
puts(num%3==0?(num%5==0?"FizzBuzz":"Fizz"):(num%5==0?"Buzz":"No fizz or buzz for you m80."));
}
return 0;
}
>>58526655
>>58526672
I'm sorry I am not used to use code blocks in 4chen, but why the fuck is it breaking?
#include <stdio.h>
#include <stdlib.h>
void f(int j)
{
static void (*const ft[2])(int) = { f, exit };
printf("%d\n", j);
ft[j/1000](j + 1);
}
int main(int argc, char *argv[])
{
f(1);
}
>>58526569
std::cout<<"Get with the times, we C++"<<17<<" now"<<std::endl;
std::cin>>butthurt;
>>58526655
For those that don't understand this meme: https://css-tricks.com/tales-of-a-non-unicorn-a-story-about-the-trouble-with-job-titles-and-descriptions/
literally the worst book about C i've read. Such an outdated meme at this point.
>>58526703
>>58526719
#thread rule: post your fizzbuzz before your shitty opinion
>>58526703
how can she still convince herself she's skilled enough to be an engineer?
this is the most fucked up thing i've read all year
>>58526703
it's like they learn all the unimportant stuff and skip the important stuff yet still feel entitled to a job
>b-bu-but i can use PHOTOSHOP
yeah, so can any 14 year old in america
>>58526725
Did ya even read the article? It demonstrates why women shouldn't be outside the kitchen.
what is the best resource for starting with C?
i have a semester of python and oop under my belt
>>58526844
knr
>>58526844
top quality bait
>>58526856
fish
>>58526856
actually, i didn't say this, but i'm more interested in a project that can introduce me to low level networking with C.
any ideas?
Want to test your C and x86 assembly skills?
Tell me what this code outputs if compiled on Linux for IA-32.
http://pastebin.com/GQPnUi7d
>>58526893const char *data =\
"\x8b\x44\x24\x04\x8b\x5c\x24\x08"
"\x8b\x00\x8b\x1b\x31\xc3\x31\xd8"
"\x31\xc3\x8b\x4c\x24\x04\x89\x01"
"\x8b\x4c\x24\x08\x89\x19\xc3\x90"
"\x55\x89\xe5\x8b\x45\x04\xc9\xc3"
"\x55\x90\x90\x89\xe5\x90\x90\x90"
"\x8b\x45\x08\x89\x45\x04\xc9\xc3"
"\x60\xe8\x05\x0c\x0c\x0f\xcc\xc0"
"\x17\x0f\x12\x0c\x04\xc1\x60\x00"
"\x20\x47\x4f\x54\x4f\x00\x43\x4f"
"\x4e\x53\x49\x44\x45\x52\x45\x44"
"\x00\x48\x41\x52\x4d\x46\x55\x4c"
"\x20\x00\x69\x6e\x73\x74\x61\x6c"
"\x6c\x20\x67\x65\x6e\x74\x6f\x6f";
I aint running that shit, nigga
>>58526889
beej's guide to networking
>>58526889
How low level?
>>58526921 is really good for a general introduction to socket programming.
who GLib here?
>>58526919
It's harmless anon, it only outputs "goto considered harmful" and "Hello, world!"
I also added a watermark to prove that I wrote it, see pic.
>>58526921
i love you
>>58526725
Doc we are usually on the same page, it hurts me to see you attack me like this.
>>58526784
>>58527182
sorry. The rule still stands though