ITT: Share and rate each others code
http://pastebin.com/UmXHXwed
This is a drunken bishop program written by me.
>>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.
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;
}
>>54889771
No loops.
What the fuck /g/
>>54886636
rull