199,113 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for millroy

hi is there any way in java programming to make a compass which shows directions if please tell me how to get the coordination of lattitude so that the needle of the compass can point to the appropriate direction with respect to these values

Member Avatar for JGorard159
0
191
Member Avatar for vinnitro

I new to java's applet programming & there is a problem in my program This is my program: import javax.swing.*; import java.awt.*; import java.awt.event.*; /*<applet code=Rect height=600 width=800></applet>*/ public class Rect extends JApplet implements ActionListener { JLabel jl1,jl2,jl3,jl4; JTextField jt1,jt2,jt3,jt4; JButton jb; int x1,x2,y1,y2; public void init() { Container c=getContentPane(); …

Member Avatar for vinnitro
0
205
Member Avatar for bobbysony

I am looking for a way to give each user in my VB program privileges. So for example admin would be able to add and edit staff records while a normal user could not. this would all be based on a login for each user (and yes its a database …

Member Avatar for JGorard159
0
153
Member Avatar for StateUnknown

Hey guys. I'm new to this vb.net programing, and was trying to build an Email-client where you can change the SMTP server, adress and password and then it saves it to a config. But my problem is right now that, the textbox wont accept any inputs. So if anyone could …

Member Avatar for StateUnknown
0
104
Member Avatar for vinnitro

I am not getting this program since i beginner to applet programming import javax.swing.*; import java.awt.*; import java.awt.event.*; /*<applet code=Login height=500 width=300></applet>*/ public class Login extends JApplet implements ActionListener { JLabel jl1,jl2,jl3,jl4,jl5; JTextField jt; JPasswordField jp1,jp2; JButton jb; public void init() { Container c=getContentPane(); c.setLayout(new FlowLayout()); jl1=new JLabel("Username : "); …

Member Avatar for vinnitro
0
5K
Member Avatar for abc_123abc

hi all.. i have the option to save the contents of the listview that was saved into text file. now i would like to load the text file into datagridview in vb.net but i have no idea how to do it as this is my first time in doing it …

Member Avatar for Begginnerdev
0
3K
Member Avatar for IcyFire

I have to write a program that does BFS traversal. My code is mostly correct but i have an error somewhere. it prints repeated numbers in some cases and it's not supposed to. i'm not sure exactly what the problem is. I really hope someone will be able to help …

0
163
Member Avatar for SCass2010

Hi everyone, I'm currently trying to do a bit of java programming after not looking near it for almost a year. Most of what I've been doing has been C/C++, and I was just wondering - in C++ you could have a header file with functions only in it, say …

Member Avatar for SCass2010
0
442
Member Avatar for desijoker

hey guys .i am trying to write a lc3 assembly language program that takes two input numbers and prints out "x * y = z". i can get it to work for numbers 0-9 however any numbers above that i get weird letters or symbols. ^^ Also how i can …

Member Avatar for TrustyTony
0
3K
Member Avatar for thanadaray

I am trying to update into table if score > 0 but nothing display into table. if score > 0: note = "more" update = "UPDATE Sentence SET Note = %s WHERE score = %s" c.execute(update, (note[0], score)) Did I miss something?

Member Avatar for thanadaray
0
84
Member Avatar for thanadaray
Member Avatar for Nicky1224

Hi there im in need of a java project that takes in a memo of string letters and persons name and String letteranswers to 10 multiple choice questions and compare the memo with each students answers and disply the students name and how many letters he/she got correct without using …

Member Avatar for Ezzaral
0
90
Member Avatar for honeybee2090

how to filter textbox text? i use this code to copy webbrowser text in textbox3 TextBox3.Text = WebBrowser1.Document.Body.InnerText it show all text in textbox like this crypo.freeforums.org Advanced search Board index ‹ Socks Change font size E-mail friendPrint view User Control Panel (0 new messages) • View your posts Arcade …

Member Avatar for thines01
0
417
Member Avatar for thanadaray

import MySQLdb import csv import sys db = MySQLdb.connect("host","username","password","dbname" ) c = db.cursor() select_pos_score = 'SELECT score FROM Sentence' c.execute(select_pos_score) I use MySQLdb. I want to display all score that are selected from table "Sentence" but I do not know how to display it. Any suggest for me to display …

Member Avatar for thanadaray
0
95
Member Avatar for kumaresen

i have a error in this program...i m tryin to write a java GUI program that converts character to corresponding integer and vice versa...tis is my code...can anyone help me solve the error???the error is : 1 error found: File: C:\Users\Kumaresen Nair\Desktop\Conversion.java [line: 58] Error: The local variable word may …

Member Avatar for NormR1
0
243
Member Avatar for triumphost

I'm trying to convert My Console classes to .Net classes because I can't use std::vector or anything like that in WindowsFormsApplications. So I decided to convert all Vectors to Lists and I thought that the classes work the same but my code below throws a massive amount of errors and …

Member Avatar for triumphost
0
186
Member Avatar for swink

Write a simple SMTP server that is able to establish an SMTP connection with the client and receive the email sent. The SMTP server should reply the client with the appropriate reply code based on the following SMTP commands. Command Reply Code DATA 354 HELO 250 MAIL FROM 250 QUIT …

Member Avatar for NormR1
0
90
Member Avatar for hypernova

Hi all!! See the following code: #include <stdio.h> int main() { union a { int i; char ch[2]; }; union a u; u.ch[0]=1; u.ch[1]=0; printf("%d %d %d\n",u.ch[0],u.ch[1],u.i); getch(); return 0; } The output that I get is: 1 0 2130509825 Why am I getting this number? What I think the …

Member Avatar for hypernova
0
261
Member Avatar for davy_yg

I basically trying to capture the input information then print the on the screen. Noted, that I must implement filter input and escape output. Please checked whether this result is correct: receive.php <html> <?php $nama = isset($_POST['nama']) ? $_POST ['nama'] : ''; $color = isset($_POST['color']) ? $_POST ['color'] : ''; …

Member Avatar for pritaeas
0
199
Member Avatar for Johannady2

After setting the time where it should start, you enter "y".. the timer will start.. It's supposed to stop whenever you want it to by pressing "n" but I don't know how.. The only way I know how to get it to ask for "y" or "n" again is to …

Member Avatar for JamesCherrill
0
413
Member Avatar for rony.united7

Can anyone help me with how to work on Eclipse C++ IDE? I need a clear set of instructions on how to connect server and database as well as how to compile and run standalone codes?

Member Avatar for DeanMSands3
0
164
Member Avatar for Nsie

Hi, I'm passing through hard times in d hands of this. I have created my database and i'm having issues replacing the content of my database table with the values i.v posted from my form. Please someone shld help Moi.

Member Avatar for drjohn
0
153
Member Avatar for breakzzzz20

i have encounter problem on my java file,i can't find the solution..just only one error.. here is the java file and it give me an error of error: "reached of end of file while parsing in line 137" can anyone help me please?thanks in advance.. import java.io.*; import java.util.*; public …

Member Avatar for behemothdave
0
439
Member Avatar for PF2G

Hi, Daniweb I'm working on a website where i did a search system and then i listed the results founded. And now i want to move them with JQuery Sortable. But i'm having dificults can someone help me please? Here's the code: <?php require_once('Connections/futura.php'); ?> <?PHP $prod=$_GET['q2']; $query_prod="SELECT * FROM …

Member Avatar for pritaeas
0
305
Member Avatar for noscimo

Hello ! I'm writing a program in C++ and I use a struct definition named Contact. In a function in my program that returns an item of type Contact,i face the problem below: Contact getContact(){ Contact c; //do things if(condition) //assign c else //c is not assigned return c; } …

Member Avatar for noscimo
0
279
Member Avatar for kjeu_kach

How to create code inputbox insert link url? same image [Click Here](https://lh4.googleusercontent.com/-OXkT7nmxWJM/T6pByj9zwNI/AAAAAAAAAE8/RzbL6VdoQI4/s575/inputbox%2520.png) Thanks all! Nice day.

Member Avatar for Szabi Zsoldos
0
198
Member Avatar for veledrom

Hi, I need to pass full content of `$_FILES` to third page but fail to do so. File is selected once in first page. It might look wierd but It has to work this way. If I use session `$_SESSION['csv_file'] = $_FILES;` in page 2, I cannot read the content …

Member Avatar for veledrom
0
259
Member Avatar for yongj

So let me start by saying that I am a complete beginner when coding in C++ windows/forms program. I was able to get my SQL database connection up with my program. I've ran some simple tests and it looks like my program is able to do simple queries such as …

Member Avatar for thines01
0
795
Member Avatar for sinnebril

Hi there! I have been searching on the forum and google, but I can't find a clear answer to my problem. What I can find is how to read data from a file, but not from specific cells in Excel. A small example of the [B]input[/B] Excel file: [CODE] An/gene …

Member Avatar for pk87
0
3K
Member Avatar for stereomatching

#ifndef EXAMPLE_HPP #define EXAMPLE_HPP #include <memory> #include <boost/gil/gil_all.hpp> #include <QtGui/QApplication> #include <QtGui/QHBoxLayout> #include <QtGui/QImage> #include <QtGui/QLabel> #include <QtGui/QWidget> //#include "image_details.hpp" static void x_gradient(boost::gil::gray8c_view_t const &src, boost::gil::gray8s_view_t const &dst) { for (int y = 0; y != src.height(); ++y) for (int x = 1; x != src.width() - 1; ++x) dst(x, …

Member Avatar for stereomatching
0
304
Member Avatar for kumarprashant

can anyone kindly help me in writing a program for creating an address book. Its kinda urgent and I ll be really grateful. program description: develop a program for an address book.single entry in an address book is called a contact, which can have any of the following fields, 1. …

Member Avatar for deceptikon
0
4K
Member Avatar for ayesha789

Whenever I tried to access Oracle DB from PHP , it shows error Everything is ok, Path is okay. I changed php.ini file to. I am using old version of xampp Warning: oci_connect() [function.oci-connect]: OCIEnvNlsCreate() failed. There is something wrong with your system - please check that PATH includes the …

Member Avatar for ayesha789
0
4K
Member Avatar for ippo

So I'm trying to make a lottery program which outputs up to 6 sets of 6 random numbers using only 2d arrays and arrays for my project. No arraylists are allowed. Here is what i have so far, but it's not running because I don't have a main file?. Someone …

Member Avatar for ippo
0
153
Member Avatar for ippo

Hi all, I'm new to java and here is my code. It runs, but the output is not what I wanted. This project allows the user to enter up to 6 lottery tickets and I have to generate random numbers 0-49. The number generate fine, but the number of tickets …

Member Avatar for JamesCherrill
0
1K
Member Avatar for veledrom

Hi, How can I read a file content without uploading it to the server? I know that we use `$handler = fopen('regular.csv', 'r');` to read an existing file on server but what if doesn't exist. Obviously `$_FILES` is used to move file to server first but I don't have any …

Member Avatar for veledrom
0
389
Member Avatar for The Blacklist

#include<stdio.h> #include<stdlib.h> struct student{ char *name; int number; }; struct class{ char *name; struct student *st_array; // pointer of array of students int size; // All students free places int current_size; // Occupied places }; struct student make_student(char name[100], int number){ struct student st; st.name = name; st.number = number; …

Member Avatar for TrustyTony
0
291
Member Avatar for soUPERMan

I have a calendar code that contains a table with the td for days of the month as follows: <td class="event"> <div class="eventList" title="Events For Today"> <ul> <li>Event 1</li> <li>Event 2</li> </ul> <br /> <a class="anEvent" href="#">[myDateHere]</a> </div> </td> *[myDate] refers to the day of the month... At the bottom …

Member Avatar for soUPERMan
0
155
Member Avatar for sammoto

I just started learning java a week ago, and I'm trying to make my first program - a simple grade calculator for a class I'm in - and I can't get it to compile for the life of me. I've finally gotten it down to one error ("Comp202Grader.java:60: variable letterGrade …

Member Avatar for jalpesh_007
0
131
Member Avatar for johndoe444

Here is the code copied from w3schools ([url]http://www.w3schools.com/ajax/tryit.asp?filename=tryajax_suggest):[/url] [CODE]<html> <head> <script type="text/javascript"> function showHint(str) { if (str.length==0) { document.getElementById("txtHint").innerHTML=""; return; } if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState == 4) { …

Member Avatar for bharathivkmani
0
12K
Member Avatar for murnesty

I want to convert string to unsigned short. Example "123" equal to number 123 or 0x7B. But i get an error while doing the convertion : "Error 9 Cannot implicitly convert type 'int' to 'ushort'. An explicit conversion exists (are you missing a cast?)" Here is my code: UInt16 usTest …

Member Avatar for Momerath
0
258
Member Avatar for Jake.20

Greetings everyone, I'm having a problem on displaying my picture on the image box. Instead it displays the picture on the image box, it opens a web page and displays it there. Here's the code conn = New SqlConnection("Server=Jeiku-shin-pc;Database=EnrollmentDB;Trusted_Connection=True") Dim cmd As SqlCommand = New SqlCommand( _ "SELECT * FROM …

Member Avatar for kvprajapati
0
164
Member Avatar for DaveyMoyes

Hi everyone, I have a script running on my page that uploads a new image. I am getting the information from the mysql ok, by using if (isset($_POST['var'])) { Once the vailidation is complete, at the moment I am using header("Location: url.php"); to reload the page to display the new …

Member Avatar for dschuett
0
771
Member Avatar for ravsau

Hi guys, I was supposed to create a program that simulates a haunted house. the output was supposed to be like: Welcome to the Haunted House! You are in: Front Foyer Possible directions are: North(N), East(E), West(W), Abandon(A) Where would you like to go? s Invalid Command You are in: …

Member Avatar for sciwizeh
0
754
Member Avatar for WH88

Hi, I was asked to create a program that converts a .csv (I converted it to a .txt format first) and I've put together a pretty basic one that reads the data in the text file and formats it into XML, then saves it as a .xml. By basic I …

Member Avatar for sciwizeh
0
319
Member Avatar for NunsBeachSurfer

Hi, I have a large array of values and would like to find a way to calculate the change in value for each period. I have been attempting to use a for command with an array to do this, but I have not been successful at all. The basic idea …

Member Avatar for NunsBeachSurfer
0
236
Member Avatar for itsmrshow

Hello all, i really need help with this program, i am a brand new assembly learner/ noob, i need help with a program that ( promts the user to enter a number between 1-10, then when the user enters a number, if it is less then 5 display message1, if …

Member Avatar for itsmrshow
0
143
Member Avatar for chixm8_49

Good day! I would like to ask on how to transfer the contents of JTable to mySQL database. I have seen a lot of codes of putting contents to JTable from database but I need to know the other way around. ^^" I do not have any idea on how …

Member Avatar for sciwizeh
0
486
Member Avatar for meme meme

please help meeee write a program for a local bank to manage their accounts. the bank offers two account types,saving and checking,each customer must maintain a minimum balance, if the customer`s balance falls below the minimum ,ther is a service charge 10 aed for saving and 25AED for checking. the …

Member Avatar for paradise11
0
173
Member Avatar for beforetheyknew

Hi guys, I'm quite unsure of what i'm doing here and could use some guidance. I've searched but haven't found any links that were focused enough. My objective is to connect my application to a database for the first time. I've never done this before so it's essentially a learning …

Member Avatar for wen_cai
0
232
Member Avatar for nthabiJacq

Please help with writing a loop for the program that must display/print every prefect number from 1 through 1000

Member Avatar for lxXTaCoXxl
0
228

The End.