132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for dex.ter

hi guys, here's my code im having a hard time on how to edit. i can add and view it yet unable to edit it. thanks! [code]/* * dental.c * * Created on: 30/04/2010 * Author: danovert */ #include<stdio.h> #include <string.h> #include <conio.h> #include <stdlib.h> typedef struct { char fname[30]; …

Software Development c
Member Avatar for Banfa
0
131
Member Avatar for tarheelfan_08

Hey guys, I have created the following code and I can not figure out how to do one thing, add users. I can do it manually, but I need to prompt the user for two new accounts and then add them to the list. Can someone please inform me of …

Software Development algorithm c++ linked-list
Member Avatar for Banfa
0
120
Member Avatar for jacob07

Hello, i have proplem with the following excercise: There's a txt file which contains tab seperated words like: [CODE] Name N1 N2 Type FFapple 11 15 fruit ZZbanana 33 45 fruit ZZcarrot 22 25 vegetable FFapricot 10 30 fruit ZZmelon 22 50 fruit FFbroccoli 16 40 vegetable[/CODE] i want to …

Software Development apple python
Member Avatar for jcao219
0
220
Member Avatar for d.devendran

hi expert, i'm newbie for python, anywhere i'm learning from internet sample, i got doubt here, i found below sample for thread import threading def hello(): print "Hello" t = threading.Timer(2, hello).start() t = threading.Timer(2, hello) t.start() this working fine when run manually ( python thread.py) but i try to …

Software Development multithreading python
Member Avatar for jcao219
0
161
Member Avatar for needanswer

I want to search the records from the textbox and display the records to the datagridview, if there are no records, just display empty on the datagridview. this is not working: [CODE] Dim sqlsearch As String sqlsearch = "SELECT * FROM setting WHERE mname LIKE '%" & TextBox.Text Dim adapter …

Software Development display vb.net
Member Avatar for pritesh2010
0
672
Member Avatar for fugnut

Hello all, I am at the beginning of a new program working with structs and I am getting an error I cannot figure out. My code so far is [CODE]//PJ901 PAtrick Nealey //Acme Payroll Program #include <iostream> #include <fstream> #include <iomanip> #include <cstring> // for _strcmp using namespace std; const …

Software Development c++ file-stream
Member Avatar for Fbody
0
131
Member Avatar for j_kathiresan

Hi, I may get more than 1000 lines in a file. Each line ends with a new line character. Sometimes the file may have 4 lines. Other lines will have characters such as , : alone. I'm storing each line in the database if it is a valid line and …

Software Development java
Member Avatar for javaAddict
0
161
Member Avatar for miturian

So, in the course of trying to write my own matrix-class (as an exercise, if nothing else), I ran across the following problem, exemplified in a dummy class: [CODE]class dummy { public: int a; int b; dummy(int a, int b): a(a), b(b) {}; dummy& operator=(dummy &rhs) { a=rhs.a; b=rhs.b; return …

Software Development c++
Member Avatar for miturian
0
112
Member Avatar for Duki

Hey guys, i have this project that, when i compile, 11 of the header files cannot be opened. I have no clue why - i've never seen this type of error. The project is much to large to copy/paste here, but does anyone have an idea of what would cause …

Software Development c++
Member Avatar for Fbody
0
560
Member Avatar for yushuan718

Hello all, I am writing a function to download a HTML page from another server. I am wiring this code using MFC's Casyncsocket Basically, this class runs the callback function (onReceive) whenever it detected some new that can be received. Originally, I had something like this: [CODE] void CLASSNAME::OnReceive(int nErrorCode) …

Software Development c++ html-css
Member Avatar for yushuan718
0
98
Member Avatar for C++_Beginner

Help me please. I don't know where the error is. If you find it i will appreciate it. Very much. It says its inhere somewhere : [CODE] else (ENEMIES > ADVENTURERS) { cout << "\nAlong the way a band of Ogres ambushed the party. "; cout << "All fought bravely …

Software Development c++
Member Avatar for C++_Beginner
0
96
Member Avatar for godsgift2dagame

Hi guys, I'm really sorry to bother you with a simple question. I'm doing an assignment with operator overloading at the moment & seem to not understand how operator+ should be used in regards to my program. I understand the point of it & how to get it when using …

Software Development c++
Member Avatar for Banfa
0
126
Member Avatar for shrutinr

Hello. Please I need help from anyone who know about my problem.. I m passing value to textBox. I need to get that value and pass to CAN. I store val as: String^ myval=textBox1->Text; and i m passing to CAN as: Transmit.Data[0] = myval; but i m getting error. please …

Software Development c++
Member Avatar for JasonHippy
0
236
Member Avatar for aalto

There's probably a quick solution to this, but I'm struggling with VB2008 Express. Her's my situation anyway: A simple database has been created in Access, which is just basically a table of text, with some images as entries. A form has been created in VB2008 Express and linked to the …

Software Development vb.net
Member Avatar for Luc001
0
113
Member Avatar for pardeep3dec

Hi i am working on a project for cyber cafe. My problem is that when i am using a form with maximize property who covers all the screen including start menu and status bar but whenever windows key is pressed start menu and status bar showed. so tell me how …

Software Development vb.net
Member Avatar for Luc001
0
314
Member Avatar for Cap'nKirk

Hi, I have created an html help file for my application and have a menu button to open it but I am having problems as it keeps coming up with an error saying it can't find the file. I don't want to hard code the full path to the help …

Software Development file-system html-css
Member Avatar for Cap'nKirk
0
94
Member Avatar for vmirz

I'm very new to Java, and I just have a few questions that I can't seem to clear up even with some research. What does it mean to override a method? Also what is the difference between a static and non-static method?

Software Development java
Member Avatar for stultuske
0
370
Member Avatar for bustersox

I am having problems getting my code to work properly. I cannot seem to get the results to print and get this error message "IsMemberMethod.java:59: isMember(int[]) in IsMemberMethod cannot be applied to () System.out.println(searchValue + ": " + isMember());", but I cannot seem to work around it. Also, not sure …

Software Development java
Member Avatar for stultuske
0
2K
Member Avatar for pateldeep454

[B]This is my code so far......[/B] [CODE] import java.applet.Applet; import java.awt.*; import javax.swing.JOptionPane; public class HelloWorld extends Applet { Font myFont = new Font ("Times Roman", Font.BOLD, 25); public void paint (Graphics g) { g.setFont (myFont); g.setColor (Color.BLUE); g.drawString ("My Name" , 20, 30); String first; first = JOptionPane.showInputDialog (null, …

Software Development java java-swing
Member Avatar for quuba
0
112
Member Avatar for fuser

I recently wrote some code from a code snippet from my java programming textbook as a way to pass the time, and since it works fine in console, I assumed that it will work fine in a GUI application. The code: [CODE] import java.net.*; import java.util.*; import java.io.*; import java.nio.*; …

Software Development gui java java-swing
Member Avatar for JamesCherrill
0
117
Member Avatar for ultimatebuster

The directory layout looks like this [CODE] base -- + parcer -- + parcer.py log -- + log.py [/CODE] I want to import log.py from parcer.py. How would I do that?

Software Development python
Member Avatar for TrustyTony
0
98
Member Avatar for PonAngel

I need help getting UI to work with my File System [CODE]import java.awt.*; import javax.swing.*; import javax.swing.JLabel; import javax.swing.JTextArea; import javax.swing.JTextField; import java.awt.event.ActionEvent; import java.awt.event.*; class UI extends JFrame implements ActionListener { private JButton format = new JButton("Format Disk"); private JButton mount = new JButton("Mount Volume"); private JButton createDIR = …

Software Development gui java java-swing
Member Avatar for PonAngel
0
94
Member Avatar for BobbieJean

Hi, I've gotten this program to work but I want to format it differently. I feel like I've tried everything to make the changes that I want but they just don't work. I think I may have the right idea on most of what I want to change but keep …

Software Development gui java java-swing
Member Avatar for BobbieJean
0
1K
Member Avatar for thuyson

i have a file excel and i imported it into sql 2005 with it's name is QLHP ,now i want to delete QLHP database in sql 2005 using c#. Please help me! Thanks so much!

Software Development
Member Avatar for thuyson
0
96
Member Avatar for kapiercy07

I am in a basic programming class and am having difficulty figuring out how to account for a non-numeric value being placed in for a binary number that will be converted to decimal form. If there is to be say a P typed into the binary input number, I want …

Software Development c c# c++ user-interface
Member Avatar for kapiercy07
0
134
Member Avatar for jeffcruz

[CODE] #include <iostream> #include <cstring> #include <string> #include <cstdlib> #include <iomanip> #include <stdlib.h> #include <conio.h> #include <stdio.h> using namespace std; class Fraction { private: double numerator; double denominator; public: Fraction (); // Fraction (double numerator, double denominator); //Fraction (Fraction &); //double operatorMultiply (fraction a, fraction b); //double operatorSum (); //double …

Software Development c c# c++
Member Avatar for jeffcruz
0
68
Member Avatar for hqt

sorry to post this stupid question here. I'm just learning Assembler and a problem from my book is: input: a string from a user. output:character in that string. for example: input: DANI so output is: D A N I I just can received a string from user. thanks. :)

Software Development assembly
Member Avatar for thines01
0
84
Member Avatar for i_luv_c++

hey guys im new to recursion to recursion..pls look at the function call ...question is how do i call in two functions at the same time..and which one should i return thank you. [CODE]#include <iostream> using namespace std; bool canMakeChange(int total, int nums[], int length){ if(total==0) return true; else canMakeChange(total,nums,length-1); …

Software Development c++
Member Avatar for i_luv_c++
0
263
Member Avatar for dls_20022002

Hello everyone im currently making a library, and im new to using arrays, i have added some books to my library file using an array. i was wondering how would i go back and select the element in the file to delete. the area that im trying to code for …

Software Development c++
Member Avatar for abhimanipal
0
105
Member Avatar for Justin9825

I'm completely new to C++ and trying to figure this stuff out I had posted a topic a couple days ago. After many frustrations and headaches, I deiced to start over. This is what I got: [code] #include<iostream> #include<iomanip> using namespace std; double ot = 0; double getHoursWorked(); double getPayRate(); …

Software Development c++
Member Avatar for Justin9825
0
208
Member Avatar for clair0917

I'm just learning VB with the 2008 express edition. I'm trying to create a program that uses 3 list boxes. The first contains a list of products. After a search is preformed the second list box displays the products found. This is pretty simple, basic array stuff. My problem is …

Software Development vb.net
Member Avatar for clair0917
0
137
Member Avatar for Tirian

Hey. I was wondering if anyone here could help me with a little problem I'm having. I'm trying to create a "source-to-source" compiler, but I really can't figure it out. Everyone has told me to "Use Yacc/Lex " (or various variants of them), but I really don't understand how they're …

Software Development c++
Member Avatar for Tirian
0
119
Member Avatar for e30rapidic

write a program that reads in a list of names and stores them in [I]vector<person>. [/I]Then ask the name of the best friend for each person in the list. For each best friend, locate the Person object matching the best friend and call a [I]setBestFriend(Person* newBestFriend) [/I]memeber function to update …

Software Development c++
Member Avatar for abhimanipal
0
730
Member Avatar for martinjcloud

Hello, could someone help me create a program that will take in separate strings from a user and then output it all on one line in random order? This is what i have so far: [CODE] #include <stdio.h> #include <string.h> #include <stdlib.h> int compareStrings(const void *pStr1, const void *pStr2) { …

Software Development c
Member Avatar for jephthah
0
130
Member Avatar for kizilelma

when you enter a,b,c,d,e numbers by keyword COUNTING A. Sum of numbers B. Multiply numbers C. Greatest number D. descending of numbers PRINTING ON SCREEN A- Sum of numbers B- Sum of multiplication C- The greatest number D- descenging of numbers [CODE]using System; class Program { static void Main(string[] args) …

Software Development c#
Member Avatar for Szpilona
0
121
Member Avatar for jaredleo999

Basically When i click b1 in the Pincode method i want the Balance(); method to run and display a JButton "2" but i want to clear the frame and panel first, so it looks as if its a new frame... Any help is much appreciated thanks! :) [CODE]import java.awt.*; import …

Software Development java java-swing
Member Avatar for BestJewSinceJC
0
4K
Member Avatar for samuel17

Hi all, What i could really use help on is the Revellos project. For anyone who might possibly have the "Microsoft Visual Basic 2008 Reloaded" book this is on page 579. This is what the page says: "Revellos has store located in several states. The sales manager has asked you …

Software Development microsoft-access vb.net visual-basic
Member Avatar for samuel17
0
235
Member Avatar for yigster

[CODE] #include <cstdlib> #include <iostream> #include <cmath> #define width 5 using namespace std; void SelectionSort(double array[][5], int height); int main() { int height; int i,j,lab,midterm,final,number; float avglab,avgmid,avgfinal,totallab,totalmid,totalfinal; cout<<"Number of students: "; cin>>height; cout<<"\n"; double array[height][5]; for(i=0;i<height;i++) { cout<<"Please enter student number: "; cin>>number; array[i][0]=number; } cout<<"\n"; cout<<"Please enter Lab scores.\n"; …

Software Development c c# c++
Member Avatar for yigster
0
262
Member Avatar for sophie.c

Hi there, I write a code using socket to realize multiple message exchanges between a client and a server (i.e., a protocol running between A and B). But when I use recv() on a client to receive a message from a server, it turned out that the returned receive size …

Software Development c++ client-server
Member Avatar for sophie.c
0
5K
Member Avatar for Crow13

Hello again, hope you guys can help me again ^^ Will make text red where need help. Sry its long... Ok, so(sorry if some things are in a diffirent language in there), the assigment is: to make a program using a Horoscope structure [CODE]struct Horoscops{ string name; int dzim[2]; string …

Software Development c++
Member Avatar for Crow13
0
207
Member Avatar for fpg5

Got a test coming up and I need some help understanding arrays....Below is the code I wrote to match the question which follows underneath that... [CODE]class Student{ String id;//this student's ID int midScore;//this student's midterm score int finalScore;//this student's final score public Student(String id){ this.id = id; } public void …

Software Development java
Member Avatar for moutanna
0
109
Member Avatar for TechSupportGeek

Hello world of DaniWeb, I've asked a similar question to this one before but now I'm trying to find an answer to a different problem. You see, I have made a text editing application and, as you might have guessed yourself, I needed to add save features. Well, what I …

Software Development vb.net
Member Avatar for TechSupportGeek
0
176
Member Avatar for Expora

Ok I've posted a couple of posts before regarding OpenGL stuff, but I realized I'll be better off learning c++ first (yeah!). So I started reading through some tutorials and already got the hang of if statements, variables, funcitons, and loops. So I decided that I could make a little …

Software Development c++ opengl
Member Avatar for Expora
0
115
Member Avatar for Anigmalee

I'm a Electrical engineer working in an automation company, recently i'm require to do a PC base HMI. So i decide to use VB to do it(I'm a newbie in VB, just learn/use VB6 in Uni). So far, Im able to read/write to the PLC through serial port. There problem …

Software Development vb.net
Member Avatar for Alexpap
0
156
Member Avatar for cyon

Can someone help me resolve the following error or point me in the right direction? An incomplete value is returned if ' is in the list value. Thanks for any help. [CODE] def FindName(self,name,list1): """ searches for a patten in the list, returns the complete list entry. Is case sensitive. …

Software Development python
Member Avatar for d5e5
0
161
Member Avatar for santosh12345

when to use Interface and when to use abstract class? please suggest

Software Development
Member Avatar for JuhaW
0
81
Member Avatar for DaveTran

Here is my class with integer and string variables [CODE] class foo { int age; string name; } [/CODE] How do I create an IComparer that takes in foo as a class without the need for casting from an object? [CODE] class SortAgeAscendingHelper : IComparer { int IComparer.Compare(object a, object …

Software Development
Member Avatar for apegram
0
984
Member Avatar for Turismosan

Hello to everyone! I am new to c# and I am creating an address book program. It has to hold 20 entries (first name, last name, street address, city, state and zip). I am trying to figure out how to set up the arrays so that I can add entries, …

Software Development
Member Avatar for PierlucSS
0
149
Member Avatar for SasseMan

Hi! I'm having some problems with gridbaglayout trying to get functionality that maybe isn't even there. The problem is the following I have 3 Jpanels with differend contents. I want panel 1 to be displayed to the left of the screen filling the y-axis, panel 2 in the middle filling …

Software Development java
Member Avatar for SasseMan
0
7K
Member Avatar for codename.heaven

hi all. im sorry if i ask a newbie question, but i really newbie in c++ honestly. i got this error when i try to build solution. i dont know what files i must show to you, but i want to show 3 files. precompiled.h halls_of_lightning.h boss_loken.cpp precompiled.h [CODE=h]#ifndef SC_PRECOMPILED_H …

Software Development c++
Member Avatar for dusktreader
0
1K

The End.