General C++ Programming - February 2012 (Page 33)

SDL Key Hold
 
void handle_keyboard() { Uint8 * keystate = SDL_GetKeyState(NULL); if(keystate ){ var_game_...
[4 replies] Last: (once each iteration in your game loop). Did you mean "main" ? Yo... (by hentaiw)
The dreaded round-off error
 
A simple program turned into one of my most sophisticated endeavors. A simple program that reads inp...
[1 reply] : Geez it seems as if the rounding is dependent on the architecture you ... (by nooblet)
C++ coding format
 
Hi people, I am writing a documentation for my assignment, and need to do it in a professional way. ...
[2 replies] Last: Thank you my friend you were really helpful. Really appreciated. Regar... (by orangeapple)
THE CODE ABOVE YOU (Bank acct# problem)
 
Code collaboration game! Objective: Solve a problem using C++ with other forum members! Have fun!...
[1 reply] : int main() {} (by nooblet)
System Utilities
 
hello everyone, i need some suggestion what system utilities i can do using C++ my professor gave...
[no replies]
Changing lib file name
 
Hello, Im creating dll file and i want to change its name. i do know how to change the dll file ...
[no replies]
Desire Manipulating.
 
In C language we used to write. printf("%4d",1); the output of such statement was 0001. What is t...
[no replies]
problem with 2 particular outputs
 
Hello, i tried writing a program for two particular outputs but i dont get them after trying them...
[6 replies] Last: Okay then, I guess I'll have to literary do one for you.. for(int li... (by hamsterman)
by Aeolus
Comparing a line with next of the same file
 
Hi all, I want to compare first line with next line of a file containg single column. for exampl...
[3 replies] Last: Store the line in a temporary string . Then go on comparing as Moschop... (by rambo1177)
Listing Memory Regions
 
http://quequero.org/uicwiki/images/Tracur_LordPE_Dump.png I want to do something similar to the a...
[no replies]
Rotating PGM file 90 degrees
 
We are supposed to be writing a function that rotates a PGM file clockwise 90 degrees, passing a mul...
[2 replies] Last: You could express it as a char vector instead, you would probably be b... (by closed account o1vk4iN6)
dealing with struct
 
Hello guys, I have the following code for .h e .cpp of a class. In the .h I declare a struct "...
[2 replies] Last: Worked, thanks! (by fabiolanza)
Writing a text file into a 2 dimensional array(help!)
 
Ive been creating a little project that lets the user make a path on a graph using a two dimensional...
[1 reply] : You want to print the number for bytes? You would need to typecast to ... (by closed account o1vk4iN6)
Overloading the insertion operator
 
Trying to do some state reporting. I'm running into accessibility issues trying to print out objects...
[1 reply] : Syntax is good other than you are missing a semi-colon at the end of y... (by closed account o1vk4iN6)
how to pass sprtinf function as a parameter
 
hi just wondering if someone could give me an example on how to pass a std sprintf function into a p...
[4 replies] Last: [quote=vietory]Thanks for the replies, Just wondering is it possible ... (by LB)
by Cole99
2d Game
 
I have asked around and saw that I should use something like SDL or SFML. I tried setting both of th...
[10 replies] Last: no (by Peter87)
Keylogger (Not hacking, just learning)
 
Ok, so I have made a keylogger in C++, and it has a single large error. It prints the string that is...
[11 replies] Last: This is a learning experience for me, and if there is something I can ... (by apache1649)
EOF problem
 
Hi everyone, I am writing a program that counts how many times each of the numbers 0-4 have been typ...
[3 replies] Last: Do as JLBorges suggests and test against '0' and '4' directly. Your... (by Duthomhas)
File just wont get created.
 
#include "stdafx.h" #include <iostream> #include <fstream> #include <cstring> #define MAXIMUM...
[no replies]
C code, but the logic is the same with C++
 
This is C code, but the logic is the same with C++. I can output something, but there is one case I...
[no replies]
February 2012 Pages: 1... 3132333435... 43
  Archived months: [jan2012] [mar2012]

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