General C++ Programming - July 2010 (Page 14)

how to use a dynamic function parameterlist in a function call hierarchy
 
hi, i have a question about how to use a dynamic parameter list as in the example required. int func2(int a,...) { //her i will use all the parmeter...
[4 replies] Last: Oh, that's a really crappy situation :/ The best solution I can think ... (by m4ster r0shi)
Detecting if one of the buttons was pressed?
 
Hey, Here's what im having trouble with; HWND ebutton; HWND mbutton; HWND pbutton; pbutton = CreateWindow("Button", "Play", WS_CHILD | WS_VI...
[3 replies] Last: Fixed (by Ravskie)
Check this out!
 
This is an example that I found in a C++ book I found laying around: #include <iostream> using namespace std; int main() { float original = 0.0; ...
[2 replies] Last: Here's how I think it should be: #include <iostream> using namesp... (by Athar)
Operator speeds
 
I don't care that much about the speed of various operators, but I'm making a game engine, so speed could quickly become an issue. My first question of speed: w...
[10 replies] Last: Is there a faster way to draw one surface to another than nested for ... (by helios)
implement dictionary with hashtable c++
 
I want to implement a dictionary using a hashtable. I have a "word" textfile that contains a list of over 100,000 words (each word is separated by a newline and...
[1 reply] : and they would be? (by Seraphimsan)
Using extended ASCII in C++.
 
Hi, So I was curious if you could do something like this: #define ∑ 1 Now I mean something like this for the following reason, when I trying co...
[14 replies] Last: I still don't understand what the goal of defining sigma to an integer... (by Rabtherab)
How to resume if you press IDNO?
 
Hey again, Thanks to help of two people, i was able to get this work; TEST = MessageBox(NULL, "Are you sure you want to quit?", " ", MB_ICONQUESTION | ...
[4 replies] Last: Fixed it, i looked wher eit was called and removed DestroyWindow(hwnd)... (by Ravskie)
Suffix tree: Deepest Internal node
 
I read somewhere that you can find the longest repeating substring of a given string by finding the deepest internal node of the suffix tree. Though that makes ...
[no replies]
Error
 
invalid conversion from `void*' to `BYTE*' I m using Eclipse C++
[4 replies] Last: thnx dear i got, (by atifjatt)
Detecting WIN32 button press.
 
Hey, I have this code; int TEST; // only way i could assign this to the messagebox. void createbox_QUIT() { TEST = MessageBox(NULL, "Are you sur...
[3 replies] Last: Sorry i posted in Windows aswell, i thought i put it in the wrong cat.... (by Ravskie)
Static Map initialization
 
Hi , I have a strange problem. Currently i am using array of structures and initializing it statically at compile time. e.g. const MyStruct elements = { ...
[10 replies] Last: +1 moorecm (by jsmith)
Stripping whitespace
 
I have a problem with parsing, to do with stripping whitespace. I'm saving data for an application in JSON format (I'm creating a "schema" parser for JSON, that...
[2 replies] Last: Right now I'm not using tokens, just reading directly from the input s... (by stravant)
Ptr to function syntax
 
typedef VOID (__stdcall* PFoo)(PObject object); Can anyone summarize what's being represented by the above syntax?
[1 reply] : __stdcall VOID my_PFoo(PObject object) {} would would be of the type... (by stravant)
by vijkrr
How "new" in C++ is working??
 
Hi I reading about the memory management concepts. I want to know how these new, malloc and all working. 1. How they allocate memory in heap? 2. Is it po...
[6 replies] Last: Notice that with std containers you can overwrite the default memory a... (by kempofighter)
Problem returning double from function
 
I am new to C++ and have a problem. I am compiling code with GCC for an ARM processor and have a function that returns a doubel value. Prototype is: double Tex...
[7 replies] Last: What about this? That is if you can't use the <sstream> header then u... (by kempofighter)
by Ditab1
Data Sort - Multi Columns
 
Moved from Beginners Forum. Code: #include <iostream> #include <fstream> // File Input/Output Stream #include<iomanip> #include <windows.h> using name...
[no replies]
question
 
hello every body , I 'm in trouble , i have a project about clinic by using borland c++ , my problem is that i want to search in the project of clinic by seri...
[3 replies] Last: Ok, here's an example: #include <iostream> #include <string> #in... (by m4ster r0shi)
Need some idea
 
Hi everybody. I have problem with sending arguments from one function to another. I have operator<< (wich i overload in my function and it is not output stream...
[5 replies] Last: /* line 12 */ }else if (this->state==2){ (by helios)
Question about the static object destruction when degign a memory allocator.
 
I want to implement a memory allocator but met a problem with the static object. My memory allocator provide a global access interface. If there is a stati...
[5 replies] Last: Or, if you are using a modern OS that won't leak memory, don't bother ... (by jsmith)
memory consumption lists
 
Hi, I created a program to handle large datafiles where I 'pipe' the data trough a list with pop_front and push_back. However I noticed that the program is ...
[6 replies] Last: Thank you for the explanation. My gcc-version seems to have the same ... (by jaapkroe)
July 2010 Pages: 1... 1213141516... 20
  Archived months: [jun2010] [aug2010]

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