General C++ Programming - May 2012 (Page 23)

graphics without redrawing the background?
 
Hi. I was wondering if there was any way to do graphics without redrawing the whole background every frame but still be able to animate drawn objects. I feel li...
[2 replies] Last: Dirty rects was a good strategy 8 years ago. Nowadays it's pointless.... (by Disch)
Template whens and when nots
 
C++ provides template mechanism but I am confusing about when we should use template and when we should not. anybody willing to give me tips or some usefu...
[3 replies] Last: The only advantage of non-type template parameters isjust in function... (by ne555)
by hao
Header file issue. (simple program)
 
I just learned how to use header file recently, and try to write this small program but somehow it does not work. I am using Microsoft visual c++ main.cpp #i...
[2 replies] Last: Thank you sooo much for helping. Thank you for your advice and i'll be... (by hao)
[auto_ptr][test class]
 
Hi, I'm currently writing a test program who test each of the auto_ptr class functions. I have some problem to find a way to test certain functions : - the ...
[4 replies] Last: I figured out for the first 3 functions thank you. But the last one, ... (by Bebeoix)
Helpping to blocking traffic
 
Hello everybody how are you I want to write some code to blocks traffic to come from port like a simple firewall . would you help me please .
[3 replies] Last: You can use the hosts file if you want to block traffic coming from th... (by blueberry)
Assistance needed with pointer arrays
 
As the title suggests, I am trying to use a pointer as an array in my code but it's not working. I've read the tutorials on this site and a few others about usi...
[6 replies] Last: thanks rollie , that helped me to clear the concept to some extend . (by bluecoder)
Help me with solving
 
#include <iostream> using namespace std; #include <conio.h> #include <math.h> class point {public:double ab,or; public:point() {}; point (double a, doub...
[5 replies] Last: Please specify what does not work ? what does the program suppose to d... (by bluecoder)
Why Not Destructor is Calling
 
#include<iostream> using namespace std; class A{ int i; int b; public: A(){ i=0; ...
[2 replies] Last: Or change main to limit the scope of the objects: int main(){ { ... (by cire)
org statement
 
(const String& org, const String& app) What does the abreviation org stand for, and what is it's definition in the function argument. I think it may be related ...
[1 reply] : org is the parameter name. Read the documentation or ask the person wh... (by Peter87)
by Nybble
Flickering frames...
 
Hey me again, I have this problem with my animations: there is like a flickering if the animation frame for moving left/right is greater than the max frames for...
[3 replies] Last: @peter87: yes it is an else if that is how I have it, I didn't copy... (by Nybble)
#include errors
 
Hi all, my program is: #include <iostream> int main() { using namespace std; cout << " You have succeeded with this place_holder " << endl << endl;...
[1 reply] : I think visual studio is complaining that you didn't put #include "st... (by Peter87)
C2227: left of '->width' must point to class/struct/union/geberic type
 
..... ... unsigned int unResAvail; unsigned char unsSpeedValue; unResAvail= clasModule ->getAvilableResults(); if(unResAvail > 0) { in...
[4 replies] Last: I got the top part, bottom, I myself have made (by Kasirga)
Why Not Shallow Coping
 
In the code below why shallow copy is not happening? #include<iostream> using namespace std; class A{ int *p; int a ; ...
[1 reply] : It is happening. Note, you can't delete 'p', because you didn't alloca... (by rollie)
Is this called recursion.
 
I am also laughing at myself but really can this thing be called recursion? int function3(int num){ if(num==0) return 1; ...
[4 replies] Last: Recursion does not require a function to call itself directly. You can... (by andywestken)
error C3861 'app_cmd_send_mh' : identifier not found
 
#include "C_TSRRecognize.h" #include "Image/ByteImage.h" #include "C_TSRReadout.h" extern "C" { #include "recognize.h" } void recognize(int width, int height, ...
[2 replies] Last: thanks (by Kasirga)
Problems dealing with rand()
 
Hello! I am coding a tic tac toe game in which the computer generates a random number and makes a move accordingly. The random numbers are being generated well ...
[2 replies] Last: Oh my bad. Thank you for Helping. And sorry to inconvinience you over ... (by Wolfenstien)
by myslf
Project help
 
this is myfile.txt for use as the starting point. start 0 0 0 0 FarmersBestBank 0 135 0 0 Dante_s_Peak 0 0 0 285 Cen...
[no replies]
Find errors of argv[1] and argv[2]
 
Hi So I'm doing some error checking of parameters that are entered. This is what I've done for argv .The parameters are entered in the format of 25 2, and if i...
[4 replies] Last: > I need to check values of argv and argv Checking if a string cont... (by JLBorges)
line numbers in output window
 
I don't know if this is the correct forum for this type of question. To all vs2010 users. I have line numbers in my solution/build window, but when I build, th...
[2 replies] Last: I think there is a misunderstanding of what I want. When I build a sol... (by therry1)
Exit mistake
 
Hi everyone! Can you help me with my assignment I'm truing to write a function which will give the message and exit the program, but when I'm trying to comp...
[4 replies] Last: FYI, it stands for C Standard Library. (by firedraco)
May 2012 Pages: 1... 2122232425... 41
  Archived months: [apr2012] [jun2012]

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