[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]

Code rating thread (drop em' here)

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

File: challenge.png (302KB, 1920x1080px) Image search: [Google]
challenge.png
302KB, 1920x1080px
ITT: Share and rate each others code

http://pastebin.com/UmXHXwed
This is a drunken bishop program written by me.
>>
File: programming_challenge.png (1MB, 3840x2160px) Image search: [Google]
programming_challenge.png
1MB, 3840x2160px
>>
>>54886424
$ curl --silent 'http://boards.4chan.org/g/thread/54886424/code-rating-thread-drop-em-here' \
| grep -o 'href=...i.4cdn.org.[a-z]*.[0-9]*\.[webm|jpg|jpeg|png|gif]*' \
| sed 's/^.*\/\///g' \
| xargs wget -nc -q
>>
>>54886636
fucken rollen
>>
>>54887164
Not doing that, rerollen
>>
>>54886636
someone should make it 250 challenges
>>
>>54886636
Programming newbie, but I suppose I can try.
Rolling.
>>
File: 1461082929678.png (311KB, 652x669px) Image search: [Google]
1461082929678.png
311KB, 652x669px
Rate my code. ;P #GirlsWhoCode
>>
>>54889238
I don't understand, what is wrong with this?
>>
>>54889771
A simple loop could do the same thing without copy-pasted lines of code.
>>
>>54886424
let it roll
>>
>>54889771
>what's wrong with a page long if else chain
>>
>>54886636
rollin
>>
>>54886636

Rollin'
>>
>>54886636
roll
>>
>>54886636
Rolle
>>
>>54886424
ayy
>>
>>54886636
Roll
>>
>>54887291
project euler
>>
>>54886636
Rolling
>>
>>54886636
Just fuck me up pham
>>
>>54886636
man I couldnt even do half of it, well lets see
>>
>>54886636
rull
>>
Way too easy (don't know how to do code box)

#include <iostream>

using namespace std;

int main() {

cout << "Enter a number: ";
string num;
cin >> num;

int start = 0, end = (num.length() - 1);

for (int i = 0; start < end; i++)
{
char temp = num[start];
num[start] = num[end];
num[end] = temp;
start++; end--;
}

cout << "The number is: " << num << endl;

return 0;
}
>>
>>54893861
>>54893990
>>
File: street signs.jpg (58KB, 686x597px) Image search: [Google]
street signs.jpg
58KB, 686x597px
>>54889771
No loops.


What the fuck /g/
>>
>>54886636
rull
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.