General C++ Programming - October 2010 (Page 21)

Experiences with Intel TBB?
 
Any used Intel TBB with success? http://www.threadingbuildingblocks.org/ In trying to use Active Objects for a GUI (NCurses), I tried implementing a threa...
[no replies]
Got a little DB going. How to count how many entries?
 
Each entry ends with a newline (\n) and is written to a txt file. How can I count how many entries there are? I am going to count them and then sort them.
[2 replies] Last: Yeah now I feel dumb. I figured it out simple enough, I'm just really ... (by Cloudboy)
by fukki
Data structure - passing parameters
 
Is it better to pass parameters by value or reference in data structures ?
[2 replies] Last: Ok, thanks a lot jsmith ! (by fukki)
by fukki
Add a message inside other message
 
Hello, those are 2 parts of my simple program. It uses data structure with classes. I have a loop sending the cars to the class function to check them if ar...
[4 replies] Last: The way I'd do it: listMoified{ create a vector of char*. ... (by hamsterman)
by fukki
strcpy error msg
 
THe program run perfect but i got the following error from my compiler: warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy...
[2 replies] Last: Ok, i understand the mistake after reading the provided link. Than... (by fukki)
Error message
 
I am getting error c2448 'TestWinner' : function-style initializer appears to be a function definition. The error is pointing to the bool function definition, ...
[5 replies] Last: I realized the missing brackets, and figured out the parameter problem... (by tnixon22)
by fukki
Array of struct size
 
Hello there! I try to learn the array of struct and i make one small program. A small part of it is warehouse car ; car .inputCar("lamborgini",true); ...
[2 replies] Last: Nice! Now i see. Thanks hamsterman for your precious time. (by fukki)
by fukki
data structure problem
 
Those some parts of my program. I write the problem at the buttom void main() { string option; warehouse car ; car .inputCar("lamborgini",true); ...
[6 replies] Last: It works with global variable, but i wanted to make it work with passi... (by fukki)
value passing through vectors
 
Dear all, I'm now writing a program, and want to save a value from one-dimensional vector to two-dimensional vector. But when I code like this 2DVector =1D...
[3 replies] Last: Why that? Most likely it's the best to keep it as you have it and put ... (by JoR)
by top68
Saving a plot in a BMP file
 
I use Borland C++ 3.1 DOS version. I have written a program that plots a series of numbers versus time axis using graphic functions of C++ 3.1 DOS. Now I want...
[1 reply] : Don't double-post: http://www.cplusplus.com/forum/beginner/29403/ (by Null)
confused with pointers
 
Hello to everyone,well i am trying to make a pointer to a function.Firstly the following code works just fine: #include<iostream> using namespace std; vo...
[2 replies] Last: ok helios thanks for your sunbeam (by kikirikou)
Creating Folder C++
 
How do you create a folder with a name that is entered into the prompt? For ex: What is your name? - cin name; - mkdir("c:/" + name); or something like that? ...
[2 replies] Last: Boost works: http://www.boost.org/doc/libs/1_44_0/libs/filesystem/v2/... (by Galik)
What's wrong with this?
 
I'm trying to make a .wav loader/player, and I based the part that plays it off of some code I found on the internet designed to create the sound in memory and ...
[3 replies] Last: Well now I feel stupid. I forgot to set the dwFlags member! Do'oh. T... (by PiMaster)
sigbus while storing pointers in a stl map
 
The following stacktrace shows the place where my code crashes with a sigbus. I highlight the validity of an object (a pointer, in this case) being stored in ...
[no replies]
Destructor of Singleton Class
 
1)Who invokes the Destructor of a Singleton Class? 2) How an object of a Singleton Class gets destroyed ?
[1 reply] : 1) As with any class, the destructor is called when the object is des... (by Disch)
unused variable
 
Hi, Please go through the code //Test.h class test { public: test(); ~test(); void display(); private: int* m_displayVar; }; //Test.cpp ...
[1 reply] : what happens when you compile it? it runs properly doesn’t it? (by blueberry)
error c2448
 
I am getting the above error code in my program stating -- "function-style initializer appears to be a function definition." The problem is that where the erro...
[5 replies] Last: The declaration and definition must be exactly the same, with the exce... (by LB)
How can I type like password when I input data ?
 
Hello, I want to hide characters when I input data from keyboard like that printf ("Enter your password:"); If I type "mypassword", in my console terminal wil...
[1 reply] : http://www.cplusplus.com/forum/articles/16139/ (by Bazzy)
counting times each character repeats ...
 
Hello everybody! I have to count how many times each character repeats in a entered string. For example: abcabcdekj29187a* a ->3 b ->2 c ->2 d ->1 e ->1 ...
[2 replies] Last: Thanks, I've done! This my code :) #include <iostream> #include ... (by mp121209)
function overloading??
 
I am new to programming and am wondering if someone can help me with this code... Please implement concisely and efficiently the following function overloadi...
[4 replies] Last: don't post full solutions plzkthx (by Disch)
October 2010 Pages: 1... 1920212223
  Archived months: [sep2010] [nov2010]

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