+ 1
how to quickly recognize what logic will apply where
3 Respuestas
+ 2
While understanding logic don't rush up things.
suppose you want to understand for loop
now you know the basic syntax of it but how it's working
for (i = 0; //okay i starts from one
i <= 10 ; // it says loop while run until it keep
satisfying the condition
i++; // i incremented by one i = i + 1
){
cout << i; // print the value of i
}
At first time i initialization with 0
then it check the condition then
print value of i 0
now it goes to i++ now value of i become 1
new value of i is 1 again it checks the condition and so on....
That's not it its very very basic example.
While understand big program or complex logic.
Just start from the beginning , if necessary note down the value which keeps changing. Once you understand it your brain keep calculating fast and soon you'll end up having knowledge of problem solving and understanding logic. Each programmer work and think differently.
//Tip do as much as programming questions based on time limit like in our solo learning app.
That gives experience to your profile and to your brain.
Happy Coding;
+ 2
Jenn I wanted to know that. I know all basic things but problem is at the time of any question like print pyramid, or matrix I don't know how to start and what functions to use I m just at medium lvl and want to learn high quality
+ 1
You mean the Logic behind the C++ operators, could you shed some light on your question.
Its not quite clear what you mean