General C++ Programming (Page 2)

Deleting and Instantiating Objects Each Frame
 
Is it ok if we create and delete objects in a loop (by heap allocation) like this? while (game.isR...
[6 replies] Last: Yes, and there are a lot of issues involving memory allocation that th... (by gaxio)
how compare a char?
 
when i do: IsOperator(strinput[uintStringIndex+1])=='=' why i get these warning: "comparison of...
[11 replies] Last: Brilliant :) (by Ganado)
c++ simple trees
 
Can someone please tell me why the code crashes? I'm trying to code a simple binary search tree. Ma...
[2 replies] Last: Thanks for the help (by JustinPlusPlus)
competitive.. (1,2)
 
Please explain the below question with more testcases and explaining each of them. Katya has a se...
[32 replies] Last: How do I find modulo of large number in NMNMX? I have got the logic bu... (by luta)
Array
 
Hi guys, I have this list and I want put in array and then call it Aries March 21 - April 19 Ta...
[no replies]
by memguy
Collision Detection Algorithm
 
Hi, I've got an array of GameObject class and I want to do something like this: vector<Gamobjec...
[1 reply] : Collision Detection is a very broad subject, and the techniques can di... (by Ganado)
by Kr002
Maximization problem in 1D
 
Problem: We are given n points on a line numbered from 1..n and also the colors which we can use t...
[3 replies] Last: ok. hmm. still thinking. so far looking at … find all the conn... (by jonnin)
static vs dynamic linking
 
Hi guys,so I have asked a similar question before, but sometimes we need to include both a .lib f...
[1 reply] : The .lib files are of two kinds: static libaries and import libraries.... (by tpb)
Competitive progrsmming
 
i am finding difficulty in finding x how should i find that? i can find Y in nlogn but not able to g...
[13 replies] Last: You have written the wrong code in the input method such as Subtask #1... (by shivkumar12)
Need help looping through list of data frame
 
I have a list of data frames and I want to loop through the list and within each element in that lis...
[3 replies] Last: No prob. Alternatively, this is exactly the kind of thing that awk was... (by tpb)
by ORF
different behaviour compiled by clang vs GCC
 
Hello, I have a multi-thread program, which behaves differently when compiled by GCC or clang (ex...
[4 replies] Last: also, see what happens if you put the volatile keyword on the variable... (by jonnin)
Calculate consume cpu language c
 
Hi! How calculate consume cpu in process using language c? Thanks, Thcelo
[6 replies] Last: Use KBW's answer. (by jonnin)
dll resources?
 
Hi guys so from what I read and I will quote an answer from stackoverflow A DLL contains func...
[4 replies] Last: how would a dll file possibly contain resources such as icons,images ... (by gaxio)
by mk3000
problem with adding number to variable when overloading a operator
 
#include <iostream> using namespace std; class MY_OBJECT { public: int x, y, w, h; }; class M...
[2 replies] Last: When you see << or >> in the context of a stream, the arrow points in ... (by mbozzi)
What's wrong with the language? (1,2)
 
So, I have been using C++ informally (and a ton of other things, but C++ was my first) since middle ...
[20 replies] Last: [quote=helios]b.foo() can be resolved statically because B overrides n... (by Peter87)
Access pointer methods of pointer vector
 
I'm not really sure how to phrase the question exactly correctly, but I've declared two vectors s...
[4 replies] Last: repackage data? Eg, say you had a list or tree or something of data ... (by jonnin)
by memguy
Class Representation In Assembly
 
Hi, I am researching how c++ classes represented in the assembly. But articles I found for people wh...
[2 replies] Last: Well, you have to understand ABIs and mangling, honestly. Basically, C... (by kohlrak)
by memguy
How to create executable from engine ?
 
hi, I am working on a game engine project but I have a problem. In my game engine, there will 2 mode...
[11 replies] Last: Yeah, usually if you have a game engine it either loads DLLs (might be... (by kohlrak)
by memguy
sdl_ttf Corrupted message
 
hi, the message should say "current inited object count:" but it looks like this : http://i.hizlire...
[7 replies] Last: I see someone already fixed your problem, but there's another huge pro... (by gaxio)
Storing text file(usually made with fstream) ONLINE
 
In Short, i want to use fstream, but rather than the fstream accessing files from the local program ...
[4 replies] Last: I agree with above, my thoughts are you simply need something to contr... (by SamuelAdams)
Pages: 1234... 14
  Archived months: [may2018]

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