51,593 Topics

Member Avatar for
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
225
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
131
Member Avatar for YoTaMiX

Hello to you all , Major problem in C , Files included Summary of problem : Program will not copy the feild "name" from struct "univ->std.name" properly. the rest of data is presented fairly. do not touch function "output_university" . Thank you , yotam , Israel .

Member Avatar for YoTaMiX
0
232
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
268
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
105
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
144
Member Avatar for Joncamp

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

0
75
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
346
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
744
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
129
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
174
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
166
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
173
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
142
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
154
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
131
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
141
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
158
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
736
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
418
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
112
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
110
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
388
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
222
Member Avatar for Jon Campbell

Does anyone know where I can get technical information about developing HTTP applications in C++. I'm not talking about CGI, I mean the classes or functions that allow you to directly communicate on the web via HTTP without a web server.

Member Avatar for eCharisma
0
77
Member Avatar for jlouang

I don't know if I read the book right but my array is not working on my months .My instructions is this assignment uses an array of strings: write a C program that asks the user for the month, day, and year read in the month, day and year (as …

Member Avatar for jlouang
0
353
Member Avatar for mwo0002

Thanks to some people who has already given me some pointers and insights, I wrote down on paper the layout before I started putting them into code, which I eventuall did and they're in code now. I tried to run it and gave me a list of lots of errors. …

Member Avatar for Lerner
0
124
Member Avatar for bg123

I'm trying to do a program that takes two vectors and computes the alternating sum, appends the vectors, checks whether two vectors have the same elements in some order, ignoring multiplicities, and removes duplicates. Any help would be appreciated. [CODE] #include <iostream> #include <vector> using namespace std; /* Functions on …

Member Avatar for Bench
0
178
Member Avatar for mcook228

I'm working on this program that implements the Horspool string matching algorithm. The program reads in a text file and searches for the pattern text provided in main.cpp. The StringMatcher class is supposed to return the index of the first letter of the pattern in the text and count the …

Member Avatar for iamthwee
0
2K
Member Avatar for blademaster

Does anyone have any idea how I would code this I'm having some trouble coding it, I would appreciate it very much if you could provide a code in C++. Been trying ot figure out this for couple days but keep getting syntax errors for some reason. 1.) let the …

Member Avatar for blademaster
0
63
Member Avatar for yaoyaolin

I'm in an entry level c++ class. My professor wants us to write a array project that keep a frequency count of each of the italic alphas, also keep a frequency count of other characters entered (numbers and symbols). The project output a frequency count of each italic alpha, and …

Member Avatar for Lerner
0
92
Member Avatar for kaun

I download turbo c++,but I can`t use ther a SHIFT key :cry: ( I can`t do // or #)it just ignore shift. :sad:

Member Avatar for Narue
0
715
Member Avatar for Dj Enjoi

ok, i kinda feel like an idiot asking this, but here it goes simple setup for example purposes.: [B]#include<iostream> #include<stdio.h> using namespace std; int main() { system("cd\") return 0; }[/B] ok, as you've prolly already noticed, the CD\ will return an error saying that there is an invalid terminator because …

Member Avatar for iamthwee
0
108
Member Avatar for jto

i have a *.dat file which is i am sending as attachment can any body help to convert this file in to text file or any other database format such as access /oracle etc

Member Avatar for Ancient Dragon
0
167
Member Avatar for asnairwin

to start with c++, I got to know what is required to be added for starting c++ builder in a system where visual studio is installed

Member Avatar for Narue
0
70
Member Avatar for sansista

I'm developing an application in C++ that extracts each sentence dispalyed in a browser, translates it and then displays the translation in the webpage. I am using IHTMLDocument2 to do this. When the translated text is complete I write it to the browser using IHTMLDocument2::write(), and I can see the …

0
50
Member Avatar for dp601

I have a question that i am having difficulty with. The question is to write a function that creates the following pattern given the height(number of rows)which must be even. Please help! * *** ***** ******* ********* ********* ******* ***** *** * Here is the code i have so far …

Member Avatar for SpS
0
137
Member Avatar for kevjeffers

I need help. Here is the homework problem: Write the definitions of the functions to implement the operators defined for the class dateType. Here's my code: Header: [CODE]#ifndef dateSType_H #define dateSType_H //dateType name changed to dateSType class dateSType { public: // ************ Mutators follow ************ void setMM(int month); //Function to …

Member Avatar for kevjeffers
0
107
Member Avatar for Foda_Bett

Hi y'all! I found this forum through google and I was hoping that I could get some help!! I've been assigneda rather odd assignment by my C++ teacher. I have a 2d array of names (names[17][20]) which has to be sorted alphabetically via selection sort, we can not use pointers. …

Member Avatar for Narue
0
2K
Member Avatar for ZenaNqld

New Problem... it keeps outputting both under and over par grrrrrrrrrr whats wrong with my if statement??!! [code] if (StrokeCount == 5 ) { cout<< "You are on Par Way To Go!!"<<endl; cout << endl; } else if (StrokeCount < 5) { Par = 5%StrokeCount; cout <<" You are "<< …

Member Avatar for WolfPack
0
89
Member Avatar for ZenaNqld

Ok heres the problem ( and no laughing at my code!! ) I need it to change the value of the strokedistance to the holedistance when the strokedistance makes the holedistance less than zero. Any suggestions, ideas, tips, and it doesnt have to be specific to my problem maybe just …

Member Avatar for ZenaNqld
0
148
Member Avatar for SharpOne

Hi, I've just started out learning C# / .NET at a fast rate. Then, I plan to look for company to get experience even if working for free. Any ideas or suggestions would be appreciated. Anyone know where I can gain experience when I learn enough without certification and only …

Member Avatar for Dani
0
63
Member Avatar for SharpOne

Hi, I've just started out learning C# / .NET at a fast rate. Then, I plan to look for company to get experience even if working for free. Any ideas or suggestions would be appreciated. Anyone know where I can gain experience when I learn enough without certification and only …

0
41
Member Avatar for comwizz

Hello everyone, I am having some problem in reading the data inputted in a file correctly using linked lists. I think this might be because of having pointer next of type password class. Thanks, comwizz. The code is posted below. You may directly see the section if (reply==3) as that …

Member Avatar for comwizz
0
159
Member Avatar for Podge

I have been working with the new Studio 2005. I am creating several apps, one with multiple documents and some others that are more dialog box type apps. I have done some MFC in studio 6 (C++) but I would like to understand when it is better to use MFC, …

Member Avatar for eggsy84
0
320
Member Avatar for Saint48198

I'm trying to pass the valuee from the arrays for age, sex, and wTime to the cal_Fitness_Level function, but I can't seem to get it right. I either get the same level for everyone or garbage. code and data follows. [code]#include <fstream> #include <string> #include <iomanip> #include <iostream> using namespace …

Member Avatar for Saint48198
0
228
Member Avatar for Acidburn

Hell ive written some code : [php] #include <iostream> #include <string> using namespace std; int main() { string a; string b; a = "ABCDEF"; b = "$"; a +=b; cout << a; if(a.find == 1 , "$") cout << "FOUND" << endl; else cout << "NOTFOUND" << endl; if(b.find == …

Member Avatar for Bench
0
157
Member Avatar for newgurl

hello, Thanks to previous help which has gotten me this far. However, my lovely program, although looks great in theory doesnt do what its supposed to do. When I type in 3 words, it doesnt put them in order as it should. Can someone point out to me where I …

Member Avatar for WolfPack
0
308
Member Avatar for bg123

I am having trouble understanding classes, I'm new at this and have not had any problems with c++ until now. This is what I have so far. I was supplied the driver and cannot make any changes to it. Any help would be appreciated greatly. Thanks. [CODE]#include <iostream> using namespace …

Member Avatar for bg123
0
240

The End.