What 5hould I learn?

This is a discussion on What 5hould I learn? within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Ye55 the keyboard im u5ing doe5 have a broken key. But anyway5, Im wondering what language I 5hould learn. Not ...

  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,211
    Engli5h.

  3. #3
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,834
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  4. #4
    Anti-Poster
    Join Date
    Feb 2002
    Posts
    1,399
    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
    32,834
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  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
    p_k
    p_k is offline
    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,399
    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,262
    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,077
    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
    22,274
    Very funny, 5lyMael5trom
    C + C++ Compiler: MinGW port of GCC
    Version Control System: Bazaar

    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,825
    How would you type the s?

  15. #15
    Devil's Advocate SlyMaelstrom's Avatar
    Join Date
    May 2004
    Location
    Out of scope
    Posts
    4,077
    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 03:04 PM.
    Sent from my iPadŽ

Page 1 of 2 12 LastLast
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, 03: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, 11:33 AM
  4. Witch to learn first?
    By Unregistered in forum Windows Programming
    Replies: 2
    Last Post: 06-17-2002, 01:06 AM
  5. Advice on how to being to learn C++
    By VenomUK in forum C++ Programming
    Replies: 9
    Last Post: 05-18-2002, 02:06 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21