General C++ Programming (Page 3)

by OYS
How to read a text file with data separated by commas into different variables respectively
 
9780099584353,Haruki Murakami,Norwegian Wood,Vintage Publishing,2003,1,37.90,1,2 The data represe...
[5 replies] Last: > but what if i want to insert the text file into an array? how do i d... (by salem c)
Find the "Initial Patient" of a disease using code.
 
Can anyone help with this problem? It's a last in a set of challenge problems I've finished the othe...
[3 replies] Last: I've only thought of throwing out the cases where two healthy cows int... (by DatKidBoris)
by Catchy
trying to make a player go around a map and give you certain phrases when you land on specific spots
 
The problem that im having is that when the player goes over any of the map tiles it doesnt regist...
[1 reply] : > if (gameBoard == gameBoard || gameBoard ) This isn't how you co... (by salem c)
Creating a Mode function using array ponters
 
I am trying to create a mode to find the mode in an array of pointers. In my code works except for ...
[2 replies] Last: I was able to get my code to work by modifying it so it compared the v... (by Wsaint1990)
by Zanza
Error in function?
 
.
[4 replies] Last: You want help don't edit your posts and delete the contents. Doing so... (by Furry Guy)
How to efficiently pick points from a given array so the distance between the two closest points are maximized.
 
Hello. So I've been trying to solve this problem from my coding camp that has stumped me for hours. ...
[8 replies] Last: It's not for me to solve the puzzle for you. You're the one who presum... (by dutch)
how create a 3D Game without libraries?
 
ok... know that uses very math... but is there any tutorial for i create my 1st shooter game? - how...
[15 replies] Last: that entire image is 2 images for the cube... in these case i use the ... (by Cambalinho)
Should we initialise queue and maps of a class in constructor
 
I have a class which has queue and map like below where astruct is a structure and aclass is a class...
[3 replies] Last: Thanks, that answers my question. (by Scarletpimp)
by kainev
Entity Component System - Map Performance
 
I'm currently implementing a small Entity Component System as a learning project, it's been a good w...
[5 replies] Last: Note that I said an intrusive linked list, since that doesn't requir... (by helios)
by DeeMoo
Consol crash using Graphics.h
 
Hi! So basically everything goes okey, no crashes. It display what is asked. But when I create a lo...
[8 replies] Last: I solved the problem. I changed initgraph to initwindow, deleted getch... (by DeeMoo)
by jonnin
Statistical Analysis For student's coursework marks listed.
 
I have a fairly involved question about how to start ^^^ you forgot to type in your question. You...
[12 replies] Last: Tom Knight and the Lisp Machine I was going to quote this here yeste... (by mbozzi)
How to access non static class members inside static method of the same class
 
I have a class with method send which will use curl to send something and handlehdr is the callback ...
[1 reply] : That's what the fourth argument to header_callback argument is. Use... (by mbozzi)
by R0bert
How to print all the diagonal elements of a 2d vector
 
For example I have a 2d vector matrix = [ [1,2,3,4], [5,1,2,3], [9,5,1,2] ] and I w...
[8 replies] Last: ... (by Ganado)
A tricky twist on the classic find#inversions in array problem
 
The problem I have is an an admittedly difficult spin on the classic count number of inversions in a...
[1 reply] : {1, 2, 3, 4, 5} 0 1 2 3 4 Isn't that a linear... (by keskiverto)
References and Reverse Iteration over map
 
Hullo, I had a simple question. I surfed through the internet and came upon this solution for rever...
[2 replies] Last: Thanks for the clarification! (by hassanAman)
C++ where to begin?
 
I have a fairly involved question about how to start writing a c++ program, I know how to use differ...
[9 replies] Last: well, what I was trying to say was, for substring searching you want t... (by jonnin)
file input and output
 
hello i am working on demonstrating input and output of files. I am getting an error prompt when att...
[1 reply] : I am getting an error prompt And the error prompt is? We can't see ... (by Furry Guy)
function advice
 
Hey everyone, So I made a 2d array. I have to find the lowest, highest, and average. Which I got...
[2 replies] Last: Efficiency aside, why is the array 2D if the dimensions of the array a... (by Ganado)
by prc27
Handling notifactions from an external file/library
 
I've written a library (functions declared in a .h file and defined in a .cpp file) and I'd like to ...
[1 reply] : I'm afraid you're going to have to be a bit more specific. Perhaps yo... (by Ganado)
strings hashing
 
I am trying to check a substring if it's exist in another string using string hashing. This is my c...
[4 replies] Last: learner2 Maybe :) thank you (by ahmad alghadban)
Pages: 12345... 9
  Archived months: [feb2020]

Cannot post in this page. To post a new message, go to the first page.