Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

goodeffort

goodeffort goodeffort

Niner since 2004

  • Gary Daniels and Evan Goldring - Mock whiteboard problem

    here is an updated version of the code i pasted before. it can handle all characters and white spaces or a mix of everything together Wink. the thing i would like the most is a technical clarification on a palindrome so we can build off of what they REALLY are and not our guesses =/. i reinvented the wheel on the Reverse() rather than using reverse() in the STL algorithm class so it would be a tad more challanging and fun to do. for space reasons, code organization and stuff like that i put it up on a code pasting site =). the link can be found here -> http://rafb.net/paste/results/1zLtoc63.html
  • Gary Daniels and Evan Goldring - Mock whiteboard problem

    i would just like to point out that mine handles spaces, every type of character, numbers and letters, and  the whole schmeal. EXCEPT, now that you mention it i never checked about casing. now i ask this question though, is aBbA or AbBa a palindrome. basically i want someone to list the criteria that makes a string a palindrome and we can work from there.
  • Gary Daniels and Evan Goldring - Mock whiteboard problem

    here is my stab at the palindrome problem. its the complete code to the program and all =D and it even works with spaces Wink


    #include <iostream>

    #include <algorithm>

    #include <string>

    using namespace std;

    bool IsPalindrome(string strName)

    {

    string strReverse = strName;

    if(strName == "")

    {

    return false;

    }

    reverse(strReverse.begin(), strReverse.end());

    for(int i = 0; i < strName.size(); i++)

    {

    if( strName[i] == strReverse[i] )

    {

    continue;

    }

    else

    {

    return false;

    }

    }

    }

    int main()

    {

    string strPalindrome;

    cout << "Enter a word: ";

    getline(cin, strPalindrome);

    if(IsPalindrome(strPalindrome.c_str()) == false )

    {

    cout << strPalindrome << " is not a palindrome" << endl;

    }

    else

    {

    cout << strPalindrome << " is a palindrome" << endl;

    }

    getchar();

    getchar();

    return 0;

    }

  • “A Hitchhiker’s Guide to Microsoft” Eric Rudder picks up Lenn

    ok i got it. there is a dead body in the back of the truck. it was eric in the kitchen with the pipe.
  • “A Hitchhiker’s Guide to Microsoft” Eric Rudder picks up Lenn

    it looks like there is something in the back of the bed covered up with some type of sheet, blanker, or cover?¿?¿