Page 2 of 2 FirstFirst 12
Results 11 to 19 of 19

How did you learn to program?

This is a discussion on How did you learn to program? within the General/Help forums, part of the Programming category; Yeah, my curriculum has us learning Python first because it's supposed to be easier. I'll be learning C Programming in ...

  1. #11
    GamerKingFaiz's Avatar
    GamerKingFaiz is offline Like a boss!
    Join Date
    Aug 2009
    Posts
    2,306

    Default

    Yeah, my curriculum has us learning Python first because it's supposed to be easier. I'll be learning C Programming in Spring quarter of this academic year, so I guess it probably best you start off with Python, but at the same time, there's not set way of learning programming, so do whatever you're most comfortable with.

    This is the textbook we used, if you want to "buy" it. The lecture notes are basically a summarization of the chapters, but if you want to go more in depth you'll probably want to look at the book. But the lecture notes are pretty sufficient, but then again the professor used real time examples in conjunction with the lecture notes.

  2.   Alt These ads help cover server costs and such.


  3. #12
    brarei200 is offline Junior Member
    Join Date
    Sep 2009
    Posts
    67

    Default

    Quote Originally Posted by Seatbelt99 View Post
    As far as notes go I mostly just try to remember to comment my code so I can go back and refer to it later. And save all your source code so you can go back and use it again.

    I don't know C++ at all but I hear its a little more complex than C#. So far C# seems pretty easy to learn...if only I had more time to put into it. lol.
    C++ is so easy, I just started it last week in school. If you know VB or C# really good, C++ will be really easy!


    Quote Originally Posted by GamerKingFaiz View Post
    Yeah, my curriculum has us learning Python first because it's supposed to be easier. I'll be learning C Programming in Spring quarter of this academic year, so I guess it probably best you start off with Python, but at the same time, there's not set way of learning programming, so do whatever you're most comfortable with.

    This is the textbook we used, if you want to "buy" it. The lecture notes are basically a summarization of the chapters, but if you want to go more in depth you'll probably want to look at the book. But the lecture notes are pretty sufficient, but then again the professor used real time examples in conjunction with the lecture notes.
    Why are you going to be learning C? C++ replaced C I think...

  4. #13
    detectivegeek is offline Junior Member
    Join Date
    Nov 2010
    Posts
    9

    Default

    Yeah, I figured as much. I guess I can start with python and check out a C++ course in my community college but its so damn rare to see the courses (they only start during certain times). But anyhow. Thanks ive been doing what seatbelt suggested and was asking around in different forums and stuff and so far, this is the only place thats served to be the most helpful. thanks again!

  5. #14
    detectivegeek is offline Junior Member
    Join Date
    Nov 2010
    Posts
    9

    Default

    If im not mistaken C++ did replace C and OOP is the way to go. Correct me if im wrong.

  6. #15
    GamerKingFaiz's Avatar
    GamerKingFaiz is offline Like a boss!
    Join Date
    Aug 2009
    Posts
    2,306

    Default

    Well I'm not sure if it's C or C++, the class name is that just called C Programming, but I suppose would just indicate regular C... =/

  7. #16
    brarei200 is offline Junior Member
    Join Date
    Sep 2009
    Posts
    67

    Default

    Quote Originally Posted by GamerKingFaiz View Post
    Well I'm not sure if it's C or C++, the class name is that just called C Programming, but I suppose would just indicate regular C... =/
    Get it changed, C is old, C++ is what replaced C.

    If anyone wants a C++ code snippet here's a simple one I made up quick. It asks you for two numbers, then adds them up and outputs

    Code:
    //needed to use cout, cin, and endl
    #include <iostream>
    using std::cout;
    using std::cin;
    using std::endl;
    
    int main()
    
    {
    
    //variables to store numbers and the sum
    double dblNum1= 0.0;
    double dblNum2 = 0.0;
    double dblSum = 0.0;
    
    //Asks user for the first number
    cout << "Number 1: ";
    //Lets you input the first number
    cin >> dblNum1;
    
    //Asks user for the second number
    cout << "Number 2: ";
    //Lets you input the second number
    cin >> dblNum2;
    
    //Calculates the sum
    dblSum = dblNum1+ dblNum2;
    
    //Outputs the sum (endl makes it go to the next line (blank line))
    cout << "Sum: " << dblSum << endl;
    
    return 0; //always return 0 at the end of your code
    
    } // end of main function
    If Statements, this compares number one to number two. If number one is greater than number two then it will output saying it, if it's not (else) then it will say number two is greater than number one.

    == ( means equals)
    > (greater than)
    < (less than)
    || (or)
    && (and)
    != (not equal too (<> in VB))
    >= (greater than or equal too)
    <= (less than or equal too)


    Code:
    if (intNum1 > intNum2) // Then
    {
    cout << "Number one is greater than number two" << endl;
    }
    else // if num1 is not greater than num2
    {
    cout << "Number two is greater than number one" << endl;
    } //end if
    Last edited by brarei200; 12-04-2010 at 09:49 AM.

  8. #17
    detectivegeek is offline Junior Member
    Join Date
    Nov 2010
    Posts
    9

    Default

    Nice. I ran your code and it worked perfectly. What I need to do is recognize what to type to do certain things, recognize what certain commands do. etc.. Sounds like a lot of work but ill manage. Also I decided im going to mcguyver my way into learning C++ by asking around and reading. D: Its just so hard to find a book that will be like a course. with assignments, tips, etc.

  9. #18
    ra1nb0wz's Avatar
    ra1nb0wz is offline 1337
    Join Date
    Jul 2009
    Posts
    1,099

    Default

    Learned a bit of vb.net at school and some more writing noob code. I'm currently taking AP Computer Science (Java) at school.

  10. #19
    Titan5 is offline Member
    Join Date
    Apr 2008
    Posts
    138

    Default

    This is a bit of a grave dig, but I haven't been on TC in forever it seems like because of school and work kicking my butt. School is over for summer though so I'm back for now, lol.

    My school teaches only C++ but I use C# at work.
    Great book to learn basics to pretty complex stuff in C++ is Starting Out with C++: Early Objects (6th Edition). This is what we used for my first two programming classes.
    A great C# book I used to teach myself C# along with .NET for work was this book: Pro C# 2010 and the .NET 4 Platform.

    So for all those looking to do real coding, I would start off with the basics of C++ and transition into C# after you have a good grasp of programming basics including objects and classes which are the basis of object oriented programming.

    If you are real ambitious you can even start creating some web applications to do whatever you want which is actually what my internship is in right now.
    This book is great to learn some ASP.NET and using C# as the coding language behind the user interface of ASP.NET: MCTS Self-Paced Training Kit (Exam 70-515): Web Applications Development with Microsoft .NET Framework 4

    If you are just wanting to create automated programs for bots, I would stick with autohotkey. I self taught that to myself fairly easily and just used ahk forums and here to do some pretty cool stuff.
    Last edited by Titan5; 05-26-2011 at 03:55 PM.

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Facebook Bots | Admin Forum