49,761 Topics

Member Avatar for
Member Avatar for chelo77

I am doing a small assignement that has one class with two private members.....numerator and denominator. The question asks to make three overloaded constructors, some have arguements while one does not example .....fraction() now the deconstructor is basically has to print out the two private members now this works great …

Member Avatar for iamthwee
0
782
Member Avatar for Tester99

Hello, Could someone help me, I don't know how to build project with Visual C++ toolkit 2003, that project has made with [I]Visual Studio .NET 2003 or is this generally possible.....[/I] Any suggestions?

Member Avatar for WolfPack
0
230
Member Avatar for neno14me

i have got this OOP project of implementing minesweeper using classes.Can anybody just hint me what classes i have to use and what would be their relationship like association,containment,weak containment and strong like that.anybody plz.If i failed to do so i would be getting an f!!!!!plz!!!!!!!!!!!!!!

Member Avatar for iamthwee
0
534
Member Avatar for Excal1502

I am unsure why I am reciveing a segmentation fault: INPUT: ./a.out Enter the output file name (maximum of 15 characters): output.doc Enter the number of names to sort in lexicographical order: 3 Enter a name: John Smith Enter a name: Mel Gibson Enter a name: Mark Anthony Segmentation fault …

Member Avatar for Salem
0
153
Member Avatar for Roujin

HI all could anyone please tell me where i can find some public domain source codes for Visual C++ 1.52, I am trying to teach myself programming as i dont have the patience for classrooms and i thought that some sample codes would give me some practice. I have already …

Member Avatar for WolfPack
0
254
Member Avatar for worms707

I have the following code This is the Point header file [code] #ifndef POINT_H #define POINT_H #include<string> using namespace std; //Class Point represents points in the Cartesian coordinate class Point{ protected: double xCoord, yCoord; //coordinates of the point string name; //name of the point public: Point(); //default constructor Point(double, double, …

Member Avatar for Bench
0
1K
Member Avatar for skeet123

I have an assignment dealing with algorithms and Big O notation. I am a little confusded about this notation stuff. Here are a few of the questions on the assignment: What is the O-notation for the following code? [code]cin >> N; for (int count = 1; count <= N; count++) …

Member Avatar for Rashakil Fol
0
222
Member Avatar for chelo77

I have problems with this small class program, have two classes...registration and course. I am writing a small function for registration adds the credits. I made an array called ptr of type course in the registration class. Now when i try to access credit a private member in the class …

Member Avatar for dude543
0
128
Member Avatar for lsu420luv

I am trying to read in information from an external file using ifstream. I use fin >> to input the data usually. Now I have to input a full name. Can anyone tell me what I use to do this? do I use a string type variable and then just …

Member Avatar for lsu420luv
0
265
Member Avatar for pjoseph24

I am looking to be able to pull up files from ms access using C++. this is for a college senior project. We currently have a rfid reader that will read a tag and display its unique tag number using C++ we now want to link each tag to a …

Member Avatar for Ancient Dragon
0
104
Member Avatar for bsdpowa

I have a header and cpp file.I'm trying to learn OOP so I did a small program that handles classes.In the header I have declared the class and in the main file I'm implementing the methods. m_prvi = first number m_drugi = second number m_rezultat = result So I call …

Member Avatar for bsdpowa
0
141
Member Avatar for Joncamp

Has anybody use the jwSMTP c++ email routines, or do you know of a better freeware email c++ app?

0
74
Member Avatar for remedius

Could you help me please: I'm writing printer driver, based on standart unidrv and i'd like to use another library in my driver. But while compiling the driver I receive following errors: d:\WINDDK\2600.1106\inc\crt\istream(564) : error C2220: warning treated as error - no object file generated d:\WINDDK\2600.1106\inc\crt\istream(564) : warning C4530: C++ …

Member Avatar for remedius
0
343
Member Avatar for Asif_NSU

I am kind of confused about how DestroyWindow() works. According to the help files this function sends a WM_DESTROY message to the window it has just removed from the screen. In my [inlinecode]WindowProc[/inlinecode] I have something like the following: [CODE] case WM_CLOSE: { DestroyWindow(hwnd); return 0; } case WM_DESTROY: { …

Member Avatar for WolfPack
1
711
Member Avatar for amnezia

Iam confuse with cubic equation alghoritma and code. x^3 + ax^2 + bx + c =0 Please help me

Member Avatar for SpS
0
1K
Member Avatar for thare

can you tell me ! What's the difference between MS-Dos program and Windows program ? Is an application in C++ MS-Dos-based application ? Thanks !

Member Avatar for thare
0
125
Member Avatar for ghadahelal

hallo all, i'm a new member. i need help in my program i want 2 know if there is a datatype called time. my program will deal with time as below 11:33:50,965 it will read 2 absolute times for 2 actions and then return the differnce. how can i do …

Member Avatar for Ancient Dragon
0
168
Member Avatar for lsu420luv

I have an assignment which will pull data from Trans.data and Lawn.data. Can I not use fin to open both the files at once or do i need to setup another stream. Here is my code I am getting the Error message I have set if Trans.data fails to open. …

Member Avatar for lsu420luv
0
162
Member Avatar for iamthwee

Hullo, Does anyone have any tutorials about using the graphics library in turbo c. I need this fast. ThanQ

Member Avatar for Ene Uran
0
163
Member Avatar for HelpMeImLost

Hi there, I was wondering if anyone can help me out here...This is what I have so far: [code]#include<iostream.h> #include<conio.h> class Employee { private: int idNum; char name[20]; double rate; public: Employee(const int id); //The Constructor with Arguments Employee();//The Default Constructor void displayValues(); }; Employee::Employee(const int id) { idNum = …

Member Avatar for HelpMeImLost
0
140
Member Avatar for puppy

Hi, I'm trying to write a class that uses a vector, but I can't get the right syntax in the Staff constructor. Can anyone help? public: Staff(); Staff (???????????); private: vector<Employee> members;

Member Avatar for Bench
0
150
Member Avatar for poorstudent

Hi everyone, I am a year 1 student who is having a course of data strcutures. My assignment 's deadlin is by tomorrow. the assignment is avl tree. I have completed the followings. [code]struct AVLnode_s { char element; int height; struct AVLnode *left; struct AVLnode *right; }; typedef struct AVLnode_s …

Member Avatar for Salem
0
127
Member Avatar for AhmedHan

My code :[CODE]int _tmain(int argc, _TCHAR* argv[]) { HINTERNET hInternet; BOOL bResult; hInternet = InternetOpen( (LPCTSTR) "NoAgent", (DWORD) INTERNET_OPEN_TYPE_DIRECT, (LPCTSTR) NULL, (LPCTSTR) NULL, (DWORD) INTERNET_FLAG_ASYNC); if (hInternet == NULL) { DebugTest("hInternet == NULL"); } DebugTest("Internet handle created!"); bResult = InternetCloseHandle((HINTERNET) hInternet); if (bResult == NULL) { DebugTest("InternetCloseHandle((HINTERNET) hInternet) == NULL"); …

Member Avatar for Salem
0
139
Member Avatar for tuannie

Hey everyone, I' m currently having trouble getting the following code to work. What I'm trying to do is getting my program to do read from a text file which has the following information: 234323 c 343212 d 323432 a 763634 b The corresponding information shown above will correspond as …

Member Avatar for Ancient Dragon
0
156
Member Avatar for winbatch

So I'm trying to learn how to use function pointers (ie to pass the address of a function to another function to execute it - like a call back). I have it working when I use it as follows: Classes.h: [code] #include <iostream> using namespace std; class Class1 { public: …

Member Avatar for dubeyprateek
1
732
Member Avatar for lulug76

Hi, I am working on a project that I had to get 2 number from a user display them in 10base. Then convert them into 2 base and display them in multiple of 8. I did this part. The next part I am suppose to do is add and subtract …

Member Avatar for dubeyprateek
0
414
Member Avatar for crizzio

so i have this tic tac toe assignment in c++ and i need some help doing the moves part for both the computer and the player....i already got the board down with arrays and the specs for the functions needed are listed below...some help would be greatly appricaited and i …

Member Avatar for Bench
0
109
Member Avatar for geez85

hey i jst need a lil help with dis... [code]void main() { for(int polygon = 0;polygon < 3;polygon++) { int i, j; const int max =5; int end; int sort; int ymin = 21; int start; int ypos; int vertices=0; if(polygon == 0) { float x0[] = {20, 40, 90, …

Member Avatar for geez85
0
108
Member Avatar for NarenderKumarP

Hi All, Following code gives me an error when I use text field in CSV file instead of float or integer fields. `matrix_points[cnt][4] = atoi(line);` May be the problem with above line. Please see the below code char matrix_points[6][8]; std::ifstream input_file("C:/NDA/NissanNewApplication/Dev/CommonErrorManager/Src/ErrorMessageList.csv"); int cnt(0); printf("initial valie of cnt = %d\n",cnt); char …

Member Avatar for NarenderKumarP
0
377
Member Avatar for tiffosi

Hi all, I am trying to share data between two simultaneously running programs. I am writing the output of one program to a file named xpos.out and reading the data in it from an other program which is running simultaneously. The value in xpos.out changes each time. So when i …

Member Avatar for WolfPack
0
220

The End.