General C++ Programming - June 2009 (Page 6)

composing a filename using an int variable
 
I would like to create a file to be written to, using a given number inside the filename (something like output4.txt) I have: int function_name (... int n...
[5 replies] Last: I suspected strongly it was intentional :) Popular culture is a we... (by tition)
fread reads wrong data in Multithreaded app.
 
Hi, My application continuously reads and then writes the same data into a .txt file.I use fread and fseek for reading. But when there are around 7-8 threads d...
[no replies]
Virtual destrucktor in Adapter patterns
 
Code1 CTaxi.h #include<iostream> class CTaxi { public: CTaxi(); ~CTaxi(); void reinigen(); double taxameter(); ...
[8 replies] Last: np... wenn noch weitere fragen dazu hast... mail an: question@incub... (by Incubbus)
by izyani
MySQL error code : 1130
 
Hi all, I'm currently developing a C++ code to integrate with MySQL. I can compile my code. But when I run, I got this error: Running 'SELECT 'Hel...
[no replies]
by nanger
where is the return value of functions stored?
 
e.g std::getline(typeFile, line2) const char *p = line.c_str(); where is the value of line.c_str() stored? in the stack area or constant area? ...
[5 replies] Last: Yoinks! So I did! Why can't people get their own threads? nan... (by Duthomhas)
VC++ Custom Build Rules
 
Hi, I'm new here and a beginner in C++. But i'm presently working on a project that requires me to connect a java client (EJB on JBoss) to a C++ program acting...
[no replies]
by nanger
about STL main memory release
 
if I 'new' something,I need to 'delete' it when it becomes of no use in order to release main memory. when it comes to STL container, should I do the deleting...
[2 replies] Last: Good thing I understand nub. I think he means that if we do something ... (by closed account S6k9GNh0)
Passing function pointers to an objects constructor
 
OK, I want to make a pointer to a memberfunction of a class one of the arguments in a class's constructor. I do not know how however, here is as far as I have g...
[1 reply] : struct A{ return_type function(parameter_type); }; typedef re... (by helios)
by Deimos
Issue with headers
 
Hey everyone, I ran into a little problem while programming my little games. I have two classes, each including the other's header file, like this: //CGa...
[4 replies] Last: Obligatory link: http://cplusplus.com/forum/articles/10627/ See ... (by Disch)
virtual function = 0;
 
waht is this means? for example: class CFahrstil { public: virtual void fahren() = 0; }; waht is the advantage?
[2 replies] Last: Thanks! (by hjtuhh2009)
Thread passing execution?
 
Hey... got a short question about threading... when i want a thread to wait for a particular thing, and i made it waiting for a mutex that is locked...wil...
[2 replies] Last: y, got it http://msdn.microsoft.com/en-us/library/ms682105(VS.85).aspx... (by Incubbus)
by jraohe
Copy constructor and initialization of the base of a derived class
 
Hello, I don't understand why the copy constructor of the base doesn't get called in this example? Somebody can enlighten me on that. Thanks, J-R #...
[14 replies] Last: What is the point of this exercise?? (by guestgulkan)
by kdub
IV visibility issue with inherited inner classes
 
Hi, I'm receiving a compiler error from the following code. In OuterB::InnerB::foo, the compiler allows access to this->i but prohibits access to other.i th...
[4 replies] Last: Thanks for your response. I'm glad there is a language-level decision... (by kdub)
pointer vs reffrance
 
which one is better and why ?
[3 replies] Last: For memory management you should use pointers, you can't use reference... (by Bazzy)
how do i find the average amt by traversing the tree only once
 
SOLVED
[no replies]
C++ with mysql (1,2)
 
Dear all, I am trying to access a mysql DB by C++. I have found the following step to add mysql.h library. I am using Dev-c++, Windows Vista, and Appserv. So...
[20 replies] Last: I have an updated brother of DEVC++ called wxDev-C++ - but I think th... (by guestgulkan)
Template member function of NON template class
 
I am using visual studio VC6.0 as the compiler for below programme and getting a strange error written in the main function before the line causing the same...
[5 replies] Last: It is a problem in VC 6.0 Yes - he needs to update his compiler as s... (by guestgulkan)
lambda Expressions
 
So this is the next big thing for C++. I've been reading up on it today - that syntax is UGLY and personnaly I think it messes up the function call with all co...
[2 replies] Last: The Boost lambda syntax was ugly. The syntax in the C++ standard is q... (by PanGalactic)
how do I write into many files?
 
Hello everybody, I'm having problem writing into many files that Ive created.I have successfully read a file and store it as a vector. I have duplicated th...
[1 reply] : >>.>> Not sure what you did. In order to do this is simple. http://c... (by closed account S6k9GNh0)
alias to a pointer such that it the alias is read only
 
Hi, I am a new user. I was wondering if there is a way to have a alias to a pointer such that the alias is read only (I mean not the the variable it points t...
[13 replies] Last: Hi guestgulkan, Thank you so much for testing it on both the compil... (by muthuveerappan)
June 2009 Pages: 1... 45678... 13
  Archived months: [may2009] [jul2009]

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