Page 7 of 11 FirstFirst ... 56789 ... LastLast
Results 61 to 70 of 110

Thread: ask a thing at me

  1. #61
    Cloud13's Clown Reputation: 328
    postrook's Avatar
    Join Date
    Jun 2012
    Posts
    2,851
    Rep Power
    11

    Default

    no. i'm as confused as you probably are about why this went so long, compared to the others
    Last edited by postrook; 06-14-2014 at 01:50 AM.

  2. #62
    Super Moderator Reputation: 424

    Join Date
    May 2006
    Posts
    6,646
    Rep Power
    21

    Default

    Delamorte can you do a tpoa (take pics of anything)

  3. #63
    Super Moderator Reputation: 424

    Join Date
    May 2006
    Posts
    6,646
    Rep Power
    21

    Default

    Why do you type in lowercase nick?

  4. #64
    Cloud13's Clown Reputation: 328
    postrook's Avatar
    Join Date
    Jun 2012
    Posts
    2,851
    Rep Power
    11

    Default

    because i started posting on another forum where everyone seemed to do it, tbh. and it stuck.


  5. #65
    OnRPG Elite Member! Reputation: 416

    Join Date
    Jan 2009
    Location
    Montréal
    Posts
    6,563
    Rep Power
    18

    Default

    solid snake or snake plissken

  6. #66
    Cloud13's Clown Reputation: 328
    postrook's Avatar
    Join Date
    Jun 2012
    Posts
    2,851
    Rep Power
    11

    Default

    snake plissken

  7. #67
    $$$
    Guest

    Default

    what is yr earliest childhood memory

  8. #68
    Cloud13's Clown Reputation: 328
    postrook's Avatar
    Join Date
    Jun 2012
    Posts
    2,851
    Rep Power
    11

    Default

    i think i was in italy and there was like this red tiny truck. not a toy, but an actual pickup truck i think that was just really small. i think there's a photo of this tho, so it might not be a real memory.

    either that or it was in preschool. which was when i was 3.

  9. #69
    Forum PvPer Reputation: 629

    Join Date
    Dec 2007
    Location
    [REDACTED]
    Posts
    6,129
    Rep Power
    0

    Default

    this is now challenge postrook with anything thread.

    In a language of choice, write a routine that reverses each word in a string.

  10. #70
    Cloud13's Clown Reputation: 328
    postrook's Avatar
    Join Date
    Jun 2012
    Posts
    2,851
    Rep Power
    11

    Default

    it's got some dumb hackwork because i'm still more used to getting input with c, but here you go:

    edit: oh god the code tags SUCK.

    here, fancy formatted version: http://pastebin.com/znGPChDW

    below, dumbass unformatted version because the code tags were making most of it disappear rofl

    #include <iostream>
    #include <vector>
    #include <string>
    #include <sstream>

    //function takes vector containing words entered, reverses every individual word
    std::vector<std::string> reverse(std::vector<std::string> inputs) {
    std::string temp;
    for(int a=0; a < inputs.size(); a++) { //goes through vector elements
    for(int b = inputs[a].length() - 1; b >= 0; b--) { //goes through string elements
    temp += inputs[a][b]; //reversing happens here
    }
    inputs[a] = temp;
    temp.clear();
    }
    return inputs;
    }

    int main() {
    std::vector<std::string> inputs;
    std::string temp;
    std::string temp2;
    std::cout << "Enter a string: ";
    std::getline(std::cin, temp);
    std::istringstream a (temp);
    while(a) {
    a >> temp2;
    inputs.push_back(temp2);
    }
    inputs.pop_back(); //ugh, this is the hackwork. cba to fix
    inputs = reverse(inputs);
    for(int a = 0; a < inputs.size(); a++)
    std::cout << inputs[a] << " ";
    return 0;
    }
    Last edited by postrook; 09-05-2014 at 09:12 PM.

Page 7 of 11 FirstFirst ... 56789 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •