Questions tagged [program-structure]

26 questions
1
vote
4 answers

Dealing with similar code in multiple C "projects"

I am playing around with some C code, writing a small webserver. The purpose of what I am doing is to write the server using different networking techniques so that I can learn more about them (multithread vs multiprocess vs select vs poll). Much of…
Johnis
  • 11
  • 1
0
votes
0 answers

I have a question on the reverse() func of python

arr=[1,2,3,4,5] i=0 N=5 K=3 for i in range(0,N,K): if(i+(K-1)N): arr[i-K:].reverse() print(arr) I am not able to reverse the array arr. I am supposed to reverse a…
0
votes
2 answers

How to generate multiple "Variables" in a list by Just entering the specific number of "Variables" asked to input

this is my first post here and I'm an aspiring programmer as well, so please when you see that I'm kind of talking nonsense don't go too harsh on me. I'm having a bit of a problem creating a programme that I had in mind, this programme needs to ask…
0
votes
1 answer

Factors influencing programming style

It is common to see programmers follow tacit style guidelines when writing out programs. For instance, in most languages I have dealt with, we invariably always write if x < 5 instead of if 5 > x although both are permissible expressions by the…
0
votes
1 answer

C++ Quadratic Equation Solver - Incorrect Imaginary Solutions

As the title says, whenever I input certain numbers in the quadratic equation solver that lead to imaginary solutions, I have been unable to express the proper imaginary solutions. Some things that I tried included creating a new casted variable…
0
votes
1 answer

How to structure multi-page JSP project?

My Java project has multiple JSP (view) pages, which either insert into or query a database. I created the main page and links to each JSP. I am unsure whether I should put each component of the project (MVC pattern with jsp, servlet, a Java file)…
0
votes
0 answers

Autorun script in cmd

Somebody know how i can do a program with autorun script? I would like to do this in notepad with extension .bat or .cmd for example @echo off (and this autorun script) Somebody can help me? I really need write this in notepad because recently I…
baku55555
  • 1
  • 1
0
votes
1 answer

Is there an analog to tk.IntVar() in wxPython?

I'm converting an old tkinter program to wxPython. One of the things from tk that I used liberally was tk.IntVar() and the like. Is there anything in wx that provides similar functionality? Specifically, I'd like to be able to define module-level…
dthor
  • 1,749
  • 1
  • 18
  • 45
0
votes
3 answers

How to structure large AngularJS applications

I have a web app that I'm building in AngularJS. It has accumulated 500 lines of code and is quite a burden to sort through it all. I was wondering if it would be possible for me to break off the logic into multiple files but still be able to…
Sleep Deprived Bulbasaur
  • 2,368
  • 4
  • 21
  • 33
0
votes
1 answer

Mixing Multiple Programs

My question is about mixing multiple programs. For example if you use Unreal Development Kit before you know what I'm talking about. The Lightmass of Unreal is another program which have another exe from the main application (editor). When you build…
-4
votes
1 answer

Am I on the right path to build an online game bot?

I am by no means a programmer or a developper or anything like that but I'm very passionate about machine learning and AI. I don't even know if I'm using the right words to describe my question so please bear with me (it should be simple to…
1
2