answersLogoWhite

0


Best Answer

You can't convert an algorithm into code. That is the job of the programmer, not the language. Algorithm's are expressed in plain-English and typically use pseudocode to broadly demonstrate the implementation of the algorithm. However, it is the programmer's job to convert these algorithms into working code. Pseudocode isn't a programming language as such, but it uses structures and statements that are familiar to any programmer and can be easily translated into any language. However, pseudocode is not a standard so there are many different ways to present pseudocode to the programmer. Moreover, pseudocode is generalised and is far too generic to be converted directly into any one language, never mind C++, which can take advantage of the underlying hardware to produce more efficient algorithms than would otherwise be implied by the pseudocode alone. Hence the need for plain-English algorithms in conjunction with the pseudocode. Programmer's can process all this information far more easily than any computer can. Even if you could program a converter for one algorithm, there's no guarantee it would work for any other algorithm. The time spent programming an algorithm converter would be far better spent simply translating the algorithm yourself.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is c plus plus program use to convert algorithm in to c plus plus program?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you convert from assembly to binary in c plus plus?

Use inline assembly instructions. Then compile your C++ program to produce the machine code.


How do you check a user's text input in C plus plus?

Use an SLR parser algorithm.


What are the main steps involved in writing algorithm?

1 Define the problem 2 Analyze the problem 3 Develop an algorithm/method of solution 4 Write a computer program corresponding to the algorithm 5 Test and debug the program 6 Document the program (how it works and how to use it)


Why algorithm is use?

An algorithm is the soul of a computer program. A code without an algorithm is like a missile without a radar. Like a body without a soul cheers olga lednichenko


What is the relationshjip between a computer program and an algorithm?

A computer program can use a pre-programmed Algorith to calculate what you want it to calculate.


How can you convert those movies in wmv format to ipod?

Use software to convert files You can use this video to ipod converter.I often use this program. It is very easy to use and fast to convert. http://www.pavtube.com/video_to_ipod/


How do you convert meters to centimeters in c plus plus using the for loop construct?

It is unnecessary to use a for loop to convert meters to centimeters. Just multiply by 0.01.


How do you convert an FLV file into an MPG or AVI file?

The best way to convert FLV to AVI is to use software program


Java program to convert lowercase to uppercase?

You can use the toUpperCase() method on a String to convert any String to all uppercase.


How do you convert iso format to quicktime?

You need an iso conversion program. I use IsoBuster(Google it) which is a free program download.


List down the names of any three parameters on which you analyze an algorithm?

what is algorithm and its use there and analyze an algorithm


What is efficent Algorithm?

Basically it depends on your condition of the program but one should have these things in mind while making/writing an algorithm..... 1. Use minimum variable as much as possible. 2. Try to use the pointers instead of array's to allocate the memory at the run time. 3. Always check for the time and space complexity for the algorithm. 4. Use the exact data structure for the given problem.