Thread: What 5hould I learn?

  1. #1
    Registered User
    Join Date
    Mar 2007
    Posts
    14

    What 5hould I learn?

    Ye55 the keyboard im u5ing doe5 have a broken key.

    But anyway5, Im wondering what language I 5hould learn.
    Not for any 5pecific purpo5e5 but what do you think i5 the be5t programing language ju5t over all?

  2. #2
    Deathray Engineer MacGyver's Avatar
    Join Date
    Mar 2007
    Posts
    3,210
    Engli5h.

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Seems the 's' key was good enough to type your name, and compose your other post

    http://www.catb.org/~esr/faqs/smart-...html#writewell
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  4. #4
    Anti-Poster
    Join Date
    Feb 2002
    Posts
    1,401
    Not exactly a C# related question, is it?
    If I did your homework for you, then you might pass your class without learning how to write a program like this. Then you might graduate and get your degree without learning how to write a program like this. You might become a professional programmer without knowing how to write a program like this. Someday you might work on a project with me without knowing how to write a program like this. Then I would have to do you serious bodily harm. - Jack Klein

  5. #5
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    nope - moved.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  6. #6
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    Even if you do have a broken key, buy a new keyboard! They arn't THAT expencive.

  7. #7
    Registered User divineleft's Avatar
    Join Date
    Jul 2006
    Posts
    158
    Quote Originally Posted by Salem View Post
    Seems the 's' key was good enough to type your name, and compose your other post

    http://www.catb.org/~esr/faqs/smart-...html#writewell
    there is copy and paste

    but all in all, ownd.

  8. #8
    Registered User
    Join Date
    Mar 2007
    Posts
    3

    REply which lang to learn

    As u will be knowing their are many languages the language which we use depends upon applications . as if now .Net visual studio 2005 is the best language to be learnd as it is useful to almost all applications.

    Quote Originally Posted by PublicAutopsy View Post
    Ye55 the keyboard im u5ing doe5 have a broken key.

    But anyway5, Im wondering what language I 5hould learn.
    Not for any 5pecific purpo5e5 but what do you think i5 the be5t programing language ju5t over all?

  9. #9
    Anti-Poster
    Join Date
    Feb 2002
    Posts
    1,401
    Quote Originally Posted by p_k View Post
    as if now .Net visual studio 2005 is the best language...
    Visual Studio isn't a language; it's an IDE. Salem's link still applies.
    If I did your homework for you, then you might pass your class without learning how to write a program like this. Then you might graduate and get your degree without learning how to write a program like this. You might become a professional programmer without knowing how to write a program like this. Someday you might work on a project with me without knowing how to write a program like this. Then I would have to do you serious bodily harm. - Jack Klein

  10. #10
    The superhaterodyne twomers's Avatar
    Join Date
    Dec 2005
    Location
    Ireland
    Posts
    2,273
    How do you expect to be able to program with a broken s and S?

  11. #11
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    Code:
    #include <io5tream>
    #include <5tring>
    
    int main() {
       5td::5tring foo = "Hello World!";
    
       5td::cout << foo;
    
       return 0;
    }
    Sent from my iPadŽ

  12. #12
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Very funny, 5lyMael5trom
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  13. #13
    Lean Mean Coding Machine KONI's Avatar
    Join Date
    Mar 2007
    Location
    Luxembourg, Europe
    Posts
    444
    Code:
    #define 5 s

  14. #14
    Mayor of Awesometown Govtcheez's Avatar
    Join Date
    Aug 2001
    Location
    MI
    Posts
    8,823
    How would you type the s?

  15. #15
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,079
    Quote Originally Posted by KONI View Post
    Code:
    #define 5 s
    Obviously considered, but it would be quite difficult to do without an s key to set the define. Instead, we would have to supply him with a little pre-preprocessor that replaces all instances of a set token with 's'
    Code:
    #include <iostream>
    #include <fstream>
    #include <string>
    #include <cstring>
    
    int main(int argc, char* argv[]) {
        std::string lineBuff, dataBuff;
        std::ifstream inFile;
        std::ofstream outFile;
    
        if(argc != 3 || strlen(argv[2]) != 1)  {
           std::cerr << "Usage: " << argv[0] << " <data source> <token>";
           return 1;
        }
    
        inFile.open(argv[1]);
    
        while(inFile >> lineBuff)
            dataBuff += lineBuff  + '\n';
        
        inFile.close();
    
        while(dataBuff.find(argv[2]) != std::string::npos)
              dataBuff[dataBuff.find(argv[2])] = 's';
    
        outFile.open(argv[1]);
    
        outFile << dataBuff;
    
        outFile.close();
    
        return 0;
    }
    So who wants to compile this and upload it for the poor kid?
    Last edited by SlyMaelstrom; 03-29-2007 at 02:04 PM.
    Sent from my iPadŽ

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Am I too late to learn programming?
    By maccat in forum A Brief History of Cprogramming.com
    Replies: 17
    Last Post: 02-17-2009, 08:49 AM
  2. Looking to learn C++
    By Fuzzy91 in forum C++ Programming
    Replies: 40
    Last Post: 04-13-2006, 02:38 AM
  3. You have to learn C in order to learn C++
    By gandalf_bar in forum A Brief History of Cprogramming.com
    Replies: 20
    Last Post: 07-16-2004, 10:33 AM
  4. Witch to learn first?
    By Unregistered in forum Windows Programming
    Replies: 2
    Last Post: 06-17-2002, 12:06 AM
  5. Advice on how to being to learn C++
    By VenomUK in forum C++ Programming
    Replies: 9
    Last Post: 05-18-2002, 01:06 PM