How develop the logic of C++?­

Asked by Last Modified  

Follow 8
Answer

Please enter your answer

It Professional Trainer With 20 Years of Experience in in Key Aspects of Software Development

First try to break the problem into small sets after understanding the problem. Next write a pseudocode for them. Once finsied writing the pseudocode you can then convert that logic into C++ code.
Comments

Computer tutor

Depending on the requirement, we can think of the logic with any real life example in general. For example, the logic for swapping two numbers can be constructed by using three cups, with one cup as empty and you use this empty cup to swap the contents from the other two cups.
Comments

Are you looking for an Expert Friendly Tutor?

There is no rule, concept or technique (to be explained) for your requirement, however logic development is a gradual process. You can progrees with time. I can say here that if you have thrre things in your mind then you can win 1. Interest (Sradha) 2. Dedication (Lagan) 3. Learning Attitude. Go from...
read more
There is no rule, concept or technique (to be explained) for your requirement, however logic development is a gradual process. You can progrees with time. I can say here that if you have thrre things in your mind then you can win 1. Interest (Sradha) 2. Dedication (Lagan) 3. Learning Attitude. Go from basic and dream upto the last. Enjoy your work (let it be a silly one). To develop logic you have to understand like you are the end-user and you have to find out the logic flow (step by step). read less
Comments

Tutor

Step 1: Solve it manually Step 2: Elaborate the steps you just used to calculate manually. Write them down on a paper Step 3: Convert each step (words) into maths (equations) Step 4: Develop a psuedocode (This step will no longer be difficult for you) Step 5: Write a program and execute. Step 6:...
read more
Step 1: Solve it manually Step 2: Elaborate the steps you just used to calculate manually. Write them down on a paper Step 3: Convert each step (words) into maths (equations) Step 4: Develop a psuedocode (This step will no longer be difficult for you) Step 5: Write a program and execute. Step 6: Recheck if you have gone wrong anywhere Step 7: Redo the err part. ** Note: You may take half a day initially to write a simple program, but trust me if you carefull follow the procedure, you will speed up fom the next day. Good Luck! read less
Comments

Well there is no logic behind it. You learn by doing things.A Problem is nothing but a real life scenerio , So how will you solve a partiular problem in real life. You can apply that method to solve problem in programming.
Comments

Practice is the key. The more you practise the more you learn. And whioe learning, your mind stsrt thinking that way, and even you get different questions you will be able to solve them. Best of luck.
Comments

One and only name u can trust for CS and Ip

By developing the basic program
Comments

View 5 more Answers

Related Questions

What is the actual size of INT in the C language, 2 or 4 bytes?
The actual size to int is determined by the compiler as the program runs. But theoretically the size is 2 bytes. You can increase the size by adding keyword long infront of it to make the size 4 bytes. Eg int a; // 2 bytes Long int b; // 4 bytes
Kunal
What is the best IDE for C and C++ development?
If you're a student then Turbo C++ is best for C and C++ program + inbuilt C/C++ Graphics Function If you're a professional or working then Netbeans for C/C++ or Code:: Blocks is Best.
Balakrishnasingh
What is the syntex error?
A syntax error is a violation of the syntax, or grammatical rules, of a natural language or a programming language. ... A syntax error is called a fatal compilation error, because the compiler cannot translate...
Pranik

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Difference Of Inheritance In C++ And Java
In Java , multiple inheritance is not applicable directly but we can implement the concept by using the interfaces. In c++ and Java, the common types of inheritances are: Single Multi level Hybrid Hierarchical

Is It Fine To Write “void main()” Or “main()” In C/C++?
The definition: void main() { /* ... */ } Is not and never has been C++, nor has it even been C. See the ISO C++ standard 3.6.1 or the ISO C standard 5.1.2.2.1. A conforming...

Importance Of Function Prototype In C
Function prototype tells compiler about number of parameters function takes, data-types of parameters and return type of function. By using this information, compiler cross checks function parameters and...

Creating a class in c++
Introduction Before we proceed with understanding as to how to create a class in c++, we need to first understand the what is a class. Definition : A class is a container of related data and methods...
M

Mahesh C

0 0
0

Turbo C++ Keyboard Shortcuts
S.No. Shortcuts keys Action 1. F1 For Help 2. F2 Save 3. F3 Open 4. F4 Go to cursor 5. F5 Zoom 6. F6 Next 7. F7 Trace...

Recommended Articles

Introduction C++ is an excellent programming language and many of the applications are written in C++ language. It has generic, object-oriented & imperative programming features, and also provides facilities for low-level memory manipulation. Successor of C language, it is an OOP (object oriented programming) language...

Read full article >

Almost all of us, inside the pocket, bag or on the table have a mobile phone, out of which 90% of us have a smartphone. The technology is advancing rapidly. When it comes to mobile phones, people today want much more than just making phone calls and playing games on the go. People now want instant access to all their business...

Read full article >

Business Process outsourcing (BPO) services can be considered as a kind of outsourcing which involves subletting of specific functions associated with any business to a third party service provider. BPO is usually administered as a cost-saving procedure for functions which an organization needs but does not rely upon to...

Read full article >

Microsoft Excel is an electronic spreadsheet tool which is commonly used for financial and statistical data processing. It has been developed by Microsoft and forms a major component of the widely used Microsoft Office. From individual users to the top IT companies, Excel is used worldwide. Excel is one of the most important...

Read full article >

Looking for C++ Language Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you