51,593 Topics
![]() | |
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++) … | |
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 … | |
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 . | |
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 … | |
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 … | |
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 … | |
Has anybody use the jwSMTP c++ email routines, or do you know of a better freeware email c++ app? | |
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++ … | |
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: { … | |
Iam confuse with cubic equation alghoritma and code. x^3 + ax^2 + bx + c =0 Please help me | |
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 ! | |
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 … | |
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. … | |
![]() | Hullo, Does anyone have any tutorials about using the graphics library in turbo c. I need this fast. ThanQ |
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 = … | |
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; | |
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 … | |
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"); … | |
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 … | |
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: … | |
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 … | |
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 … | |
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, … | |
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 … | |
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 … | |
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. | |
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 … | |
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. … | |
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 … | |
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 … ![]() | |
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 … | |
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 … | |
I download turbo c++,but I can`t use ther a SHIFT key :cry: ( I can`t do // or #)it just ignore shift. :sad: | |
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 … ![]() | |
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 | |
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 | |
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 … | |
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 … | |
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 … | |
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. … | |
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 "<< … | |
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 … | |
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 … | |
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 … | |
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 … | |
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, … | |
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 … | |
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 == … | |
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 … | |
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 … |
The End.