199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for SHWOO

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; …

Member Avatar for GloriousEremite
0
849
Member Avatar for V1RuZ

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 …

Member Avatar for WolfPack
0
376
Member Avatar for V1RuZ

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: "; …

Member Avatar for V1RuZ
0
2K
Member Avatar for Tiregal06

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 …

Member Avatar for Comatose
0
166
Member Avatar for saishn

[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, …

Member Avatar for Ancient Dragon
0
242
Member Avatar for uu666

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 …

Member Avatar for Ryu
0
168
Member Avatar for V1RuZ

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 …

Member Avatar for V1RuZ
0
729
Member Avatar for StatiX

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 …

Member Avatar for StatiX
0
338
Member Avatar for SHWOO

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 …

Member Avatar for WolfPack
0
155
Member Avatar for daniwebaccount

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 …

Member Avatar for daniwebaccount
0
417
Member Avatar for the.future.zone

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 …

Member Avatar for Lerner
0
166
Member Avatar for shabina

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.

Member Avatar for shabina
0
150
Member Avatar for VinC

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 …

Member Avatar for Bench
0
426
Member Avatar for Allisone

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 …

Member Avatar for ~s.o.s~
0
162
Member Avatar for kimw

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 …

Member Avatar for Salem
0
230
Member Avatar for ravi_forum

SIr, I wanted to know the C Statement for adding two numbers without using + sign.. Anyone can help me to solve this..... ThanQ

Member Avatar for Salem
0
190
Member Avatar for alwaysvaghu

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] …

Member Avatar for jwenting
0
192
Member Avatar for dss

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 …

Member Avatar for dss
0
256
Member Avatar for nixlie

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 …

Member Avatar for jwenting
0
166
Member Avatar for brianotieno

[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 …

Member Avatar for Dave Sinkula
0
335
Member Avatar for brianotieno

[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> …

Member Avatar for Dave Sinkula
0
235
Member Avatar for StatiX

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. …

Member Avatar for Comatose
0
131
Member Avatar for gothicpurple

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 …

Member Avatar for Dave Sinkula
0
321
Member Avatar for sameera

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 …

Member Avatar for campkev
0
230
Member Avatar for med7at7egazi

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...... …

Member Avatar for shanepaul
0
72
Member Avatar for jacove

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() { …

Member Avatar for ishwar
0
251
Member Avatar for hikerpack

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 …

Member Avatar for TonyNYC
0
413
Member Avatar for lover99509

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 …

Member Avatar for lover99509
0
125
Member Avatar for jeadeb

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 …

Member Avatar for tgreer
0
489
Member Avatar for vssp

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 …

Member Avatar for joelgreen
0
161
Member Avatar for SirHoliday

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 …

Member Avatar for joelgreen
0
285
Member Avatar for grunge man

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 …

Member Avatar for dwks
0
255
Member Avatar for anamerican

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 …

Member Avatar for StatiX
0
109
Member Avatar for Gravis

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. …

Member Avatar for Gravis
0
212
Member Avatar for aarya

[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 …

0
118
Member Avatar for mymirror

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!

Member Avatar for mymirror
0
100
Member Avatar for indianscorpion2

with respect to network programming in java can anyone tell me what exactly a cookie is? please be elaborate. thank you very much

Member Avatar for indianscorpion2
0
341
Member Avatar for BT2005

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 …

Member Avatar for sjaak
0
538
Member Avatar for Stivi

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 …

Member Avatar for Stivi
0
107
Member Avatar for GerEielts

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.

Member Avatar for hehe
0
129
Member Avatar for uu666

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

Member Avatar for mostafadotnet
0
197
Member Avatar for himanjim

Can anybody tell me what are file descriptors in C?? I searched the net but can't clear my concepts!!!

Member Avatar for mostafadotnet
0
156
Member Avatar for darylcharm

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.

Member Avatar for anuradhu
0
116
Member Avatar for JW1873

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 …

Member Avatar for mostafadotnet
0
250
Member Avatar for stphone

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 …

Member Avatar for yenyen
0
91
Member Avatar for ishwar

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]

Member Avatar for ishwar
0
22K
Member Avatar for insamd

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 …

Member Avatar for insamd
0
393
Member Avatar for SKJoy2001

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 …

Member Avatar for KevinADC
0
160
Member Avatar for soheilshoolookh

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 …

Member Avatar for Lord Soth
0
141
Member Avatar for Shaitan00

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 …

Member Avatar for Lord Soth
0
105

The End.