No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
23 Posted Topics
Re: Both of them are free c++ compilers. I do not know if one of them has technical advantage over the other one. If I were you I would use the one which has more documentation on the internet. | |
Hello all, I want to write a qui program which opens and reads a text file when pressed Open File button. So far, when I click the button Open File Dialog works and I can choose the file to read but I do not know how to read it line … | |
Hello All, Currently I am working on an GUI using a tutorial video. In video when tutor types n = System::Convert:: , after :: a bunch of options appear like n = System::Convert::ToInt32. However, when I type same phrase n = System::Convert:: after :: no option appears. How can I … | |
Hello All, I have been using c++ console applications for a while. I need to develop some graphical user interfaces. Even though there are many ways of developing a gui, I am not sure what is the most easy to learn and use. There is a library called Q4 library, … | |
Re: Here is another factorial program. Almost same with others [CODE]#include <iostream> using namespace std; int main() { long double n; long double result = 1; int k; cout << "please enter a non-negative number"<< endl; cin>> n; if (n<0) { cout<<"the number is less then 0."<< endl; cout<<"please enter a … | |
Hi All, When I try to compile the code below, I get error message " error: ‘MAX_IMG_HEIGHT’ undeclared here (not in a function)". I tried to declare them in different ways but it does not work. Does anyone have idea ? I appreciate for helps, The code is: [CODE]/* ImagExper.h … | |
Hi All, I got a program which was written in c++ for unix at 1999. There are almost a hundred of source code files and makefile is available also. I do not have access to unix because of this, I need to get it worked in windows. My question is … | |
Dear All, First of all, I do not know if this is the correct place or not but I am having problems about playing video by using opencv. I am trying to play an .avi video. I did exactly the same thing as tutorial but the code below does not … | |
Hi all, I am having problem about file operations. There are a few numbers in my txt file. I want the program to calculate average of these numbers in the txt file. The code I have written is as below. Number of numbers in the file is 5. When I … | |
Hi all, I am trying to read double numbers from a txt file and calculate average and standard deviation. It builds successfully but gives an error when it is run. The error I see on the screen is -1.#IND. Do you have any idea what it is and how can … | |
Hi all, I want the program below to calculate the doctor fee. I am doing it to learn class and inheritance concept. "[B]patient1.output(cout);[/B]" works correctly it gets [B]doctor_hour_fee[/B] from [B]doct1[/B] object. The problem is at [B]patient2.output(cout);[/B]. When I enter patient information it asks me to enter all member variables of … | |
Hi everyone, I have a problem about inheritance and I can not solve it since Monday. I have two classes [B](Student_Patient and Emp_Patient) [/B]inherited from [B]Patient[/B] class. [B]Patient [/B]class and [B]Doctor [/B]classes are inherited from [B]Person [/B]class. The [B]Doctor[/B] class has a member function[B]double get_fee_of_doc() const;[/B] which returns a double … | |
Hi all, I have a simple question. I am working on it for a long time and I feel that I am almost done except for a small problem. As seen below there is a member function of patient class. It takes variables name and visit_duration. In addition to these … | |
When I compile the code below it generates more than 30 syntax errors. It does not make sense. The problem is probably somewhere in [CODE]Patient(string name_of_patient, int age_of_patient, string address_of_pat, double visit_duration_ofp, string ssn_of_patient, Doctor &doc);[/CODE] but I could not figure out the problem. I know it is not convenient … | |
Hi all, I have two classes [B]C[/B] and [B]D[/B] these classes are inherited from [B]B[/B] class. My question is how can I use a member function of [B]C[/B] at[B] D[/B] and at [B]D[/B]'s child classes? I tried to do it with a regular function but it does not work in … | |
Hi All, I have created a class [B]person[/B] and derived [B]patient[/B] and [B]doctor[/B] classes from [B]person[/B]. Also I derived [B]student_patient[/B] and [B]emp_patient[/B] classes from [B]patient [/B]class. I want to make a small calculation at [B]patient[/B], [B]student_patient[/B] and [B]emp_patient[/B] classes by using a function from [B]doctor [/B]class wihch is [B]get_fee_of_doc[/B]. I … | |
Hello all, I have a [B]base class[/B] which is called [B]person[/B]. I derived a class from[B] person[/B] which is called [B]patient[/B]. My question is can I derive two more classes ([B]patient_student and patient employee[/B]) from [B]derived class patient[/B] or should I derive them from [B]person[/B]? If I can derive classes … | |
Hello All, I am a new user of c++. Until now I just worked on basic console applications. I have to develop a program which will be able read two images and open them in separate windows and do some geometric calculations background. Also this program should allow user to … | |
Hi all, I am studying c++ and there is an expression that i did not understand can someone please explain it to me ? It is declaration of a public class method. The expression is [B]bool less_than(const Date &d) const [/B]. name of the class is Date. Thank you, | |
Hi everyone, I am trying to sort array by a function. My code is shown below. I get error message "runtime check failure 2 stack around the variable "arrayim"". Can someone tell me what does it mean and how to solve this problem? I appreciate for helps [ICODE]#include <iostream> using … | |
Hello All, I am trying to generate an array which has random integers and pass this array to a function to be able to print random integers. The code I have written is as below. Can you help me about that? Thanks [ICODE]#include <iostream> #include <ctime> using namespace std; void … | |
Hello again, I am trying to generate an array which has random integers. Then I have to sort it and perform binary search. Below is my code so far. It gives error message (runtime check failure 2 stack around the variable num_arry was corrupted). When I define num_arry[10] instead of … | |
Hi all, I am trying to write a simple program but I am having an error message that I am working on it for three days. The aim of program is to convert entered value depending on the clicked radio buttons. Please can someone help me about it ? Thanks, … |
The End.