[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

TCPL general

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 27
Thread images: 4

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;
}

>>
File: 1469335586407.jpg (30KB, 524x532px) Image search: [Google]
1469335586407.jpg
30KB, 524x532px
>>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
>>
File: clickety-clack-get-into-my-sack.jpg (128KB, 927x380px) Image search: [Google]
clickety-clack-get-into-my-sack.jpg
128KB, 927x380px
>>58526893
const 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?
>>
File: Screenshot_2017-01-17_10-58-46.png (166KB, 503x621px) Image search: [Google]
Screenshot_2017-01-17_10-58-46.png
166KB, 503x621px
>>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
Thread posts: 27
Thread images: 4


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.