General C++ Programming - May 2013

Faster memcpy routine
 
//It can be further enhanced by making it 64bit. unsigned long copy_linear(void* read,void* wri...
[11 replies] Last: OP will not be able to produce code faster than standard strxxx(), mem... (by Duthomhas)
by Daleth
"Translation" vs. "Compilation" unit
 
Which is the correct term? I've seen both thrown around, but a couple times I see people correcting ...
[2 replies] Last: The definition is pretty much unchanged across C and C++ language defi... (by Cubbi)
Using Char in a Menu/While Loop
 
Hi guys I'm working on a project that uses type char instead of type int to make selections in a men...
[1 reply] : Lines 30 and 52: They will always resolve into a true statement. The "... (by Daleth)
rename all files in a folder
 
Hello everybody! I need help I want to rename all files in a folder (exactly I want to change extan...
[1 reply] : $ ./a.out FILE*.CHK int main(int argc, int argv){ for(int K=1; K<... (by ne555)
Help! Random number generate
 
Is it possible that have a function or class can generate independent random number . And I can use ...
[3 replies] Last: using rand() is not exactly independant. There is Mersenne Twister. (by DeXecipher)
a more manual use of glut?
 
Hey guys, I've been having an issue with glut and have looked around and still cant seem to figur...
[1 reply] : You shouldn't have a problem using the keyboard from glut using glutKe... (by mik2718)
Linked List Sorting Algorithm
 
This is the algorithm I have so far and it works great. I was wondering what other people think?? Co...
[14 replies] Last: You could just 1. allocate an array of Node pointers of size length 2... (by mik2718)
Reading Multiple text files
 
Hi, I want to know how to read multiple text files in this program... I have 5 text files(order1,o...
[3 replies] Last: Hey I also have another problem can you pls help me with that. I anot... (by naveen19)
ifstreambuf_iterator Problem
 
#include <algorithm> #include <iostream> #include <iterator> #include <vector> //============ W...
[4 replies] Last: Thank you all. I used a binary file and only passed values through a l... (by knowNothing)
sos who can help me ......
 
i dunno the significance of the following code , look at the following...code #include <ystdex/co...
[6 replies] Last: ah its a predicate sorry. Try to make it a function ptr instead of a r... (by DeXecipher)
Question about custom allocator?
 
I want to see how the STL containers manage their memory. So I write an Allocator that inherited fro...
[6 replies] Last: rebind converts an allocator for one type to an allocator for another ... (by Cubbi)
by plexus
"datatype" auto
 
When I first read about the new "datatype" auto in C++11 I was like WHAT??? You kidding, right??? ...
[12 replies] Last: > to prevent horribly long lines of code. Yes, that. Also, to write e... (by JLBorges)
by dem7w2
Passing a polymorphic array entry
 
I'm having an issue during the linking stage of the .exe during compile time, and it's because of a ...
[1 reply] : A bit more stumbling around and I figured out it wasn't a polymorphic ... (by dem7w2)
by xxeus
How to create auto clicker+typer in C++ ?
 
Okay so what I want to do is :- Create a program that can, say for example, switch to an already op...
[1 reply] : I need to know how to control the mouse Emulate mouse messages: http:... (by MiiNiPaa)
Parsing through large data sets
 
Hi everyone, So I'm attempting to write a program that will parse through a large file (genome se...
[5 replies] Last: std::vector<bool> optimises space but compromises access time. 1G is ... (by kbw)
Templated function error: no matching function for call to
 
Hiya all I posted to fast ... I figured it out, Sorry! Still learning and have not got to template...
[2 replies] Last: # g++ -v Using built-in specs. Target: i386-undermydesk-freebsd Conf... (by SloppyJoe)
implementation of function in BST to return parent with biggest son/sons
 
I got a code of a BST and i need to create a function that will return the value of the parent that ...
[1 reply] : guys please help - i am absolutely frustrated with this question (by Netanelwallach)
by grubby
need help in stack and queue!! please
 
Hi,I am a c++ beginner. I am using vs,and I got a problem in my code which check a sentence whether ...
[7 replies] Last: while ( character != '\n' ) { if ( character != ','&& character !... (by abhishekm71)
by Daleth
Clarification on the usefulness of the "!!" idiom (1,2)
 
http://stackoverflow.com/questions/1310344/why-use-when-converting-int-to-bool In the comments be...
[24 replies] Last: @ helios I try to read and understand your posts (not always successfu... (by buffbill)
by andmon
How to get Numerical Hessian from alglib
 
Dear all, Is there a way to get the value of the numerical Hessian at the minimum (using BLEIC al...
[no replies]
May 2013 Pages: 123... 47
  Archived months: [apr2013] [jun2013]

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