|
hi friends,
i got one problem in borland c++5.2.i create number dialog boxes. one dialog box is main dialog box.main dialog box some times coming correct and some times width incresing,height incresing,both incresing.i debuged that dialog box and coorinates coming correct. others dialog box coming correct.i wrote i initial file to initial coordinates all dialog box.this is dialog box coming wrong some times.
any one solution pls give me reply to me
b.raju
-- modified at 9:13 Thursday 8th September, 2005
|
|
|
|
|
hai friends
i got one problem in borland c++. i am doing owl(MFC in VC++) programming.i create one tool. in that tool explore there. after including files, i trying to open files(.xls) and double click particular file one main dialog coming. main problem starts now.
i can fit that dialog box centre of our tool. some times coming act dialog box. sometimes coming width incresing,height increasing and some times both increasing.i debuged that dialog box number times. but dialog coordinates coming correct. i doesnot understand what i can do.
note: my system rarely coming that types errors.in my colleges coming continuely.
any one know solution pls give reply.
b.raju
-- modified at 7:04 Thursday 8th September, 2005
|
|
|
|
|
Hi Raju,
I have a few questions for you !!!!
1. Which operating system you are using?
2. Are you dealing with multilingual operating systems/system setting
Basically, dialog boxes uses Dialig units(DLU) for creating dialog. So your dialog size depends on the font you are using/char set you are using..
Please have a look at this angle..
" Action without vision is only passing time,
Vision without action is merely day dreaming,
But vision with action can change the world "
- Words from Nelson Mandela
Thanks & Regards,
Gopalakrishnan
|
|
|
|
|
Hi Gopalakrishna,
1. using windows xp operating system.
2. system setting.
Thanks & Regards
raju
b.raju
|
|
|
|
|
Hi friends,
I want the details about the type of linked list and its application.
And also I want to have the C++ Program for the,
* Singly Linked list
* Doubly Linked List
* Multi-List
* Linked list implementation for Polynomial
* Payroll Processing using Linked list Implementation.
If you know about the details for these things & also If you have the coding for these program means please send to me.
by,
yours friendly,
R.Vinothkumar
|
|
|
|
|
The STL provides several container classes like list, map,... and algorithms which cover at least a part of your needs.
MS
|
|
|
|
|
I have all the codes you have just mentioned in your qoestion. I can help you by sending you a mail to your id.Mail me requesting the questions and I'll send the codes. My id is ispy1785@gmail.com & spykd2004@yahoo.co.in
inder gujral
|
|
|
|
|
please solve this problem
7
4 5
1 2 3
2 8 9 1
find the maximum sum of the numbers?
condition is ?
we can traverse from root to leaf by
right/left/straight
in the above example ans is:7+5+3+9=24
arun
|
|
|
|
|
Welcome to the real world, kid. This is where you decide to do one of two things
1. Do your own homework, ask questions when you get stuck
2. Apply for a job at McDonalds and move into a trailer park.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Good day,
I have a variable vara, varB.
varA is allocated first. However when I allocate varB due to size, it reaches to the memory area allocated for varA. In this case how can I transfer data so that there will be no memory overlapping which cause access violation error.
Thanks
|
|
|
|
|
fjlv2005 wrote:
However when I allocate varB due to size, it reaches to the memory area allocated for varA
No way ! If you have allocated memory for varB, when you then allocate memory for variable varA, it will never take memory allocated for the first one. For me it's sound more that you are writing outside the borders of varB and thus writing perhaps in the memory allocated for varA.
Show us the code if you want more help
|
|
|
|
|
hello everyone,
i am an application programmer.I have rcently made one package that can calculate arithmetic,combinatronic trignometric functions upto any no. of decimal places. But the problem I am facing is that the execution time increases with the number of digits.This is bcoz I am using auxillary memory instead of RAM.
Can anybody suggest some ways to reduce time delays.
The application is completely made in C++.
|
|
|
|
|
Hi,
Is there a free downloadable C++ Class design tool.
I am not looking a complex tool like UML tools. Simple tool which can represent the class and the properties in form of a diagram..
Thanks,
Shiva P
|
|
|
|
|
how many forums did you expect to cross post like that ?!
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Hi,
I had posted this query in VC++ and C++/CLI forums only.
I don't see anything wrong in this posting, as my query is applicable in both forums and also, some member of either forum may not be member of the other forum.
IF you know of any such tool please let me know..
Thanks,
|
|
|
|
|
TssPrasad wrote:
IF you know of any such tool please let me know..
not freewares... sorry
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
Hello to all,
i am the beginner of c++ and i wrote some program in Borland C++ 5.0 abt the inheritance this is what i wrote
#include "iostream.h"
#include "conio.h"
class st_Det
{
protected:
int rol_no;
public:
st_Det(){}
st_Det(int a){rol_no=a;}
void put_No(void){ cout<<"\nRoll No :"<<rol_no<<endl;}
};
class st_mark_det:public="" st_det
{
="" protected:
="" float="" sub1,sub2;
="" public:
="" st_mark_det(){}
="" st_mark_det(float="" a,float="" b){sub1="a;sub2=b;}
" void="" put_mark(void){cout<<"\nmarks\n="" subject1="" "<<sub1<<"\nsubject2="" "<<sub2;
};
class="" st_sprt
{
="" score;
="" st_sprt(float="" a){score="a;}
" put_score(void){cout<<"\nscore="" in="" sports\n"<<score<<endl;}
};
class="" result:public="" st_mark_det,public="" total;
public:
="" result(int="" b,float="" c,float="" d):st_det(a),st_mark_det(b,c),st_sprt(d)
="" {total="0;}
" sum(){total="sub1+sub2+score;}
" display="" (void){="" put_no();put_mark();put_score();cout<<sum();}
};
int="" main()
{
="" cout<<"\nenter="" student="" roll="" no:\t";int="" a;cin="">>a;
cout<<"\nEnter Marks In tow subjects";float b,c;cin>>b>>c;
cout<<"\nEnter Score In Sports :\t";float d;cin>>d;
result s1(a,b,c,d);
result.display();
getch();
return 0;
}
but it is giving compile time error like this
st_Mark_Det must be a previously defined class or struct
Regards
cnu...
-- modified at 12:21 Wednesday 7th September, 2005
|
|
|
|
|
mcnu wrote:
#include "iostream.h"
This is not valid C++, you need to include iostream without the h, and hte include should be in < > instead of quotes.
mcnu wrote:
st_Mark_Det must be a previously defined class or struct
Where do you get the error ?
mcnu wrote:
class result:public st_Mark_Det,public st_Sprt
I don't think this syntax is correct. I think you need to lose 'public'.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Christian Graus wrote:
This is not valid C++, you need to include iostream without the h
I think in borland, this is valid (if I remember my classes correctly, because we were using borland ).
Christian Graus wrote:
and hte include should be in < > instead of quotes
The difference between "" and <> is the search locations for the file. With "", the compiler will first look in the current directory to find the file then in the include directories. With the <>, it will be the opposite.
Christian Graus wrote:
I don't think this syntax is correct. I think you need to lose 'public'.
The syntax is correct.
|
|
|
|
|
Regarding iostream.h, VC up to 2005 offers this header as well, but it's still not valid C++. It's finally removed in VC2005, and any half decent C++ programer should not have used it for at least 5 years now.
cedric moonen wrote:
The difference between "" and <> is the search locations for the file.
Yes, I know
cedric moonen wrote:
The syntax is correct.
OK, then it's definately not valid C++, no matter what some compiler hack allows
Christian Graus - Microsoft MVP - C++
-- modified at 18:06 Thursday 8th September, 2005
|
|
|
|
|
mcnu wrote:
result(int a,float b,float c,float d):st_Det(a),st_Mark_Det(b,c),st_Sprt(d)
This is not really a good design practice because normally, this must be the st_Mark_Det constructor that should call the st_Det constructor instead of result calling directly it. You can add a new parameter in st_Mark_Det constructor and use this new parameter to call the constructor of st_Det inside the constructor of st_Mark_Det.
I never tried what you did so I don't know if this could be the source of an error or not. But still, this is not really good looking.
Otherwise, your code looks good...
|
|
|
|
|
i feel your correct and i wrote what you said i added one new parameter in <B>st_Mark_Det<B> constructor to intialize the member varible in the <B>st_Det<B> and that not giving any errors.
and my atual error is what i said earlier
after compiling my program it gives compiler error like this <B> st_Mark_Det must be previously defined class or sturuct<B>
#include <iostream.h>
#include <conio.h>
class st_Det
{
protected:
int rol_no;
public:
//st_Det(){}
// st_Det(int a){rol_no=a;}
void put_No(void){ cout<<"\nRoll No :"<<rol_no<<endl;}
};
class st_Mark_Det:public st_Det
{
protected:
float sub1,sub2;
public:
// st_Mark_Det(){}
st_Mark_Det(float a,float b,float c){rol_no=a;sub1=a;sub2=b;}
void put_Mark(void){cout<<"\nMarks\n SUBJECT1 "<<sub1<<"\nSUBJECT2 "<<sub2;
};
class st_Sprt
{
protected:
float score;
public:
st_Sprt(float a){score=a;}
void put_Score(void){cout<<"\nScore In Sports\n"<<score<<endl;}
};
class result:public st_Mark_Det,public st_Sprt
{
float total;
public:
result(int a,float b,float c,float d):st_Mark_Det(a,b,c),st_Sprt(d)
{total=0;}
float sum(){total=sub1+sub2+score;}
void display (void){ put_No();put_Mark();put_Score();cout<<sum();}
};
int main()
{
cout<<"\nEnter Student Roll NO:\t";int a;cin>>a;
cout<<"\nEnter Marks In tow subjects";float b,c;
cin>>b>>c;
cout<<"\nEnter Score In Sports :\t";float d;cin>>d;
result s1(a,b,c,d);
result.display();
getch();
return 0;
}
Regards
cnu...
|
|
|
|
|
At which line is the error displayed ? (Don't post the line number but the complete line). Post also the exact error message.
|
|
|
|
|
Geeez, pretty difficult to find this error !
The error is at this line:
class st_Mark_Det:public st_Det<br />
{<br />
protected:<br />
float sub1,sub2;<br />
public:<br />
st_Mark_Det(float a,float b,float c){rol_no=a;sub1=a;sub2=b;}<br />
void put_Mark(void){cout<<"\nMarks\n SUBJECT1 "<<sub1<<"\nSUBJECT2 "<<sub2;<br />
};<br />
You forgot the '}':
void put_Mark(void){cout<<"\nMarks\n SUBJECT1 "<<sub1<<"\nSUBJECT2 "<<sub2; }
That's one reason why putting all the code in one single header file is so bad: it's almost impossible to spot the corresponding '}'. Also, you should really use a better way of 'formating' your text. The purpose here is not to have the smallest number of lines but to have a code that is readable
|
|
|
|
|
It is working now,
THANK YOU VERY MUCH
AND THANKS FOR YOUR SUGGESTION I AM REALLY CONSIDER THAT
Live life happily until your last second
-- modified at 8:44 Thursday 8th September, 2005
|
|
|
|