199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for zios007

Yes, I know that this is homework. But I need help. This is code the teacher gave us few days ago. This is a header file. And I needed to do the following: My problem is that I didn't know how to use my vecetor in my .cpp file. How …

Member Avatar for sergent
0
143
Member Avatar for Mike Bishop

I am pulling three coloums of data from a SQL view into my data drid Day,TimeIn,Timeout I want to colour my datagrid rows red if timeout is null and green if both the timein, timeout have data in them. here is my code so far, but it aint working Public …

Member Avatar for Mike Bishop
0
120
Member Avatar for manishanibhwani

hello everyone, I am developing an application for my project... My application works correctly when I run it on applet viewer...But when i try to run it with the help of html page ..the code does not run and gives an erron java.security.accessdenied exception.... Actually i have loaded an image …

Member Avatar for manishanibhwani
0
156
Member Avatar for funkey100

I've been making a program for fun and I'm an amateur programmer too. I added a feature to a program that let's it read users externally from files to log in instead of storing user data on the code so that new users can register. I'm having problems in line …

Member Avatar for histrungalot
0
369
Member Avatar for belber

hey all, i wan't ask.. how make shortcut in form.., did i've to use keyup or keydown event ..??? i need some reference pliss...

Member Avatar for mustaffa hasan
0
212
Member Avatar for kase20

hi guys!! The purpose of the program I am trying to do is to have an input number of 6 digits typed in and this should then be printed as an hour minute second format. for example 123456 would be 12:34:56 This is what I have but it isn't working …

Member Avatar for Ancient Dragon
0
107
Member Avatar for capton

Please i'm working on a linked list and want to overload the ++ operator in order to use a dummy pointer to loop/traverse through the list. But its gives me a compiled-time error. Here is the actual code: class Node { private: string value; Node* next; public: ~Node(){del ete this;}; …

Member Avatar for capton
0
198
Member Avatar for Ordella

As I mentioned in an earlier post of mine that I have my computer exam on th 26th March 2012.. So I was just wondering if anyone could provide me with some programming questions for my school level which I could practice on my own. If anyone is posting me …

Member Avatar for stultuske
0
110
Member Avatar for phorce

Hello, Wondering if you can help me.. I have a variable, that each time needs to multiply by 2 (I know, it sounds simple.. I'm probably being an idiot) but it works like this: LOOP 1 offsetX = 0; offsetY = 0; LOOP 2 offsetX = 2; offsetY = 0 …

Member Avatar for phorce
0
118
Member Avatar for sadzee

**Hey, Hi all! I'm a bachelor student, new to Java. Following code is giving error in PrintDetails() What parameters should I define in it?? Kindly check and tag out my mistakes in the following code.. Thanks ^_^** class student { String a;String b;char c;double d; student(String name,String rollno,char gender,double gpa) …

Member Avatar for NormR1
0
109
Member Avatar for Ordella

Could anyone tell where is the error in the program? There is a compile-time error... When I hit compile it shows error in the 40th line saying that 'r' might not have been initialised.. I can't get that.. Pease could anybody help?? import java.util.Scanner; public class Customer_Account { public static …

Member Avatar for Ordella
0
106
Member Avatar for White Eagle

How would I find all occurances of the letter 'e' for example in a list of the split word elephant? I've tried using letterlist.index('e') for example but index only returns the first occurance of e. This is to be used in a hangman game, and the game needs to display …

Member Avatar for woooee
0
187
Member Avatar for omeja

Hi, Iam having issues with a part of my code in a windows service that prevents it from being installed with the error,nullrefrenceexception unhandled.here is the code public string GetEncryptedText(string PlainStringToEncrypt) { string DigitalCertificateName = "URAioPmtCert1"; X509Store store = new X509Store(StoreName.Root); X509Certificate2 x509_2 = null; store.Open(OpenFlags.ReadWrite); if (DigitalCertificateName.Length > 0) …

Member Avatar for sknake
0
131
Member Avatar for slaythezeppelin

Hello im new to daniweb and c++ and am getting a overloaded function error on my readFile function, specifically the string data type. I cant seem to pinpoint whats causing the error. Im supposed to use the function to read data from a text file in this format: Johnson 5000 …

Member Avatar for rubberman
0
166
Member Avatar for bigzos

Hey guys,, i am working on an application titled Asset Management for my b.tech major project.The company under which i am pursuing it only asked me to include sumitting asset information,,retrieving information and generating reports and editing of data with admin login.I made all that but my college faculty is …

Member Avatar for bigzos
0
89
Member Avatar for game4tress

I've an application build with C# and WPF, that is being developed by 3 developers, including me. On a certain stage of the application, an error came up that we can't determine how it happened and how to solve it, so we ask for your help. Although everything works well …

Member Avatar for nmaillet
0
302
Member Avatar for gabbytheking

Hi I'm doing this for a project so no need to worry about real world worries such as encription etc. I'm trying to put imported Values into the below form via a seperate php form on a different site. ie my website is a client of an online creditcard server(CCS) …

Member Avatar for veedeoo
0
374
Member Avatar for gourav1

actually, i don't know where to post this thread. but i know the people available on daniweb.com have much knowledge. will you please tell me that how to start writing proposal. i have spend 2 full days on PC reading about G-SOC but still i am not getting how to …

Member Avatar for gourav1
0
412
Member Avatar for hwoarang69

les say we have a binary file. and 1st letter is 3. how do i take 3 and put it into a char ar[]. what i did was if(fread(ar, 1, 1, fine)) { }

Member Avatar for Ancient Dragon
0
117
Member Avatar for luislupe

The problem I have and can't understand is that I receive a segfault when trying to close the second file (fclose(ofp)). Input file is a xml file that will generate food for output file. At present time, input file is being read for parsing but no output for outfile is …

Member Avatar for Ancient Dragon
0
2K
Member Avatar for mehnihma

I need to take arguments and change the extensio of the file for writting but I get java.lang.ArrayIndexOutOfBoundsException: 1 Why? Is there any better way? // change file name for saving the output file int dot = inputFile.lastIndexOf('.'); // check for the dot String baseName = (dot == -1) ? …

Member Avatar for mehnihma
0
185
Member Avatar for poolet

I am trying to create a 2 dimation array for a game... The table will look like that!!! **0 1 2 3 4 5 6 7 ** **0|0 0 0 0 9 0 0 0 ** **1|0 0 0 0 0 0 0 0 ** **2|9 0 9 0 0 …

Member Avatar for poolet
0
143
Member Avatar for roshan_shetty

friends............. i am doing my project in vb.net 2008 when i minimise my running windows application its icon must be minimised and fit in system tray......... and when we doing some other works in our system(such as video playing or other working) my windows application must works in background hw …

Member Avatar for anuj6928
0
95
Member Avatar for usernforce

I am getting this error with when I compile. I have to turn this assignment in in a few hours. Here is the code: error message(s) untitled.cpp:34: error: invalid types ‘int[int]’ for array subscript untitled.cpp:36: error: invalid types ‘int[int]’ for array subscript // A basic Casear Cipher Encrytion Device. #include …

Member Avatar for MastAvalons
0
152
Member Avatar for benswimmin

I'm writing a program and am getting both an LNK2005 and LNK1169 error. I might be doing something wrong with trying to call the various files as this is the first program Ive tried writing with more than one. I was given a .h file to begin with that I …

Member Avatar for JasonHippy
0
127
Member Avatar for kilowatt46

I am setting up a secure area of a web site that will be accessible to members only. Members may or may not pay their yearly membership dues online through our web site. The membership year is from Jan. 1 to Dec. 31. I want to give the paid members …

Member Avatar for newbie1234
0
163
Member Avatar for fatooma92

Open the project space in greenfoot and study the codes of the classes Space and Asteroid. 2. Modify the constructor so that the space world paints 300 stars. To paint a star you write the following code: GreenfootImage star = getBackground(); star.setColor(Color.WHITE); star.drawOval(50,50,2,2); this will draw a small white star …

Member Avatar for stultuske
0
220
Member Avatar for praveenrko

i want a code for registration form in vb.net and my project name is book bank system can anyone please post the snippet for me am using sqlserver2005 as backend

Member Avatar for Mitja Bonca
0
365
Member Avatar for zAxOanL

Hi. I have problem adding text box after each label ID Code, Weight, Rate, Price Charge, it does not show when i run the code. Also, how do i add the $ sign when display the price charge. the ouput should be like this: Fee Calculator ID Code: [Text Box] …

Member Avatar for stultuske
0
431
Member Avatar for gourav1

actually, i want to calculate 2^60000 in 1 second. i have tried a way but it is giving output in specified time for 1000 power only.(i have used arrays to store a one integer). will you please give me a hint only how to do that ? [B][I][U]"I AM NOT …

Member Avatar for TrustyTony
0
1K
Member Avatar for MH Moni

'''''*****ListView(VB 6) Selected or checked Data Entry & Display Solutions full code*****'''' Option Explicit Public CN As ADODB.Connection ''General Declaration in Modules part'' Public RS As ADODB.Recordset ''General Declaration in Modules part'' Public Sub DBConn() ''Sub Procedure for Database in Modules part''' Set CN = New ADODB.Connection With CN If …

Member Avatar for Dani
0
1K
Member Avatar for codecrypt

Hello, I've been having a little dificulty with passing this array to my text file. What i'm doing is writing a questionaire type quiz which involves outputting questions, receiving input, and taking each input value and listing it in a text file. What I have works, except for writing the …

0
64
Member Avatar for Farhan_B

In my datagrid my sql statement uses a have clause to get set information and i am having countless errors My code is as shown below, were am i going wrong ` con.Open() cmd.Connection = con Dim da As New SqlDataAdapter("SELECT MONTH(Head.SalesDate) AS Month, Detail.ProductID, Detail.Qty, SUM (Detail.Qty) AS TotalSold, …

Member Avatar for M.Waqas Aslam
0
208
Member Avatar for kkb08

I'm trying to write a program that calculates the mean and standard deviation for a set of numbers. I broke the calculation down into a couple parts, and for some reason when I try to sum the differences squared I keep getting the wrong answer. Not sure why though. For …

Member Avatar for nullptr
0
157
Member Avatar for poojavb

Hello Friends, I need one help I have a datetimepicker control, a combobox with day i.e. Sunday, Monday and so on.... The datetimepicker min date will be todays date and max date will be more 7 days...i.e. a week... so the days dont get repeated..means sunday will come only one …

0
84
Member Avatar for momonq1990

Code blocks are created by indenting at least 4 spaces ... and can span multiple lines <script> function del(delUrl) { var r=confirm("Are you sure you want to delete?"); if (r==true) { alert("Deleted record!"); document.location = delUrl; } else { alert("Delete cancel!"); } } </script> <a href='delete.php?id=$sysid' class='view' onClick='del()'> <img src='image/vie.png' …

Member Avatar for DavidAntaramian
0
172
Member Avatar for Torf

Hello, I want to load integers from a text file into a class or structure. It should jsut read all lines and load them into it. What is aa easy code for this? I want to keep it simple and easy. Also it should be easy to modify, like modify …

Member Avatar for Torf
0
195
Member Avatar for itsanicole

This is what I have. It displays the 100, which is what 10 times 10 would be, but I want it to show a multiplication table. My Nest For Loop works fine doing the same thing but I can't get this to work properly. Can anyone help? { int row=0; …

Member Avatar for Lerner
0
389
Member Avatar for Dani

Quick question ... What happens if you use array_slice() and specify a length that is longer than the length of the array? Sorry but I couldn't find the answer on PHP's doc pages or in a quick G search.

Member Avatar for Dani
0
183
Member Avatar for JOSheaIV

So first of all let me say I am pretty new to C++ and find it very difficult to learn (especially when compared to say C#) Anyway I am working on a program that requires the use of a 2D array or a similar container. After talking with a professor …

Member Avatar for JOSheaIV
0
3K
Member Avatar for lastbencher

Program: #include <iostream> using namespace std; class Rectangle { float len; float bre; public: Rectangle() {cout << "Rectangle constructed!" << endl; len=0; bre=0;} ~Rectangle() {cout << "Rectangle destructed!" << endl;} void setL(float L) {len=L;} void setB(float B) {bre=B;} friend float area(Rectangle rect); }; float area(Rectangle rect) { return rect.len*rect.bre; } …

Member Avatar for JasonHippy
0
170
Member Avatar for donjt81

I need some help updating data in my table based on data in the supply chain group's table This is how the table looks on their side ##Table Name: ProductSC## ID Code Description Status 1 N461579 Phone Available 2 N836257 Headset1 Discontinued 3 N836258 Headset2 Available 4 N748956 Adapter Available …

Member Avatar for donjt81
0
122
Member Avatar for Bchandaria

How To Upload a Embedded media or video it to asp.net application with complete UML Source Code? ? ? ? ? ?

Member Avatar for Sinderone
0
112
Member Avatar for NguyenThai

Hi. I'm working with my project right now. In my project, there will be 2 form; I will call form1 and form2. Form 1 call first and then it has button to call form 2. I don't want user open many form2 so I use a private boolean variable. When …

Member Avatar for adetolah
0
158
Member Avatar for caltech

**Assignment:** > 1. Print the following heading at the top of the output page: Miser Corporation Payroll > > 2. Read an unknown number of employee data records as shown below. Each group of data will contain an employee's name, hours worked, rate of page and age. A typical group …

Member Avatar for Lerner
0
2K
Member Avatar for FaceSmasher

I am working on a command line program that communicates with another program. What i am trying to do is after i write a command it will split the string so the number on the end will be put into a seperate variable. For example if i write the line …

Member Avatar for ravenous
0
104
Member Avatar for marComm

Hello, I am building a website using a standard form and perl script that we commonly use, but this one has a special request and I don't know how to handle it because I have very little knowledge of Perl, other than what is in the standard script I have …

Member Avatar for marComm
0
579
Member Avatar for tubby123

Why is it that this won't work instead of using atoi ? `Inline Code Example Here` #include<stdio.h> int main(void) { printf("%d",(int)"10"); return 0; }

Member Avatar for Ancient Dragon
0
75
Member Avatar for shawnv100

I'm developing an Intrusion Detection System program....right now, I have written some of the code, but I'm having a lot of difficulty testing it, because I don't have any virus infected systems to test the code on....is there any way I can develop a worm just for testing purposes?...or is …

Member Avatar for shawnv100
0
99
Member Avatar for omeja

Hi, I am trying to windows service to read files but it reads even the ones I already read.How can I only read new files? this is the code // Process the list of files found in the directory. string[] fileEntries = Directory.GetFiles(sourceDir); foreach (string fileName in fileEntries) { // …

Member Avatar for Mitja Bonca
0
139

The End.