199,114 Archived Topics
Remove Filter ![]() | |
I am getting this error in the second constructor for Class MailCarrier. mailcarrier.cpp(11) : error C2512: 'Employee' : no appropriate default constructor available I'm trying to incorporate composition and inheritance into my program. :idea:Any help would be appreciated:idea: [code] //MailCarrier.h #ifndef MAILCARRIER_H #define MAILCARRIER_H #include "Employee.h" #include <iostream> using std::cout; … | |
Hi I’m getting compile errors in the following code: [code] void Driver::read_data() { ifstream infile("data", ios::in); string name, surname; while (infile >> surname) { infile >> name; Person temp(infile); temp.read_surname(infile); temp.read_name(infile); temp.read_phone(infile); temp.read_age(infile); temp.read_weight(infile); 87 person_map[surname][name] = temp; } } [/code] The errors tell me that 87 driver.cpp instantiated from … | |
Hi everyone. I’m having some problems:mad: debugging the following code: [code] typedef map<string, map<string, Person> > pclass; pclass::const_iterator i; map<string, Person>::const_iterator iter; pclass person_map; void Driver::add_record() { string surname, name, phone, age, weight; int new_age; double new_weight; cout << "Enter name: "; cin >> name; cout << "\nEnter surname: "; … | |
I have inherited an Access 2000 database that has a text box where you click on a file path that is already entered there and it is suppose to bring up a Word or Adobe file. Sometimes the file will open and other times Adobe will open and the document … | |
[code] #include <iostream> using std::cout; using std::endl; #include <cstring> using std::strcpy; using std::strcat; #include <cstdio> using std::sprintf; int main() { char * lb = "(?:[a-z90](?:-?[a-z90]+)+)"; int lbLen = strlen(lb); char * sbFrmat = "(?:%s(?:\\.%s){0,4})"; int sbFrmatLen = strlen(sbFrmat); int sbLen = (lbLen * 2) + sbFrmatLen; char sb[sbLen+1]; sprintf(sb, sbFrmat, … | |
hello there! lately i started learning assembly from a book that first gets you through many things about processors, memory, logical&physical addresses and many others... now, what i dont understand is: any element from a segment is available through an logical address that has two elements: a selector and an … | |
Hi, I was wondering if anyone could help me. I'm constantly getting the following compiler message: 138 driver.cpp 'class pclass' has no member named 'surname' 138 driver.cpp 'class pclass' has no member named 'name' on the following lines: [code] 138 for (i = person[surname][name].begin(), i != person[surname][name].end(), ++i) { 139 … | |
In my program I want to add records to the database and then reference them by a unique identifier such as a user id. Even if the user name is the same as another, The would be different IDs so I could pull data on the correct one. So my … | |
I am writing a program to calculate my paycheck. I am including in this program two functions to calculate sickleave and vacation leave. I have a hireDate data member in the format of mm/dd/yyyy, how would I figure out length of employment to calculate aquired vacation and sick leave? I … | |
I recently started a game for me and my friend to play while he's away at college. I just tested the connection with him, and the test failed. I'm able to connect to 127.0.0.1, and my own ip with ease, but when I try connecting to my friends, it just … | |
Hello, I seem to be having some C language probs. I just need insight on how I can write this program: a program that reads input , and can replace a char with another one(e.g if I type k, it should replace it with a) using getchar and switch.. case … | |
any1 have any guidance with coding email attachments, like that in the email textbox, like underlined filenames so that when its clicked, it opens that file...using vb6. | |
I'm trying to use scansets to filter out out some textfiles. #include <stdio.h> int main( void) { int i; char str[ 80], str2[ 80]; scanf("%d %[abcdefg] %s", &i, str, str2); printf("%d %s %s", i, str, str2); getchar(); return 0; } When I input "123abcdtye" I expect the output to be … | |
Hi, I was asked to go over this block of code and explain what it does. Let me know if this is correct, thank you! [COLOR=DarkGreen]It selects a random EXE file and checks if the first line has the 1234567 signature. If it does it goes to the Subroutine I-executable … | |
i am trying to use a boost library [CODE]#include "boost/date_time/gregorian/gregorian.hpp"[/CODE] and my source file is in the same folder as boost. however, during compilation i get errors that directories that gregorian.hpp links to (boost/date_time/compiler_config.hpp) could not be found. i've checked that all the files that gregorian.hpp links to are in … | |
SIr, I wanted to know the C Statement for adding two numbers without using + sign.. Anyone can help me to solve this..... ThanQ | |
Hello friends.... I have configure my apache soap..... It is saying that after configuration if i go on "[B]http://localhost:8080/soap/servlet/rpcrouter" [/B]it will give following message...... [B]"Sorry, I don't speak via HTTP GET- you have to use HTTP POST to talk to me." [/B] But in my case it is [B]throwing exception[/B] … | |
Hi, I had made a phpbb dicussion forum section. I had alreadt edited the logo. But i am not able to edit its footer link. and the outlook and color combination. overall i need to customize the look of my phpbb forum. I had many question: 1. How to change … | |
Hey again, Im seriosly having difficulty displaying the current date and time in java/jsp. THis is the code im using to get the date and time: public static void main(String args[]) { Date date=new Date(); SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yy"); String strDate = sdf.format(date); System.out.println(""+strDate); } but nothing seems to … | |
[code]# include <iostream> # include <stdio.h> # include <conio.h> # include <dos.h> # include <string.h> # include <math.h> # define TRUE 1 # define FALSE 0 //if you can change to a class it can be better and faster struct member { int mid; char mainname_1[20],madd[30]; struct Read_Struct { int … | |
[B][I][COLOR=Blue]if you run this code in c++ you get the following error at the underlined part is where the problem is : error C2143: syntax error : missing ';' before 'constant' : fatal error C1004: unexpected end of file found Error executing cl.exe.[/COLOR][/I][/B] [CODE] # include <iostream> # include <stdio.h> … | |
I have a text box that will be populated by data, sometimes to long for the form and I wanted to add a vertical scroll bar to it, but I'm not sure how to link them together. I can place it on the form but it doesn't work the textbox. … | |
Hi guys I am new to C++ and need urgent help with this part of my code for a uni coursework I have to submit by Thursday [code]//ClientData.h #ifndef CLIENTDATA_H #define CLIENTDATA_H #include <string> using std::string; class ClientData { public: // default ClientData constructor inline ClientData( int = 0, string … | |
hi, i m novice to asp.i m using one stored procedure in sql server2000 which is using cursor.this is doing the following things 1) select the peticlur records from one table 2) insert the record in another table relavant to retireved ID 3) select the second table values i m … | |
hiii all ..... i am in the last year in the faculty of computer science and i wanna know more ideas about graduation projects and i prefer it to be about web or mobile application and ignore any recognition ideas cause it's accuracy can't be so good as i think...... … | |
C++ Code: [code] /* readmail.c */ #include <stdio.h> #include <stdlib.h> #include <windows.h> #include <windowsx.h> #include <mapi.h> #include <string.h> int readmail(); long err; LHANDLE lhSession; lpMapiMessage FAR *lppMessage; lpMapiMessage lpMessage; char szSeedMessageID[512]; char szMessageID[512]; char szTmp[4096]; char szTmp2[50]; LPSTR lpszSeedMessageID=&szSeedMessageID[0]; LPSTR lpszMessageID=&szMessageID[0]; int main() { readmail(); return(0); } int readmail() { … | |
Does anyone have info on this code? Where it comes from. MS Support has provided no help -- it appears to be from recent update to MS.Net Framework 1.1. My MS office suite programs recieve this same message and error code whenever they launch, followed by "Common Language Runtime Debugging … | |
I am facing a problem with my project. I want to Update my database through DataGrid Object which is a tabular one right !. But, I want to control the number of empty rows that are available. But it has only one empty row that means i can enter only … | |
Hi there all I am in the process of developing a knowledgebase.. I have some cool click and copy script but it doesnt allow me to format the text that is copied so that I can copy an already fromatted email.. for example: Hi, thank you for contacting us, blablablablablablablablablablabla … | |
Hai Friends I need another clarification GD lib. I want to create the new image using GD lib. I user select one immage and set the dimension values and press enter the new immage the given dimension value Please send me any sample code How to create the new image … | |
Hey I have a website ( [url]http://www.ppltalkin.com/[/url] ) and the administration panel is powered by [I]cPanel[/I]. I want my members to be able to apply for an email address and have one automatically created for them on the spot! I have squirrel mail installed and I have a cPanel password … | |
Ok im learning how to do exponents in c++ and I get most of this, but I dont get what double means. I do however know what float is. in the deffenition of double from my compiler help it says "double - a double-precision floating point value." but i dont … | |
I have a tell a friend page done in PHP adnd I'd like to have it so that they can't edit/change the message only add their email & friend email...and not be able to add spam to it. and I'm pretty new at PHP so Thanks in advance for any … | |
Greetings, I need help with the javascript below. So far, I am able to pass the date through a pop-up calender and this script receives the date in format of "28 Aug 2006 11:47 PM" as a string. I then split the string and take each field for further processing. … | |
[B][U][COLOR="Navy"]What is a database?[/COLOR][/U][/B] A database is a collection of data stored in some organized fashion. The simplest way is to think of it is to imagine a database as a filling cabinet. [B][I]What are tables in the database?[/I][/B] When you want to store some file with information you just … | |
example , I put in the number [B]1.52[/B] then, in the dump, it looks like [B]31 2E 35 32[/B] (the ascii equivalent of '1','.''5',and '2') but I want it to be [B]3F C2 8F 5C [/B] so that I can start my calculator Thanks! | |
with respect to network programming in java can anyone tell me what exactly a cookie is? please be elaborate. thank you very much | |
hey all, i was wondering if anyone has the code for "Alternating backgrounds", i dont know if that is the term for it, but its where you load a page, and the background is differnt everytime you load that page, do you follow?, well im very new to html and … | |
Hi, [U]Here's what I've got:[/U] Visual Studio 2005 C# Application with form and a label on it (This is a simplified project ;) ) [U]Here's what I'd like to do:[/U] I want to change text on the label from the method I'll create. Looks simple... If I'll create a button … | |
Hi, rather new to vb.net and INfoPath. Can someone tell me what is wrong with the next code : [B] Dim veldje As IXMLDOMNode veldje = thisXDocument.DOM.selectSingleNode("//my:Opdrachtstatus") veldje.text = "changed" thisXDocument.DOM.selectSingleNode("//my:Opdrachtstatus").text = veldje.text[/B] The field "Opdrachtstatus" on the InfoPath-form does not change anything. Suggestions are appreciated, regards, Ger. | |
lately i downloaded nasm for compiling .asm files but when im trying to compile something(by using in cmd "d:\nasm\nasm.exe -f bin d:\nasm\myfile.asm -o d:\nasm\myfile.com") i get the following error: "d:\nasm\hw.asm:4: error: parser: instruction expected"... does anyone know why and wanna help me? thanx in advance | |
Can anybody tell me what are file descriptors in C?? I searched the net but can't clear my concepts!!! | |
hi i am new in javascript, can somebody please assist me on how to to this validation: starts with ZPR 11 characters(the rest will be numbers only) total of 3 characters and 8 numbers thank you for your time guys. | |
could someone please provide me with the answersd to the following c++ problems, they are simple problems which are probably an insult to most of your intelligence but i'm clueless and desperate. THANKS FOR HELPING:o 1. how would you write this expression in c++? assume all variables are of type … | |
Hi, I'm not quite sure which forum I should post my question, so if this seems like the wrong place for it feel free to move it to the appropriate forum. Right now when I use a barcode scanner it will scan the barcode information into one field. However I … | |
Hi ppl, I have made a declaration: char* str; str = " Hi there"; what do i have to do to extract a substring from this? [I]Thanks,[/I] [I]Ishwar[/I] | |
Hey guys, I was wondering if anyone can help me in terms of using atoi to get my my results to add the 1's of my binary output and then join them together... eg. 110101 and 100101 is 4 and 3 = 43. I was thinking of integer dividing the … | |
PLEASE HELP ME!!! P E R L!!! I have a CGI (PERL) file namely 'test.cgi' and it has the correct permission (755) on the FTP [URL="http://forums.devshed.com/perl-programming-6/please-help-me-p-e-r-l-380358.html#"]server[/URL] and it is within the CGI path. I have the following code in it: =================================== 1: #!/usr/bin/perl 2: 3: $cr = '???'; 4: $decrypted … | |
hi, I have written a win application program. In my application i have 5 picture boxes with mouse enter, mouse leave, mouse down, mouse up and mouse click events applied. When each of these events occur I set the image property. actually i have simulated 5 graphical buttons. but they … | |
I have a Class (base) that takes a TYPE in the constructor and loads the appropriate image into memory - this class is used to fill the level map of my game - so I create like 50 of the objects, 20 walls, 10 bricks, , 20 floors, etc... and … |
The End.