199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for duuguu

Hello everyone. I'm beginner and i trying to make time register system. But i can't insert my datetime to my database.Here's the code that i wrote [code] private void button1_Click(object sender, EventArgs e) { string dt; string dt2; DateTime date = DateTime.Now; DateTime date2 = DateTime.Now; dt = date.ToLongTimeString(); // …

Member Avatar for finito
0
196
Member Avatar for aleX_X

Keeping getting into errors in my code...this looks to be the wierdest so far... [CODE]class bug: public living{ protected: bool ate; int energy; public: virtual void moveToFood(point hunter, point food); bool eatIt(point hunter, point food){ int hx, hy, fx, fy; hx=hunter.getx(); hy=hunter.gety(); fx=food.getx(); fy=food.gety(); if((hy==fy)&&(hx==fx)) ate=true; else ate=false; return ate; …

Member Avatar for daviddoria
0
431
Member Avatar for yayaza

Read number(N)keyed in by user Set factorial to 1 While N is not equal to 0 Set factorial=factorial*N Set N= N-1 End While Display factorial

Member Avatar for finito
0
116
Member Avatar for zigana91

I'm working on trying to fix the errors that I have in my coding. The first error I am having is with the import lines i.e., import dot java dot text dot asterisk semicolon The message I am getting is <identifier> expected. What do they mean? I am very new …

Member Avatar for naziatarannum
0
98
Member Avatar for leowasif

hi, i have Ms Access database having three fields ID username password and i want to make form that update them, my table name is studentLoginData [CODE] MessageBox.Show("the password is matched"); String conString = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=C:\\Documents and Settings\\Wasif\\My Documents\\studentLogin.mdb"; SqlConnection objConn = new SqlConnection(conString); try { objConn.Open(); } …

Member Avatar for Orion2k
0
283
Member Avatar for PythonNoob

Hi people I need help solving the following problems. Any help will be greatly appreciated: 1. Create a simple python application that displays a list of movie titles that match a set of terms, which is given in a text file called "input.txt". The content input.txt must be: Harry Potter …

Member Avatar for PythonNoob
0
173
Member Avatar for karanits

Well . this is fairly a simple question. Lets say i have a registration form, some user has registered and i have the details in my database. Now i can use the same form for letting the user edit his profile. I can prefill the textboxes by giving the following …

Member Avatar for karanits
0
135
Member Avatar for rohan1020

Hello.. I am an intermediate c++ programmer and currently using Visual C++. I want to write a program which could receive real-time information from the currently running applications and process that information to perform its respective task. for example: How can I receive the characters written on the title bar …

Member Avatar for Aranarth
0
105
Member Avatar for Funsize

I am making a simple unit converter, and wanted the user to specify the number of decimal places to be displayed for the results. The user selects which conversion they want to perform from another combo box, and I have a select case to decide the calculation needed. Eg. [code]Select …

Member Avatar for Funsize
0
282
Member Avatar for timb89

i am trying to read the following information: [CODE]Carlingford,Epping,3 Epping,Marsfield,6.5 Marsfield,North Ryde,2.4 North Ryde,Epping,5 Carlingford,North Ryde, 3.5 Carlingford,Marsfield, 4.7 North Rocks,Epping,4.8 Carlingford,North Rocks,2.4 North Ryde,Ryde,2.1 [/CODE] so i will be able to store the information into a 2 strings and a float (obviously excluding the comma. eg: string station1 = …

Member Avatar for timb89
0
122
Member Avatar for gymangel812

I'm trying to create a class that provides object serialization and deserialization methods for use by another class. These two methods (I think) are in the class already (see code below). I'm not sure how I would go about making those 2 methods their own class and then returning the …

Member Avatar for JamesCherrill
0
109
Member Avatar for smd5049

Hello, I am still pretty new to asp.net. I have a gridview bound to sql data and a footer that displays the summary info(totals of each column). The footer is populated in the Gridview.rowdatabound event. In my Gridview I am using template items with some columns consisting of textboxes to …

Member Avatar for reach_yousuf
0
566
Member Avatar for kesh1000

hi everyone i had been working on a project using random files (.dat) and now i want to change it to use a database instead. the thing is my project is quite long and it would be a hassle to go and change code. i had used hash tables to …

Member Avatar for kesh1000
0
943
Member Avatar for thabotharshan

i am a student i am doing a jsp project for my J2EE module.I choose a auction web site 4 my project. I have a doubt Can I use the java beans into a Servlet.I uses the Beans into my Jsp Page by using USEBEAN but how can i use …

Member Avatar for peter_budo
0
117
Member Avatar for Stefano Mtangoo

I want to use JDBC with apache's pooling library. I can't find easy tutorial/example to follow. Please help me get it up and running. I have it downloaded and I watch at it puzzled :)

Member Avatar for Stefano Mtangoo
0
93
Member Avatar for Virux

[code] public class A { String username = "Unknown"; public A() { username = "Virux"; B.method(); } } public class B extends A { public void method() { System.out.println(super.username); } } [/code] Obviously my actual code is much more complex than this. But how can I get B to see …

Member Avatar for javaAddict
0
114
Member Avatar for nageshkore

// File : Suitors.h #ifndef SUITORSLIST_H #define SUITORSLIST_H #include <iostream> using std::cout; using std::endl; class SuitorsList { private: struct ListNode { int value; ListNode * next; }; ListNode * head; public: SuitorsList() { head = NULL; } void appendNode(int num); void deleteNode(int num); void displayList() const; }; #endif; // File …

Member Avatar for griswolf
0
118
Member Avatar for paycity

Hello daniweb members, How can I use gtkmm with MinGW (g++) without MSYS? Here is the story of my problem: I installed MinGW offline with all required packages (full install). I installed Apache Server and I copied all .tar.gz files and I created a website called sourceforge.org [localhost] and I …

Member Avatar for paycity
0
481
Member Avatar for Cap'nKirk

Hi, I have a little issue that I need some light shed on please. I have 2 forms; StartUp and MainForm. When the application starts with the StartUp form the forms load section check to see if a file exists, if it does, it closes and opens the MainForm using …

Member Avatar for Cap'nKirk
0
3K
Member Avatar for leowasif

i write following code to update database but every time i got update syntax error is anyone help me to .. [CODE]MessageBox.Show("the password is matched"); String conString = "Provider=Microsoft.Jet.OLEDB.4.0;" + "Data Source=C:\\Documents and Settings\\Wasif\\My Documents\\studentLogin.mdb"; OleDbConnection empConnection = new OleDbConnection(conString); String insertStatment = "UPDATE StudentLoginData Set ID='" + this.txt_id.Text + …

Member Avatar for kvprajapati
0
163
Member Avatar for Turtle85

I really need help in trying to understand what the "dat:table" is in this procedure, and how to translate it to Java. procedure Taylor(var dat: table ; cd: integer; h: real); begin for i:=2 to cd + 1 do begin dat[i,1] := dat[i,1] + (i-1)*h; x := dat[i-1,1]; y := …

Member Avatar for FlamingClaw
0
99
Member Avatar for drt_t1gg3r

I am building a text adventure and hit a snag. I have classes PERSON, PLAYER, COP, & ENEMY. Now PERSON is the main class, and PLAYER, COP, and ENEMY are all sub classes of PERSON all of the function prototypes and definitions work except (2). [CODE]public: WEAPON* GetWeapon(); void SetWeapon(WEAPON …

Member Avatar for VernonDozier
0
214
Member Avatar for lightning18

i currently have this piece of code i need to create a dictionary that prints the incorrect word and the line number where it is incorrect. words [] # is my txt file text1 [] # is my list of incorrect words i am new to programming and dont know …

Member Avatar for lightning18
0
80
Member Avatar for macca21

I need this program to buy and sell items from a list. the list needs to display similar to below and have a menu for user to select options from: ID No. Name Price Stock 1 Apples $2.50 4 Choice: Buy - 1 Sell - 2 Quit - 0 *Needs …

Member Avatar for macca21
0
97
Member Avatar for sarfrazashfaq

Hi there I have following XML document that i want to read in python code. i know how to read, thing is i want to make hash/list from this XML document. <?xml version="1.0" ?> ‐<TradeExt> ‐ <fxall category="buyer" version="2.0"> ‐<tradeHeader> <sourceId>test_sourceId1</sourceId> <pmsId>4521363.0.0</pmsId> <fundId>ACCT1@TESTCUST</fundId> </tradeHeader> ‐ <tradeStatus> <dealImmediately>F</dealImmediately> <blockImmediately>F</blockImmediately> </tradeStatus> ‐ …

Member Avatar for ultimatebuster
0
357
Member Avatar for Zcool31

Hey all! I'm writing a simple fluid game in C++, and I've come across a strange issue. I allocate a whole bunch of arrays of float for use in simulations. During the course of the program, nothing goes wrong. But when I try to delete the arrays, I get a …

Member Avatar for Zcool31
0
3K
Member Avatar for lotrsimp12345

how would you do that? Language similar to LISP I don't think you can use cons twice. really stuck. maybe (define a '('()))

Member Avatar for davibq
0
61
Member Avatar for lotrsimp12345

I can write the recursion version correctly need help with writing a do loop in DrScheme. After the do loop the variable x is sent to car L intially and then is updated to first element of everything but first element in list. [CODE] (define (sumiteration L) (do ((x (car …

Member Avatar for davibq
0
106
Member Avatar for JOSheaIV

Okay so this one should seem easy enough but I can't get past 1 issue I am having. Pretty much what ever is in the the listBox is stored in an array, but also in a text file (for loading and saving). The only issue is that I can't seem …

Member Avatar for JOSheaIV
0
178
Member Avatar for ceyesuma

Hello When I login as instructor data from db is put into the model (Instructor.java) because the instrutorBean extends the model Intructor.java Is this copy(object sourc, object dest) doing anything? I would like to be able to have several people logged in at the same time is this possible? [code] …

Member Avatar for ceyesuma
0
135
Member Avatar for doolsta111

Hi Guys, Here's the situation that im stuck in. I have 2 Header files which cannot be changed named bintree and bindnode. These define tree structure, aswell as several other functions eg inserting node, printing node etc I have 2 Classes. 1 Class is : [CODE]class mazePoint {int x; char …

Member Avatar for doolsta111
0
109
Member Avatar for Onisutra

I'm having this issue displaying the results I need. The issue is that I cannot condense my results and end up with extra. The code I currently have is below. [CODE] SELECT category.*, content.* FROM `category` LEFT JOIN `content` ON category.categoryid = content.parentid WHERE category.parentid = 1 ORDER BY category.title …

Member Avatar for Onisutra
0
98
Member Avatar for krokodajl

Hi Everyone. I have problems with solving a sql question. There is an assumption: The database of naval ships that took part in World War II is under consideration. The database has the following relations: Classes(class, type, country, numGuns, bore, displacement) Ships(name, class, launched) Battles(name, date) Outcomes(ship, battle, result) Ships …

Member Avatar for MehranNZ
0
732
Member Avatar for fellixombc

Everything else works fine, but for some reason, it only receives once. (note, the recv function starts at line 49) function is at code: [CODE=C++]/* * File: Bot.cpp * Author: fellixombc * * Created on May 20, 2010, 6:25 PM */ #include "bot.h" /** Constructs the Bot * @param set …

Member Avatar for fellixombc
0
139
Member Avatar for EddieC

One might have titled this story "Beware of government bearing gifts." We should be exceedingly wary whenever law makers begin dabbling with something that's been working exceedingly well for decades. Today that thing is the Internet, perhaps the least-regulated industry in the U.S. today. This week the U.S. Federal Communications …

Member Avatar for Usernamex235
0
244
Member Avatar for albanosali

To write a C language program that implements the main functions of maintenance of student information. To maintain student information must be used on a list of njedrejtimore. Each node of the list will be used to store the data of only one student: Name, Student No, average. Your program …

Member Avatar for tkud
0
87
Member Avatar for james85

i have a problem when i use: [code] do { printf("press only A to continue):\n"); x=getchar(); }while(x!='A'); [/code] if i press anything the program prints me the message multiple times

Member Avatar for Aia
0
149
Member Avatar for paulscode

Anyone out there good with 3D math? Unfortunately, I am definitely not. I need a formula to calculate pan, a value between -1 and 1. -1 is full sound on left speaker 0 is equal sound on both speakers 1 is full sound on right speaker Given values are: The …

Member Avatar for spinzero
0
466
Member Avatar for benk1

Hi Guys I wrote a little web app to integrate with an SQLite database. When the database is on a local PC, there is no problem connecting to it as in: [CODE]$connect = new PDO("sqlite:\path\to\database.db");[/CODE] Now I've been asked if I can adapt it to connect to a linux device …

Member Avatar for digital-ether
0
854
Member Avatar for GökhanBarış

Hi everyone, I used to create shortcuts with IWshRuntimeLibrary in C#, but now i am trying to create in java, which i couldn't found via googling. Can anyone show me the shortcut path of wisdom and illumination? :)

Member Avatar for necman
0
777
Member Avatar for Anigmalee

Is there a event detect change of Listview item count? Like it will be trigger whenever i add an item or delete an item form listview. I search on MSDN Listview Event member, but cant c any usefull. Any help would be please:) Thanks

Member Avatar for Anigmalee
0
208
Member Avatar for bmcconkie

Can someone tell me how to concatonate 2 files together in PHP> The UNIX equivalent is: cat file1.txt >> file2.txt

Member Avatar for digital-ether
0
111
Member Avatar for oracle123

Hi all, I am using the following function which I found online to trim the leading and trailing whitespaces from a passed in string. It works fine for all the cases but I am having trouble in understanding the process being a newbie to C world. [CODE]char *trim (char *str) …

Member Avatar for Aia
0
749
Member Avatar for cableguy31

I'm trying to write a script that will go to a host and list all of its shares. So far, in my searching, it seems that I need to include a top level share name. For example: [CODE]os.listdir('\\\\1.2.3.4\')[/CODE] doesn't seem to work, but [CODE]os.listdir('\\\\1.2.3.4\\share\')[/CODE] will work. As a bit of …

Member Avatar for TrustyTony
0
403
Member Avatar for bschmitt78

Hello, I am writing a web app with an interface to query a MySQL database. The interface has a drop down list of 8 tables to choose from. The first action the user will take is to choose a table and click a "display table" button. After the user sees …

Member Avatar for bschmitt78
0
89
Member Avatar for George2

Hello everyone, My application needs a feature to detect whether a directed graph contains circle. Does anyone know any efficient implementation? Which implementation is the best (most efficient)? thanks in advance & happy new year, George

Member Avatar for mayne
0
569
Member Avatar for kavourdoukos

How can i make sscanf() skip all whitespace characters?I read from a file and i dont know where are the characters. eg.->@Solomon Islands ,i need "Solomon Islands" in one string e.g->AGAF (AFT) – Afutara Airport – Afutara ,i need "Afutara Airport" in one string.

Member Avatar for Narue
0
7K
Member Avatar for TotoTitus

Hello everyone, I need some advice. I have been given an assignment to construct some kind of chat application which uses push technology (In C#, so i have socket objects and all that) Reading on the internet, i came to know that push technology means in essence, that not the …

Member Avatar for Diamonddrake
0
935
Member Avatar for javedkhan0258

I want to know how to read from a file. I have posted the first line of program.dat file before. There are more than one line in the file and i want to tokenize them and save them into different variables or pointers. Can anyone write full code how to …

Member Avatar for Aia
0
470
Member Avatar for dflatt

hi i'm trying to write a program that compares and manipulates certain characters from a string. heres the bit i'm having trouble with. [CODE] char c; if(c <= a && c >= x)//obvious error //do something [/CODE] is there anyway i can get this to check if 'char c' lies …

Member Avatar for dflatt
0
129

The End.