Coding in China be like

preview_player
Показать описание

Font used:
PT Mono

if (you_liked(this_video)) {
subscribe_to(SENTRY);
} else if (you_disliked(this_video)) {
subscribe_to(SENTRY);
} else {
subscribe_to(SENTRY);
}
Рекомендации по теме
Комментарии
Автор

The joke is that the program is asking for input, but in China public's opinion is not allowed.

asyncpipe
Автор

I thought the negative social credits were because you asked for user's opinions rather than hard-coding the government's.

VivekYadav-dsoz
Автор

I'll save this video. Go learn C and comeback to get it.
Edit : i end up learning python

minoroyale
Автор

We need a new ".ccp" file format

migueljara
Автор

Just replace 'input' with '(char *)argv'. If there's not enough memory then at least it's not your fault.

sprytnychomik
Автор

Started my CS major last year, teacher wouldn't shut up about scanf the entire semester, so this is what his classes felt like.

joaogarcia
Автор

The Actual reason for the unsafe code is that when he put "scanf("%s", input); There was a chance that when the user put more than 9 characters (including the null symbol) that scanf could override some data in next to that point in memory and write your input on some critical information.

He also asked for an opinion

Rsparing
Автор

It is rumored that when you divide 6 by 4 with '/' operator you will be invited to the local police station for tea

cat-.-
Автор

In China they don’t learn C. They learn A+

futuristic-
Автор

For those do didn't understand, this code is vulnerable to stack/buffer overflow

benjaminwaltermauss
Автор

the code says: "Taiwan is a country"

mr.haiwan
Автор

If you're ever coding date systems or anything that uses a calendar in China, just remember: June 3rd is immediately followed by June 5th. There is nothing in between.

jpheitman
Автор

0:23 Does anyone know where those corny smileys came from that keep getting used ironically in memes?
I do remember that they could be used in ICQ. Which makes them ancient by internet standards.

LinkEX
Автор

Redundant code in the description. -100 social credit.

pasijutaulietuviuesas
Автор

Not enough comments, *-5, 000 social credits*

alexwang
Автор

This is why Chinese have the best quality Linux wifi drivers.

deleater
Автор

Back after 10 months, thank you for getting me to learn C, it's my favourite language now :)

joshuaorthodox
Автор

As a programming student studying in China I can relate. Except we are coding in Dev-C++ in gcc 4.8

jopaslona
Автор

As a chinese which learning C++ I can confirm that if I don't return 0;, I'll get arrest

SmallLemonPRO
Автор

hint: scanf("%9s", string); // leave room for the null terminator.

should use char input[10] = {0}

-xb