General C++ Programming - March 2009 (Page 10)

operator problem
 
char* data and size are public members of class Base. "delete data;" below causes "Debug Assertion Failed". What is the problem here? Base& Base::oper...
[4 replies] Last: Eye of an eagle. Thanks! (by n4nature)
initialization list
 
class Base { public: int temp1; int temp2; Base(); Base(const Base&):temp2(10), temp1(20) {}; }; main() { Base b1; Base b2 = b1; } ...
[4 replies] Last: Thanks (by n4nature)
by tition
Debugging deeply nested structures
 
How do you do it? So far, I have been using the following approach: class Object {public: void ComputeDebugString();// puts the debug strings of al...
[1 reply] : overload the operator<< for your class type so that you can convert it... (by kempofighter)
by olove5
how I can do system pausa
 
AFTER I RUNED THE PROGRAM I WANT TO SEE THE CONSOLE TO CONTINUE WITH THE EXECUTIONS 'ProLinkExa.exe': Loaded 'C:\WINDOWS\system32\ntdll.dll', No symb...
[1 reply] : http://www.cplusplus.com/forum/articles/7312/ (by kempofighter)
Grabing Tempature
 
Hello! I have just signed up for this form and saying hi to everyone. id10t <id ten t> is an old joke spelling out idiot, lol. So if you have an ID10T ERROR...
[no replies]
makefile
 
I want to have debugging option. Even while linking I have given -g option but I am not getting line numbers. What should I do? Is it given compilation time of ...
[3 replies] Last: What I meant was. The way I have written the makefile right now is tha... (by rachitagrawal)
A Query on pointers and inheritance
 
Hi guys, I am doing a project for my mid term and I am held up with this doubt. I might have misunderstood something all together or it might be a small mist...
[3 replies] Last: Actually TEnt, Male and Female classes are derived from the base class... (by Sundar0206)
by xcr
File i/o and databasing
 
I am trying to write a databasing program to store information about people, such as DOB, address, etc. What I am trying to do is write all of these entries in...
[2 replies] Last: Can you tell me how to copy all of the file's contents to the map, or ... (by xcr)
Any idea with regard to c++ program?
 
#include <iostream.h> #include<conio.h> #include<string.h> ================> headers int ctr, sw=0, op, res; char job , mm ; ==============> variab...
[1 reply] : First, please always post code inside [ code][ /code] blocks (press ... (by jdd)
Need Airplane Reservation
 
Output is 1.First Class Reservation 2.Economy Class Reservation 3.Cancel First Class Reservation 4.Cancel Economy Class Reservation 5.Exit ...
[no replies]
by dooper
Minimum currency calculator
 
This Programs calculate minimum currency in Euros #include <iostream.h> using namespace std; int main() { int amount; char resp ; cout << "Enter amo...
[2 replies] Last: You should also strongly consider using iostream (no .h extension) ins... (by jdd)
displaying a mixed fraction in a fraction class
 
Hi I am having a little difficulty in creating a function called display2() that will display the result of an addition, subtraction, multiply and division f...
[1 reply] : 5/3 = 1 2/3. How do you perform this calculation in your head? Wri... (by jsmith)
tips for Fifo problem using c++...
 
#include<iostream.h> #include<stdlib.h> //declaration for array plsss help.... //badly needed
[1 reply] : <element-type> <array-name>[ <number-of-elements> ]; replace the <s... (by jsmith)
Convert a long to valid date time
 
i m getting a long value from server and i want to convert the long to a valid date time can any one guide me how to convert a long to date time.
[1 reply] : man ctime (by jsmith)
by Disch
Templated function pointer problem
 
I've been using VS for a while, but I just switched to GCC and am trying to sort of iron out a few wrinkles in it. This one has me stumped: class A { ...
[1 reply] : change line 19 to typename Test<T>::funcptr_t ptr; (by jsmith)
Random generation problem
 
Hi all. Here is the problem I am trying to solve. I have one grid with dimension 10 by 10 (so it has 100 cells). I also have got few images and each image ha...
[15 replies] Last: @SouravDutta That is an interesting idea. If I understand correctly,... (by jdd)
GUI in c++
 
Hello, I have study C in the past and have just started to study C++ over the last few weeks. I have to do a part in a project which includes a window for u...
[3 replies] Last: vc++ comes with Visual studio. visual studio is an IDE for C++, Visua... (by writetonsharma)
by cybo
pthreads and a class function
 
i have just started learning pthreads in c++. i need to create a thread which will run a class function. but for some reason i'm getting an error. here is wh...
[8 replies] Last: rachit: the difference is between static and non static member. I t... (by writetonsharma)
ifstream binary file reading
 
Hi! Im new to cpp, and i have problem with reading binary file My code is: std::ifstream ifs(L"c:\\james.rar"); char buff ; ifs.seekg (0, std::ios::b...
[5 replies] Last: strange..!! (by writetonsharma)
webcam capture problem using opencv and vc++6.0
 
My code is to display a webcam. I meet problem when it runs. I am working with VC 6.0 and using opencv , and I add a button command function ,codes as follow: ...
[no replies]
March 2009 Pages: 1... 89101112... 21
  Archived months: [feb2009] [apr2009]

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