General C++ Programming (Page 36)

Deleting Allocated Memory
Hello, I allocated an array of strings as follows. char *pTokenList = {"Customer Purchase Ord...
[1 reply] : Only delete things allocated with new Only delete things allocated w... (by Disch)
Am I doing this wrong? (working with massive data files)
Hello, I am currently creating an application in Qt Creator that will plot data and perform some ...
[4 replies] Last: As JLBorges pointed out, the best thing is to read the data into a vec... (by dhayden)
Function definition
Write a function that returns an integer and takes three character array parameters: left, right, an...
[3 replies] Last: I also have to write these error conditions. Would these go after my d... (by momalle)
How can I fix the int main part for this program to run properly?
#include <iostream> void print(int a , int n){ for (int i = 0; i < n; i++) std::cout << a << "...
[2 replies] Last: If you want to sort you should probably call your bubbleSort function.... (by naraku9333)
by xystus
Dlib c++ machine learning?
Where should I start? Tutorials, books? Thanks.
[1 reply] : the most important thing is to be very fluent in discrete mathematics. (by ToLesto)
Tilemap is eating a lot of memory (SDL)
Hello! I'm making a 2D game and right now I have created a tilemap that is being loaded from a text...
[2 replies] Last: @Peter87 Thanks, it fixed the memory leak problem, but I have still s... (by WAKS)
c++ beginner problem
Hi, I am c++ beginner and i need some help with a problem. Made a Rational class who allows you...
[3 replies] Last: Thank you dhayden. I know MikeBoy, you right, just i forgot. Thank yo... (by LadyInRed)
SegFault caused by strtol
I'm using the following code segment: <void decode_inst(char instruction ) { int i =0; if(...
[4 replies] Last: If your file contains anything other than lines formatted as "xyz 12... (by Duoas)
by yj1214
I want to develop VST synthesizers.
Hello all! I haven't been visiting this site lately because I was learning Python. So, As music p...
[1 reply] : Browse around various audio libraries. The phrase "make a VST" is gene... (by LB)
Advice with this Random Person function
So this code works as is. You can run this code by itself and have it cout the details and you'll se...
[1 reply] : You should only call srand() once at the start of your program, an... (by LB)
What level of expertise would it take to solve the following problem ?
Implement an STL compliant container called concurrent_unordered_map<class Key, class T, class Hash,...
[1 reply] : Duplications: (by LB)
Byte reading problems!!
When writing bytes, the last numbers last byte value is 10. When reading, it appears that its value ...
[7 replies] Last: Thanks! Full binary operating and casting combined works!! My new, F... (by hakeris1010)
by Xhobi
2D Array Function pass
Can you tell me please that how can i pass a 2D char array to any user define function?
[3 replies] Last: And how to return and then use 1D char Array..? (by Xhobi)
Complex AI's
First of all, I understand that some people are against complex AI's. I repsect that some people may...
[7 replies] Last: [quote=op]What im talking about is something that doesnt have pre stor... (by Computergeek01)
reverse function
Hello, I have code for conversion of longitude and latitude and I need help to reverse the functio...
[1 reply] : Do you round down intentionally on lines 6 and 7 by forcing division b... (by keskiverto)
de castlejau algorithm
Im trying to implement de castlejau algorithm and ran into a propblem and really don't know how to f...
[4 replies] Last: I don't know that algorithm, but I see: 1) in line 23 you used variabl... (by fcantoro)
Arrays from a class troubles
I am having troubles when compiling my code i get these errors: error C3867: 'program::getIntMap':...
[2 replies] Last: Oh my goodness, Im so silly! thank you so much I would of spent hours ... (by Belldore)
Looking for a memory leak. Not sure what I am doing anymore...
Sorry if this is short, I am being called to go somewhere. I will comeback and answerer any question...
[4 replies] Last: Yet another instance of why using namespace std; is bad std::next ... (by TheIdeasMan)
string class
What am I doing wrong here? #include <iostream> using namespace std; class String { int...
[3 replies] Last: Thanks it all works perfectly now. Now to continue this until I get mo... (by cppnoob25)
Big O Notation.
Would anybody know what this means? Having trouble understanding it. Characterize the following a...
[4 replies] Last: Hi, If you had: for (int i = 0; i < a; i++) { ... (by TheIdeasMan)
Pages: 1... 3435363738... 44
  Archived months: [feb2015]

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