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

How to delete an Object ?
 
Hi Dear, I want to reinitialize (delete previous object and its data) on each iteration. I am not using new operator to create class objects and also my des...
[6 replies] Last: Then they're getting the memory from their previous instance. You need... (by LB)
sourec of basic c programmming
 
hiiiiiiiiiii i m new to c programming.Can anyone please suggest some good sources of learning basic c++ tuorials.thank you in advance
[2 replies] Last: Here are some more... http://www.cplusplus.com/forum/beginner/ http:... (by AlphaBravo)
I am trying to track down errors
 
This inheritance problem compiles and runs, however, the output is not right and I am having a hard time tracking down the problem. Can anyone point in the righ...
[10 replies] Last: salam hallux today I go through your program, actually which you... (by BushraSQU)
AI making (1,2)
 
Since everyone hated the idea of the last person who talked about this subject i propose this: do better you all thoroughly destroyed his arguements and that...
[35 replies] Last: For anyone who hasn't already read this.. It's a good read. http:/... (by closed account 3TkL1hU5)
by torp09
stock
 
// Date: October 5, 2010 // Section: CS 1044: #11348 // Compiler: Visual C++ 2008 Express Edition // Platform: Windows Vista // // #include<fstream> ...
[3 replies] Last: Don't loop on eof(), because that will not be false until after you ha... (by Zhuge)
Polymorphism/virtual function not working here...?
 
I have a class "Product" which is inherited by two sub-classes, "Customisable" and "Perishable". All classes are concrete and can be instantiated. Product has ...
[5 replies] Last: Disch: it makes perfect sense now. Thanks so much for the detailed exp... (by Swiftslide)
What is wrong with the program?
 
Hi, wrote a program that reads matrices m*n. It reads numbers no bigger than 3,. The program runs but there is something wrong with it: In doubleaverageDigits(a...
[no replies]
by srilu
lists in vector
 
Hi, I have a requirement like this. I need to have an array of pointers to linked lists. If for ex, I give some number as input to the function, it should che...
[no replies]
declaring objects
 
how do u declare objects
[1 reply] : How much are you offering for someone to do this? (by Zhuge)
How to Get Rid Main App leaving DLL?
 
How does one get rid of (make exit) the Main App that loaded the DLL and created a hook? I am using VC++ 2010, under Windows XP SP3. The code is largely in W...
[7 replies] Last: IIRC, a global system hook does not need to have your program running ... (by Duthomhas)
Creating a Dynamic Library/Framework
 
Good Evening, Recently while using SQLite I noticed that they supplied an amalgamation of their entire source code in just two files. By doing so they gained...
[1 reply] : You only need to do this with compilers and linkers that do not provid... (by PanGalactic)
Case statements
 
As part of my AS level in Computing, I am currently learning about case statements. Been given some problems regarding these. One of the questions is about mat...
[2 replies] Last: Ahh didn't realise they can only take one value! I think our teacher w... (by closed account SEbf92yv)
Designing Classes
 
I keep getting compiler errors. Could anyone help please? Thanks This is the error message: F:\DPR226\Homework\Student\main.cpp In function `int main(int,...
[3 replies] Last: Thanks Zhuge and Galik, I changed the code according to your suggestio... (by yingkang)
Question
 
Hi, please can any one send me c/c++ & Data Structure interview questions. i have one to one final interview on next Monday.
[3 replies] Last: sorry broth I do not have idea, I hope the members help you (by BushraSQU)
operator overloading
 
in order to overload << or >> operator, why it is good to use non-member functions rather than member functions of the class?
[3 replies] Last: +1 to coder777 (by Disch)
multi vs single dimensional array
 
Hi all, Has anyone compared efficiency of accessing fixed size multidimensional array vs single dimension array? Which one is faster and requires less cpu? ...
[2 replies] Last: The efficiency should largely be the same, so long as width is a compi... (by jsmith)
How to get "std:cin" to block
 
Hello, I just wrote a small test program to prompt user to enter a number (int) with "std::cin", but it did not block when I run the program, it seemed like ...
[2 replies] Last: You need to post the test program. please use tags: http://www.... (by Galik)
Parent fields not accessible from initializer list
 
I'm trying to use a constructor's initializer list to initialize a public field in the superclass, like this: class Parent { public: int foo; }; ...
[5 replies] Last: You say the reason is to protect unauthorized dinking, but a subclass ... (by Trevor Harmon)
Declared objects for a class
 
Hi. I create a class that represents huge numbers or very small ones. How can i create a constant object that represents something special. For example I wan...
[3 replies] Last: Whatever, it was an example If you can create a non-constant object (... (by Bazzy)
inconsistent behavior with istream::ignore
 
What does the following program print for the value of ch if the input is: 45 kitten what about if the input is: 45 mitten #include <iostream> using na...
[6 replies] Last: it does seem like that. I would like to see the implementation but I ... (by keepjumpin)
October 2010 Pages: 1... 1112131415... 23
  Archived months: [sep2010] [nov2010]

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