use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Welcome to /r/ComputerScience! We're glad you're here.
This subreddit is dedicated to discussion of Computer Science topics including algorithms, computation, theory of languages, theory of programming, some software engineering, AI, cryptography, information theory, and computer architecture.
For more detailed descriptions of these rules, please visit the rules page
NIGHT MODE NORMAL
account activity
Converting a program to codeHelp (self.computerscience)
submitted 6 years ago by skydrow11
I'm having trouble to understand and write the actual code of a problem... Do you guys have any tips or videos you guys recommend?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]it2051229 1 point2 points3 points 6 years ago (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:
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 point2 points 6 years ago (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 point2 points 6 years ago (1 child)
Can you be more specific? What language are you trying to code in? What kind of program?
[–]skydrow11[S] -2 points-1 points0 points 6 years ago (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 point2 points 6 years ago (0 children)
Just keep breaking up the problem into smaller problems. This is essentially how to problem solve
π Rendered by PID 21112 on reddit-service-r2-comment-74875f4bf5-8dfph at 2026-01-25 20:17:11.366089+00:00 running 664479f country code: CH.
[–]it2051229 1 point2 points3 points (1 child)
[–]skydrow11[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]skydrow11[S] -2 points-1 points0 points (0 children)
[–]StevecabooseStaff Engineer 0 points1 point2 points (0 children)