473,544 Members | 1,791 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

C / C++ Forum

C / C++ programming language - Get answers to questions about compilers, visual C++, templates, namespaces, classes, data structures, OOP (object-oriented programming), inheritance, data types, exceptions, Standard Template Library (STL) and the C Standard Library.
0
234
thread by: Neil Zanella | last post Jul 22 '05 by: Neil Zanella
Hello, AFAIK the only way to initialize a reference variable defined inside a class is to initialize it in an initializer list. However, when there are multiple constructors, this means that the initializer lists have to be cut and pasted from one constructor to another. This does not seem to lend itself particularly well to...
0
265
thread by: Phlip | last post Jul 22 '05 by: Phlip
My prof set me this six months ago, but I couldn't be arsed. It's due in in ten minutes, so I expect a reply real sharpish via E-Mail as I never read the newsgroups. The UK National Lottery consists of a random drawing of 6 unique numbers from a possible 64. Using the results from the twice-weekly draws over the last year, Neural Networks,...
0
822
thread by: Milk | last post Jul 22 '05 by: Milk
Hi, all i have to input one HEX file into my C++ program and change it in to binary in my C++ program, so what commond i should use nei? ~ Let us linux ~ -----= Posted via Newsfeeds.Com, Uncensored Usenet News =----- http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
0
278
thread by: Eric | last post Jul 22 '05 by: Eric
HELLO ! I'm looking for a class manipulating big unsigned intergers. I have to calculate, modulo and multuplications. Google hasn't been my friend for this question... Regards, Eric VIALLE
0
271
thread by: Kevin Goodsell | last post Jul 22 '05 by: Kevin Goodsell
I was unable to locate the answer to this question in the (draft) Standard or in The C++ Standard Library (Josuttis). What should occur when one attempts to increase the size of a container beyond its max_size()? The closest thing I found to an answer was that the reserve() member of std::basic_string and std::vector and the resize() member...
0
250
thread by: Pierre Phaneuf | last post Jul 22 '05 by: Pierre Phaneuf
At my workplace, we are in the process of migrating to a component system similar to COM (but not COM itself, as we have some space and portability requirements) that uses refcounting for resource management. My problem is that I would like to find a way of finding out attempts to use "delete obj" when obj is a pointer to IUnknown or a...
0
251
thread by: Mark A. Gibbs | last post Jul 22 '05 by: Mark A. Gibbs
I'm having yet another headache with making a standard allocator. What behaviour should be expected from the assigment operator? When would it be called? Why is it there at all, when you can't change allocators in containers? To give a little more depth, I have a class like this: class HeapAllocator { // All requirements of the...
0
291
thread by: Dennis | last post Jul 22 '05 by: Dennis
Hi I have a little problem as stated above (haven't found any solution on the www). I have a list of objects (particles) where I have a member of a template vector (array1d from TNT). I initialise these members in the constructor, but when I write different vector values to different particles the values becomes the same. I have found...
0
357
thread by: Peter Nolan | last post Jul 22 '05 by: Peter Nolan
Hi All, I have written some software that performs ETL processing to load data warehouses. Each program accepts a set of parameters and returns 0 or 1 to the win/unix shell to indicate success or failure. Currently it is run as a set of commands that calls each program and then returns the return code and stops if the program has failed. ...
0
318
thread by: sumit | last post Jul 22 '05 by: sumit
i am trying to restrict deletion on local hard drives i have expertise in c, c++, and delphi if the solution can be found on any of the above languages plz inform me.
0
1,086
thread by: Allen | last post Jul 22 '05 by: Allen
Hi all, I have a tree object I'm writing that searches itself using a recursive search. Thing is, I'm wanting to also include the ability to simply transfer execution if I want ("one-way recursion"). _One problem_ with doing it this way is stack overflow. What I'm thinking of doing is using "naked" function calls for the recursive search...
0
272
thread by: pctv06 | last post Jul 22 '05 by: pctv06
0
217
thread by: pctv06 | last post Jul 22 '05 by: pctv06
0
249
thread by: j | last post Jul 22 '05 by: j
0
272
thread by: pctv06 | last post Jul 22 '05 by: pctv06
0
237
thread by: pctv06 | last post Jul 22 '05 by: pctv06
0
267
thread by: j | last post Jul 22 '05 by: j
0
766
thread by: pctv06 | last post Jul 22 '05 by: pctv06
0
262
thread by: source | last post Jul 22 '05 by: source
function that would: return the 5th element from the end in a singly linked list of integers, in one pass, and then provide a set of test cases against that function. And please dont think this is my homework. Can anybody simple tell me how this can be done. I am preparing for an interview and wanted to know how to go about implementing...
0
312
thread by: Steven T. Hatton | last post Jul 22 '05 by: Steven T. Hatton
This may seem like such a simple question, I should be embarrassed to ask it. The FAQ says an object is "A region of storage with associated semantics." OK, what exactly is meant by "associated semantics"? What, if any, associated semantics are shared by all objects? That part seems to go beyond the FAQ. Does anybody know of a resource...
0
311
thread by: ikl | last post Jul 22 '05 by: ikl
Given three classes: class A { }; class B { };
0
343
thread by: Alex Vinokur | last post Jul 22 '05 by: Alex Vinokur
=========== Windows 2000 Intel C++ 8.0 =========== ------ foo.cpp ------ int main () { for (int i = 0; i < 10; i++); for (int i = 0; i < 10; i++);
0
308
thread by: TheFerryman | last post Jul 22 '05 by: TheFerryman
Why doesn't compile? I would have thought the dtor of Base would call Derived::f() struct Base { virtual void f() = 0; virtual ~Base(){f();} };
0
929
thread by: christopher diggins | last post Jul 22 '05 by: christopher diggins
I have written and posted a C++ language extension (HeronFront) which demonstrates how interfaces can significantly outperform designs that use multiple inheritance of abstract base classes. For example the NaiveInt class in the following example in C++ : http://www.heron-language.com/abc-example.html when rewritten using interfaces in...
0
268
thread by: Jörg Striegnitz | last post Jul 22 '05 by: Jörg Striegnitz
We apologize if you have received this CfP multiple times. -------------------------------------------------------------------- SECOND CALL FOR CONTRIBUTIONS AND PARTICIPATION Workshop on MULTIPARADIGM PROGRAMMING WITH OO LANGUAGES (MPOOL 2004) (June 14 or 15, TBD) at the EUROPEAN CONFERENCE ON OBJECT-ORIENTED PROGRAMMING (ECOOP 2004)

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.