Microsoft Visual C++ programming: How to write an algorithm?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jenshen fou
    New Member
    • Sep 2012
    • 2

    #1

    Microsoft Visual C++ programming: How to write an algorithm?

    How do you understand and begin to write an algorithm?.
    What are the procedures that take to write a program?

    I have no idea?
    I am taking a course in C++ and I do not know where to begin, or what to do?
    Last edited by Niheel; Sep 11 '12, 09:23 PM. Reason: unnecessary multiple posting in same question
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    That's probably a question you should ask the course teacher. Your question is akin to asking how do understand and begin to do math? It's such a broad question that there's not really a way to answer it.

    Comment

    • Jenshen fou
      New Member
      • Sep 2012
      • 2

      #3
      Thank you. I need a special help. I asked the school to provide me a tutor. The school deos not provide any for this course. Nobody cares?.

      Comment

      • zmbd
        Recognized Expert Moderator Expert
        • Mar 2012
        • 5501

        #4
        Jenshen,
        It's not that we don't care. This forum, and frankly most forums, simply isn't the best place to teach you the fundamentals of any application or programming language.
        You have (or someone has) paid for a class and you need to avail yourself of the teacher’s open office hours. Also, it is impossible for me to believe that there are no tutors available for you. You need to go back to your teacher and ask for a list of tutors and/or get with the other students in your class and form a study group.

        and a simple google turned up this:


        Between this, your study group, the teacher, and your book... all you need to do now is work.

        -z

        Comment

        • donbock
          Recognized Expert Top Contributor
          • Mar 2008
          • 2427

          #5
          You begin with a problem to be solved. For instance, suppose you want to find out if some particular number is prime.

          Then you look for an appropriate algorithm. An algorithm is a strategy for solving the problem; and it doesn't need to have anything to do with computers. It is not unusual to have a choice of algorithms. For example, algorithms to test primality include:
          Then you select one of the candidate algorithms.

          Then you write a program that implements the chosen algorithm. This is the first step where you use a computer.

          Finally you test your program to make sure it really and truly solves the problem.

          Comment

          Working...