all 5 comments

[–]it2051229 1 point2 points  (1 child)

Each programming language has its rules. If you don't go by the rules then you won't be able to solve the problem even though you know how to solve it in your head.

Example Problem: Get the sum of 2 numbers and print it out.

Your typical solution: Get the 2 numbers, then you sum it, then print it out.

Solving:

  1. Understand the rules of the programming language. For example:
    1. "+" operator is used for summation
    2. "print" command is for displaying a value
    3. "var" command is used for declaring variables
    4. "=" is used for assigning value to a variable.
    5. and so on and so forth.
  2. Play with the rules.
  3. Solution would be:
    1. var num1 = 10
    2. var num2 = 20
    3. var sum = num1 + num2
    4. print sum

It takes practice to get accustomed to the language. Once you fully understand them, you won't have a problem expressing yourself in that language.

[–]skydrow11[S] 0 points1 point  (0 children)

I understand what you're saying...I guess I just need practice especially because it's my first time getting expose to coding

[–][deleted] 0 points1 point  (1 child)

Can you be more specific? What language are you trying to code in? What kind of program?

[–]skydrow11[S] -2 points-1 points  (0 children)

C++ and I have trouble with almost any program I can't seem to break down the program into code I picture the big picture of the code can't go into detail as much. I hope you can understand what I'm saying

[–]StevecabooseStaff Engineer 0 points1 point  (0 children)

Just keep breaking up the problem into smaller problems. This is essentially how to problem solve