Beginners - June 2009 (Page 6)

Cloning double value?!
 
Hi everyone, I'm sure this is an absurdly simple problem, yet I'm having some trouble figuring this out... I have a two-dimensional double array that I've cr...
[10 replies] Last: Helios, I don't even know what you are talking about. The statement i... (by kempofighter)
by NGen
Variable not found?
 
In my class, I have multiple variables that are defined in a header, and are used elsewhere in the functions that use them. However, whenever I call a function ...
[6 replies] Last: I'm initializing it as 0 in my main function... although that might be... (by NGen)
Can't find my error
 
here is my code radius = 0; q = High + 1 + f; t = Long + 1 + f; a = 0; b = 0; h = 0; if (q <= height && t <= length) { do{ e = High + 1 + ...
[7 replies] Last: if (e < height || g < length) If e or g are OK => if one of them... (by Bazzy)
by pccX
private member variable
 
What is the main purpose of private member variable? Is it to be a privately global variable in a class?
[1 reply] : A private member is something that the user must not modify eg: t... (by Bazzy)
by karu
opencv problem..
 
can any of you guide me in how to create a video out of frames present??? i use open cv with visual c++
[no replies]
Quicksort with strings and integers
 
I need to use quicksort to sort data by street name first then house number for my C++ course. I understand how to use quicksort and also how to sort strings, ...
[3 replies] Last: You only need one sort; you just need a comparator function that break... (by jsmith)
Frequency Substitution Decryption
 
//The purpose of this program is to decrypt a message by comparing the //frequencies of the letters to the frequencies of the letters in the //english alph...
[18 replies] Last: It would be even further simplified to store letter counts for the ent... (by jsmith)
Structure Question
 
Is it a fix rule that when we use a structure, we have to follow this syntax struct_key word struct_name { type_name member_names } struct_type...
[8 replies] Last: The question is whether it is ok just to initialize struct_type_n... (by Bazzy)
Decimal to binary conversion
 
Hi i have used showbits function to convert decimal to binary.showbit(7) gives 000000000000111.can i directly store this value in an array and then how to aces...
[3 replies] Last: // #include <bitset> // assume '16' to be the number of bits you... (by Bazzy)
by levone
file stream problem
 
this code. #include <iostream> #include <fstream> int main() { using namespace std; char ch; ifstream infile; ofstream outfile; infile.op...
[2 replies] Last: thank you. figured it was something like that, after looking at the ... (by levone)
Function Pointer not behaving
 
I am trying to build a class (Player) that contains a few functions, and a function pointer that points to one of those functions. I wish to call that function ...
[3 replies] Last: Thanks, that strategy patter will definitely come in handy! Gosh, this... (by SpencerC)
function with array
 
Hi, I have an array of chars at a function and I would like to return a pointer so the data will be available from outside. I encounter a compilation error: ca...
[2 replies] Last: I use SDK and at the CanRead function I call to one of the SDK funct... (by romandvir)
Memory and Thread
 
Hello, I realize a client-serv UDP in c++ with VS8. The data sand size can be very different: 10o to 1Mo. My program has two threads who do the communication....
[4 replies] Last: I have found the problem. I created my var in the thread stack and ... (by gilgamesh)
While loop & switch control blank space counter question
 
I have searched and tried multiple solutions and still cannot get the correct results. What I am trying to do is read from a file and count the characters INCL...
[2 replies] Last: It worked. Thanks. Here is my code for anyone who has a similar pr... (by My Name)
Strlen() Function
 
Well...I know how this works but I still have a question about what the author said in the book(instruction book). Well...Usually you use strlen() function t...
[4 replies] Last: arun1390! Nice work and well done example. I feel more at ease being p... (by kenryuakuma)
compiling errors !
 
Hi guys ! Does anyone know what the following error means ? fatal error C1083: Cannot open include file: 'process': No such file or directory Any reply...
[3 replies] Last: Did you mean <process.h>? I don't know if that particular header is pa... (by helios)
Dev-C++ Debug Problem.
 
Hey! Okay. I got this book "Beginning C++ Game Programming" and im suppost to make this code in Dev-C++. // Score Rater 2.0 // Demonstrates an else clau...
[4 replies] Last: Okay.. It still doesn't work with the "cin.ignore( numeric_limits<s... (by FredeGeek)
How to make a program not wait for input
 
My program uses getch(); to get input, but the program stops until the user inputs something. I want the program to do other things even if the user does not in...
[6 replies] Last: 'keydown' is just a variable, you need windows.h to have GetAsyncKeySt... (by Bazzy)
function calls
 
How can you call 2 void functions in the same time. I'm trying to use this for recursive call.
[1 reply] : If you want multiple functions to be called at the same time, you shou... (by Bazzy)
by arshak
restarting the computer
 
Hi! I wanna make a program, that restarts the computer. Will u help me to write the code, plz???
[1 reply] : If you are on Windows, you should try InitiateShutdown: http://msdn.mi... (by Bazzy)
June 2009 Pages: 1... 45678... 18
  Archived months: [may2009] [jul2009]

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