General C++ Programming - June 2014 (Page 16)

how convert and return a C format string to string?
 
heres the function: string ToString ( const char * format, ... ) { char buffer ; va_list args; va_start (args, format); vsprintf (buffer,format, ...
[7 replies] Last: thanks for all... thank you (by Cambalinho)
R6025 - pure virtual function call
 
Hi, I have a very annoying issue. I have made a little Space Invaders clone. I have a vector of enemies: std::vector<Enemy> enemies_; When the players "roc...
[9 replies] Last: > handlers_.erase(std::find(handlers_.begin(), handlers_.end(), handl... (by ne555)
GLUT (and probably GLEW) not working (followed install instructions)
 
Sorry for new thread but other thread was getting off topic.... I installed glut as like the readme.txt file said: * Put the .dll in system32 directory *...
[3 replies] Last: As long as you're getting "undefined reference" errors, it means somet... (by xismn)
Returning a specific value
 
How do I return a specific value from a function in order for me to cout it in my int main? In this case i have solved for a value sigma1 in my function but ...
[5 replies] Last: Ok i have fixed the issue i was computing the function twice and thats... (by sidthekid2014)
Making walls for a c++ maze game
 
Hey all, this is my first post so I apologize in advance if I mess up formatting. I am making a maze game with the player navigating to pick up a key and and us...
[no replies]
Creating a Map
 
Hi guys, I have a question, how can I create a Map in the Console, like : You start on field 53 then you go North then you at field 43. (the field nummer you wi...
[no replies]
CodeBlocks lib
 
Anyone with experience using codeblocks.Can u tell me how to use lib files.All i have is a CMUgraphics.lib and CMUgraphics.h file.I need step by step on how to ...
[3 replies] Last: Hello, I always right click the project name in the workspace tree. ... (by Nico)
by lcsgz
C++ Help
 
Help.. The problem is commented there in lines .. If you don't understand, warn me and I'll try to explain better. (I'm not good in english, i'm sorry) https:/...
[2 replies] Last: Thanks fixed. (by lcsgz)
by N10
borland c++ :-tic tac toe game
 
hi tried to make tic tac toe check this out BORLAND C++ not other #include<process.h> #include<iostream.h> #include<co...
[no replies]
by N10
a mind reading game
 
ANY ONE PLEASE CHECKOUT IF THIS ONE WORKS WELL , OPEN FOR ANY SUGESTIONS !!!!!!!!!!!!!!!!!!!!!!! This is an app ,just for fun , only thing you need to ...
[13 replies] Last: its 4.5 that might b the reason (by N10)
Need Help with pointer arrays.
 
I have not been using pointers that long i most of my stuff has not needed them but now they do i need to learn how to use them more. I'm writing a program that...
[2 replies] Last: @CPlusPuke its a little weird but the gameloop is the constructor the ... (by supersammy7000)
Help me with my C++ Program!!!
 
hey guys. I am having trouble to do a C++ program. Can someone help me get to a start which I can then follow up on. Basically, the program has to give the user...
[2 replies] Last: alright thanks mate! really helped a lot! Will try to show my progress... (by fadedaway)
DES Decryption not working!!!
 
Hi guys i have this code for multicast with encryption and decryption with DES(shared key) i think encryption goes ok but decryption not working and i can't fin...
[2 replies] Last: thx i'll check again... (by wolk324)
*p=new int; invalid conversion?
 
int *p; *p=new int; Why is this an invalid conversion? p is a pointer, and *p is the integer that p is pointing at. "new int" is also an int, right?
[2 replies] Last: Thanks a lot. (by CharChen)
Username and Password Verification...
 
Hi guys this is really important i searched an example code about "Username and Password Validation between Server and Client" through internet a LOT and i coul...
[3 replies] Last: i'm sorry english is not my native so what i meant is i need an exampl... (by wolk324)
Help-me
 
Hello, i need to capture the console screen and save to a img:) but, how?
[3 replies] Last: Take a look here: http://stackoverflow.com/about and remeber this ve... (by condor)
OPENGL tutorials - which ones work with codeblocks?
 
I have started an OpenGL project, and was originally going to start following tutorials in it. Trouble is, none of the code from any of them I've found works, t...
[10 replies] Last: > (sorry its an image but you cant copy and paste from the build log) ... (by ne555)
Internal compiler error: Segmentation fault
 
I'm making a monopoly simulator and im trying to input proporty names and its giving me a segmentation fault. I have no idea what could be wrong so i wanted to ...
[4 replies] Last: Ok now i updated code::blocks and now its saying its a GameLoop.cpp 10... (by supersammy7000)
by Tier
Need help w/ BUG in Consumer Producer lab
 
hey guys, for one of my classes, we're learning semaphores and pthreads. So, I wrote everything and the code is compiling and running, however, I've got a bug t...
[3 replies] Last: OMG that was it! :D the correct line of code is: head = (head + 1) % ... (by Tier)
getline and cin abnormal output
 
hey guys I am having the following error for this code when I try to input file values. cout<<"Please enter file name for reading: "; cin.getline(fileName...
[5 replies] Last: There is C I/O (c streams) defined in cstdio: stdin / stdout /stderr /... (by MiiNiPaa)
June 2014 Pages: 1... 1415161718... 21
  Archived months: [may2014] [jul2014]

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