199,114 Archived Topics
Remove Filter ![]() | |
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(); // … | |
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; … | |
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 | |
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 … | |
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(); } … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 = … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 :) | |
[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 … | |
// 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 … | |
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 … | |
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 … | |
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 + … | |
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 := … | |
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 … | |
![]() | 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 … ![]() |
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 … | |
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> ‐ … | |
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 … | |
how would you do that? Language similar to LISP I don't think you can use cons twice. really stuck. maybe (define a '('())) | |
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 … | |
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 … | |
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] … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 | |
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 … | |
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 … | |
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? :) | |
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 | |
Can someone tell me how to concatonate 2 files together in PHP> The UNIX equivalent is: cat file1.txt >> file2.txt | |
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) … | |
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 … | |
![]() | 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 … ![]() |
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 | |
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. | |
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 … | |
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 … | |
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 … |
The End.