General C++ Programming - July 2013 (Page 24)

NPC Wont Move (and no collision)
 
Well thanks for past help with my RPG once again. Right now I have another problem. Before I can put enemies in my game I'll have to finish movement on my NP...
[18 replies] Last: UPDATE - Thanks everyone I can now begin on Inventories/Combat. I hope... (by closed account N36fSL3A)
by heepoo
a game engine
 
hi all i'm writing a game engine what library should i use for my engine? allegro, sfml, sdl or something other i like to write my engine for all operating ...
[3 replies] Last: I used SDL, but SFML is faster and such. But I'd still recommend lear... (by closed account N36fSL3A)
by Ciu
Deadlock.
 
I recently made code that causes a deadlock (or atleast tries to make it). Code: #include <iostream> #include <thread> #include <exception> using na...
[3 replies] Last: main thread writes to doNot and the two other threads read from doNot ... (by Cubbi)
by slydex
Passing a C++ classfunction pointer to a C function
 
Me and my colleagues are working on a project right now, where we are supposed to connect our C++ program to a C program we haven't written. More specific: w...
[4 replies] Last: You need to implement a C API which has functions which call on to the... (by andywestken)
ERROR: Expression Must Be a Modifiable lvalue
 
I've written a linked list and once I got to the end, it states that my list variable has the above error (within title). Not sure on what is wrong. HEADER F...
[6 replies] Last: list = new DoublyLinkedList (list ); // what is list ? not defined. ... (by abhishekm71)
choice between composition and inheritance
 
hi i have an assignment regarding this topic, can anybody help me please? due date is 11 july. Suppose you are working as a software developer in a company. ...
[2 replies] Last: use inheritance only when you want to extend the functionality of the ... (by coder777)
Text file i/o
 
Hi, I have written the following code to add data to text files which are required to store 3D scan data (I have to calculate the y-coordinate). My code see...
[1 reply] : Use the std::string mechanism: file = dir + "/profile_00" + convertj.... (by coder777)
Errors LNK2028 and LNK2019
 
I do not understand why my program won't work because of numerous LNK2028 and LNK2019 errors. I am using Microsoft Visual Studio Express 2012. 3 files make up t...
[3 replies] Last: Here it is with code tags: Header take 2.h: #pragma once #include <... (by sharpie789)
Android
 
How do I port a pc game to android? Do I just include liraries or do I have to rewrite all my code?
[5 replies] Last: It is c++ code and I know my code and java was not built for android ... (by coder777)
by ewl
error dereferencing pointer to incomplete type
 
I am having trouble with this program I get the error dereferencing pointer to incomplete type in the populate function I am using BloodShed's Dev C++ compiler ...
[3 replies] Last: 1) Please use code tags when posting code to make it more readable. ... (by MikeyBoy)
priority_queue
 
hi all, i can not understand this line of code... :( can some on explain it what does it do? std::priority_queue< std::pair< std::vector< ActionStatePair >...
[1 reply] : It creates a priority queue called "queue" where each element is a pai... (by Cubbi)
by Manga
Lies, lies, and a bunch of A.I.
 
Not to long back I had written a "rock, paper, scissors" program, but today decided to modify it. I wrote in some variables which the program would use to store...
[19 replies] Last: You don't suppose the computers themselves took offense to me saying t... (by Manga)
I need help with my code
 
I need help it skips the cin.getline in my if stat mint and I have no clue why? ps.I am using visual c++ #include <iostream> #include <fstream>//libry ...
[1 reply] : Add cin.ignore before cin.getline : cout << "";// needed to make t... (by TTT)
by minak
join function
 
hi I am using windows library for developing multi-threading. I wonder to know that what is the equivalence of join function in windows library? in fact I have...
[1 reply] : WaitForSingleObject() or WaitForSingleObjectEx() http://msdn.micr... (by JLBorges)
32bit vs 64 bit in structure and union
 
Hi, I have question on union assignment. In the below code,I write one_ascii but I have copied the value in r.four_int and r.four_int .Does r.one_ascii contai...
[no replies]
[HELP] Convert To SafeArray
 
Example: int nArgc = 0; LPWSTR *s_Argc = CommandLineToArgvW(L"Cmd1 Cmd2", nArgc); On above example, the command list are stored in s_Argc pointer. I c...
[no replies]
What can a pointer of type void be used for?
 
Hi.. I want to know what a void pointer could be used for and if anyone could post some links to examples where void pointers are being used.
[6 replies] Last: Because the clutter api requires that the callback function has a cert... (by htirwin)
is Possible that read and write in DMA at same time&
 
Is it possible that we can read or write data in DMA?I have developed window application in which DMA is involved for data transfer and receiving from pc.is it ...
[no replies]
by Jubbly
Simple calculator operation
 
Hey guys so I'm trying to modify my old calculator program from previous assignments, into a calculator made of functions. What I'm struggling with is trying to...
[5 replies] Last: int main() { double x=0., y=0., z=0.; char op; bool reset=true... (by ats15)
code problem
 
why does my program not properly run through the clearly defined if statements in my program? Am I missing something? I don't need an answer just some direction...
[13 replies] Last: Ok, not bad, but you missed the bool variable, the quit option, and us... (by TheIdeasMan)
July 2013 Pages: 1... 2223242526... 34
  Archived months: [jun2013] [aug2013]

This is an archived page. To post a new message, go to the current page.