Skip to main content
Filter by
Sorted by
Tagged with
0 votes
3 answers
84 views

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 ...
Negar Seidy's user avatar
0 votes
1 answer
84 views

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 ...
Enigma's user avatar
  • 53
1 vote
1 answer
382 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 ...
mildspleen's user avatar
0 votes
1 answer
724 views

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 ...
Pepa's user avatar
  • 51
0 votes
1 answer
45 views

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 ...
Samuel Pikofsky-Christiansen's user avatar
-1 votes
2 answers
403 views

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 ...
Thiago Gabriel's user avatar
1 vote
1 answer
942 views

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 ...
qwa's user avatar
  • 143
0 votes
1 answer
1k views

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 ...
z8080's user avatar
  • 679
1 vote
1 answer
3k views

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 ...
Rohan Singhal's user avatar
0 votes
1 answer
209 views

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> // ...
Zebrafish's user avatar
  • 16.3k
2 votes
1 answer
155 views

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 ...
Gergely Tomcsányi's user avatar
1 vote
1 answer
40 views

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 ...
chcha's user avatar
  • 11
26 votes
2 answers
618 views

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 ...
Alex Man's user avatar
  • 4,926
1 vote
1 answer
88 views

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 ...
Robert's user avatar
  • 353
2 votes
1 answer
1k views

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 = (...
barej's user avatar
  • 1,402
2 votes
2 answers
130 views

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 ...
463035818_is_not_an_ai's user avatar
1 vote
1 answer
2k views

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 ...
Theo's user avatar
  • 337
0 votes
1 answer
170 views

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 ...
Quan Nguyen's user avatar
4 votes
0 answers
1k views

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 : ...
Mortuis's user avatar
  • 51
0 votes
1 answer
294 views

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. ...
Aaron Shen's user avatar
  • 8,442
0 votes
1 answer
338 views

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"&...
Dennis's user avatar
  • 8,151
5 votes
3 answers
29k views

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 ...
dkentre's user avatar
  • 289
-1 votes
1 answer
299 views

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 "->" ...
user2657029's user avatar
1 vote
1 answer
91 views

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 ...
Dimitri Dewaele's user avatar
0 votes
1 answer
161 views

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, ...
Mezulith's user avatar