74 questions
0
votes
3
answers
84
views
How to print two elements without being separated by space in output in python3? [duplicate]
I should write a code for calculating average of some grades in a csv file. My code is going to be check by another program(and not a human.) I already have the Help file about the checking program ...
0
votes
1
answer
84
views
Befriending a function template defined in another file in C++11?
I have written a custom vector class template and print_vector function template that is supposed to print the content of my custom vector class. The print_vector function uses v.sz and v.elem which ...
1
vote
1
answer
382
views
SwiftUI: Data sharing between separate views
What is the best practice to share variables between views?
My app has only one view. But as it gets more and more complicated, I think I should separate it into several views. Also to separate the ...
0
votes
1
answer
724
views
Location Manager in seperate class in Swift
so I am currently working on some project and I encountered this issue. If I use CLLocationDelegate in ViewController, it runs normally, however when I try to separate this in its own class, it just ...
0
votes
1
answer
45
views
(Python) Separating lists when printing
I am writing a code for school and we need to make a deck of cards as part of it. I have already made the deck but I do not know how to print it the way I want it. It either prints with all the ...
-1
votes
2
answers
403
views
Where the best place to put a websocket connector. Angular
I have a private websocket, this websocket brings me information about the user like balance, notification and other things. all application needs to use this websocket. I have a component where I ...
1
vote
1
answer
942
views
How to use forward declaration with boost::msm to avoid circular dependency?
I am trying to implement a simple protocol with boost::msm. As packets arrive they are processed and dispatched to the State Machine (SM) to be handled accordingly.
My pkt class (i.e. Pkt1) requires ...
0
votes
1
answer
1k
views
Calling functions from inside (Matlab) code sections [closed]
I have a massive script consisting of many code sections that I run independently of each other. For some of these code sections, there is a lot of repeating code, and so I wanted to define a function ...
1
vote
1
answer
3k
views
Separating Data using \n AND \t
I am trying to separate data into columns using "\n" in rstudio and then separate that data further into rows using "\t". So far I have been able to separate the data by "\n", but I can't figure out ...
0
votes
1
answer
209
views
How to prevent including header in header to minimise including in other CPPs
I'm using a physics library called Bullet and I'm having trouble preventing including the Bullet headers into my Physics header.
//Physics.h
#include <BulletPhysics/btBulletDynamicsCommon.h> // ...
2
votes
1
answer
155
views
Separate definition of inner class and enclosing class
What is the proper way to separate the definition of an inner class and an enclosing class into different header files, if the enclosing class has a member variable which is an instance of the inner ...
1
vote
1
answer
40
views
SQL Query Help on separating return result
Example: On the phone table, someone has two phone number SQL would give me the a second row of the same person with different phone number instead of second column. What query do I use to check if ...
26
votes
2
answers
618
views
Project segregation in Sonar Qube
I have a projects structure like as shown below.
Cloud projects folder are having four type projects (eco-projects, evn-projects, met-projects, svn-projects)
Each type of projects contains again four ...
1
vote
1
answer
88
views
Proper project organization and architecture for sharing code in Visual Studio/.NET projects
I'm looking for recommendations on how to best share code between multiple Visual Studio projects. I'm struggling with a fundamental topic and trying to get some ideas to get over it.
My solution ...
2
votes
1
answer
1k
views
Iteration over enum class in a project
I am following this question for iterating over an enum.
enum class COLOR
{
Blue,
Red,
Green,
Purple,
First=Blue,
Last=Purple
};
COLOR operator++( COLOR& x ) { return x = (...
2
votes
2
answers
130
views
What do I have to consider when putting all code in the header? [closed]
I found several places where it is discussed whether it is better to put definitions in headers or not (e.g. here). However, I could not find something like a "guide to header-only code". The answer ...
1
vote
1
answer
2k
views
How to separate business logic from the UI
I am creating a calculator application, and I am trying to separate the business logic from the UI to improve the code maintainability and to allow for better unit tests.
I have created a ...
0
votes
1
answer
170
views
Separate and combine code in Maple
I create simple package by using table. Because the package has many procedures so I split the code into many text file. Each file will pass the convention checking of Maple
I want to create a master ...
4
votes
0
answers
1k
views
CUDA Separate compilation issues using cmake [duplicate]
I have a CUDA project which I compile with cmake. It worked fine until I wanted to add a new class containing a device function described in new files (.cu and .cuh). This is the CMakeList file :
...
0
votes
1
answer
294
views
How to separate UI from controller with angular?
I'm developing angular web app, I have this doubt that whether it's possible to separate UI from controller absolutely clean?
I have a controller method which send request to server to retrieve data. ...
0
votes
1
answer
338
views
Proper Code-separation in Zend Framework 2
I am editing a Zend Framework 2 module and I came across the following code:
<?php
echo $this->partial('/menu', array('menu' => $this->menu));
?>
<hr />
<div class="myclass"&...
5
votes
3
answers
29k
views
3 values (numbers) in 1 input separation. Python 3
I'm working on a code right now that a part of it requires to ask the user for 3 different numbers in one line ( could be any number of digits in each number).
Say I ask the user for the input and he ...
-1
votes
1
answer
299
views
Undefined reference error in c++ dynamic member
hi everyone im new to programming so excuse the noob question...
i tried every method to get through with the undefined refernce error but it keeps throwing that error at me
i tried using pointer "->" ...
1
vote
1
answer
91
views
Mixed Entity and Business classes - Refactor help needed
I have a project where Entity Classes and Business classes are mixed up. The entity beans are part of the business and all is used through the whole project.
How can I best refactor those classes to ...
0
votes
1
answer
161
views
How can I assign a separate name to a variable with a comma?
Hello stackoverflow users. Today i want to ask for your help with something what is only a small part of my project.
So... I have already done small application using Selenium to get text from div, ...