[C] Find Size of Trie via /r/learnprogramming


[C] Find Size of Trie

For my current problem I'm just calculating the size of my trie as I make it, which is very simple. But if I was given a trie made by someone else, what would be the best way to go about this? I want the number of full entries, not the number of nodes (which would be easy).

Submitted July 31, 2016 at 06:34PM by mhbhmcinui
via reddit http://ift.tt/2aFiFi2

Learning programming with “final” goal of cross-platform (ios/android/web) MVP – C#? via /r/learnprogramming


Learning programming with “final” goal of cross-platform (ios/android/web) MVP – C#?

tl;dr essentially a total noob, want to learn to code and create a cross-platform (ios/android/web) app (likely just an MVP), thinking C# is likely the way to go, but java is very tempting and there seems to be a much larger pool of resources for independent beginners for java compared to C#. Thoughts?

So I've been procrastinating "learning to code" for too long!

The two main reasons that I want to are:

a) To be a proficient coder, and to potentially get a job in web/software dev at a future date (2 or more years from now, realistically – I have only recently started a non-programming job that I like)

b) Sooner than that, I would like to finally attempt to create an MVP (ideally a little bit better than minimum) for my years-old app idea, creating a product that works cross-platform (android, web and ios).

Am I right in thinking that C# is the route to go? Especially with Xamarin and asp.net at my disposal?

I'm still having a hard time discounting Java, as there seem to be many more beginners' resources out there. Also, I am vaguely aware of some xamarin-esque project for java that Intel recently announced (or something…)

Please do let me know your thoughts on which language is best to learn, and – ideally – the C# resources you found most helpful if you think I should go with that. Currently thinking about the "programming with C#" edx course and/or getting my hands on the pluralsight videos.

Thanks in advance!

PS I plan to at least learn some basic-intermediate javascript, too, as I may need it in my job and it seems like a great language to know these days.

Submitted July 31, 2016 at 06:35PM by DomJC
via reddit http://ift.tt/2as0yZE

C++ Help With Tic-Tac-Toe Game via /r/learnprogramming


C++ Help With Tic-Tac-Toe Game

So I'm trying to write a Tic-Tac-Toe game for an assignment in one of my classes, but I can't seem to get it to work.

My output does not keep the game updated when it switches turns between player x and o.

Could someone please take a look at my code and tell me what I'm doing wrong here? The detailed instructions for the assignment are at the bottom of this link.

http://ift.tt/2as059L

Submitted July 31, 2016 at 07:01PM by Forsbergers09
via reddit http://ift.tt/2aFiDqx

When I run ‘git pull upstream master’ will that only update my master branch. If the had previously made branches off master, my understanding is that those branches would reflect master’s last commit and wouldn’t show new changes such as pulling from upstream. via /r/learnprogramming


When I run ‘git pull upstream master’ will that only update my master branch. If the had previously made branches off master, my understanding is that those branches would reflect master’s last commit and wouldn’t show new changes such as pulling from upstream.

Working on a fork of a remote repo, I've forked it into my github.

To start work, I've created new branches for each different thing I'm working on.

When the remote gets update, I would run git pull upstream master, would I also need to run git pull upstream branch1 and so on? Also to keep my fork in sync, would I need to go a git push origin master after I've finished pulling from upstream master

Currently I only push to upstream the branch I have finished working on.

Submitted July 31, 2016 at 05:56PM by hungrynow
via reddit http://ift.tt/2aUyFKH

Help me! I am not a programmer. I want a program to automatically press a button on a window whenever it appears in a software . thanks! What is SciTE?? via /r/learnprogramming


Help me! I am not a programmer. I want a program to automatically press a button on a window whenever it appears in a software . thanks! What is SciTE??
No text found

Submitted July 31, 2016 at 04:46PM by gdfsadfgngfew
via reddit http://ift.tt/2ajRfff

php + mysql how to display results of query ? via /r/learnprogramming


php + mysql how to display results of query ?

http://ift.tt/2amMdTn is my code, I want to display the results of my query which is line 63 in pastebin:

$query=mysqli_query($link, "SELECT * FROM employee WHERE emp_dept = 'Business' OR emp_dept = 'FAST'");

I want the results of the query, I tried looking online but most of the solutions not working for me , thank you. I tried var_dump($query); and a few more things with no success.

Submitted July 31, 2016 at 04:55PM by bjjprogrammer
via reddit http://ift.tt/2aHa6EK

Anyone familiar with using set builder [JAVA]? via /r/learnprogramming


Anyone familiar with using set builder [JAVA]?

Hey, everyone. I'm trying to build a GUI that has four buttons through Set Builder. Three of which will output a 10×10 matrix of either 0's, 1's, or a combination of 0's and 1's that is generated randomly. The fourth button will close the window.

The output of these will go into the label that I have set up. Now, the issue is that only a single number is being put into the label at a time, rather than a 10×10 grid of numbers. What am I doing wrong? The lines of code that are the issue are 40-49. I am thinking about erasing line 48 altogether and swapping the variable used in line 49 with array[i][j]

Link to code: http://ift.tt/2amM16Q

Submitted July 31, 2016 at 05:01PM by Kynyrd
via reddit http://ift.tt/2ajQGCb