[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Code rating thread (drop em' here)
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 27
Thread images: 4
File: challenge.png (302 KB, 1920x1080) Image search: [Google]
challenge.png
302 KB, 1920x1080
ITT: Share and rate each others code

http://pastebin.com/UmXHXwed
This is a drunken bishop program written by me.
>>
File: programming_challenge.png (1 MB, 3840x2160) Image search: [Google]
programming_challenge.png
1 MB, 3840x2160
>>
>>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 (311 KB, 652x669) Image search: [Google]
1461082929678.png
311 KB, 652x669
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 (58 KB, 686x597) Image search: [Google]
street signs.jpg
58 KB, 686x597
>>54889771
No loops.


What the fuck /g/
>>
>>54886636
rull
Thread replies: 27
Thread images: 4

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

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.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.