199,113 Archived Topics
Remove Filter ![]() | |
Help me.....i'm tryin to figure out how to link to another java class using a button but i falied to do so...kindly assist me....thanks [CODE] public Login() { setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setSize(400,400); java.awt.Container contents = getContentPane(); contents.setLayout(null); setTitle("Air-Malaysia"); contents.setLayout(null ); contents.setBackground(Color.black); contents.setForeground(Color.orange); am.setFont(f1); usrnm.setFont(f2); clk.setFont(f2); clk.setBackground(Color.black); clk.setForeground(Color.orange); btnOk.setBackground(Color.black); btnOk.setForeground(Color.orange); btnCancel.setBackground(Color.black); btnCancel.setForeground(Color.orange); usrnm.setForeground(Color.orange); … | |
Is there a short way to determine how many digits are in an integer? I'm new to C++, and writing a program that's supposed to a number in one column, and its square in the next. I'm using setw to manipulate the width of the coulms. Here is those code: … | |
heyy... i need to knw how to update many values from one submit. problem is i have 10 fields and every text field has same table field value.assume that my 10 fields have 10 quantity values. i need to update quantity field by all 10 fields. like this ; 10 … | |
Hi All. Wondering if someone can assist me with this code im trying to write. I have to make a small calculation with random variables but the problem i run into is that i have to pass the calculated variable back to the main method and display it that way. … | |
Hi, I have a parent and child form, with the child form connected to the parent form by the parent_id. The forms are on different pages, and i am trying to pass the id of the parent form to the child form using session variables. What ive done (with no … | |
Hi Recently I finished a C++ course(used this book [url]http://www.amazon.com/Starting-Out-Early-Objects-6th/dp/0321512383[/url] ;whether its a decent book or not I have no clue). However it was just a one semester thing and well I found my teachers rather incompetent(they basically gave everything to us; horrible way to teach). Anyway I've been following … | |
Hi, I have developed a site that allows users to post details for others to view. Within this I have built a secure login process that uses cookies to help the user around the site. However, when using sites like facebook, I notice that I receive emails with links that … | |
Is there any tutorial for Ironpython and Winform out there that's good? A book that's free would be nice. Also if it involves sharpdevelop it would be pretty kickass. | |
I am reading a xml file and saving the data in array.But I am not able to use the array values later.I have declared everything as global. When I put an alert(myData[3]); I am getting "undefined".Please help. Below is my code: function modify_data(xml) { //alert("tyur"); $(xml).find('person').each(function(){ phone = $(this).find('phone').text(); email … | |
Hi friends, How do i calculate the week number of a year? The week number should be calculated from the first day of a year. For example, this year 1st January 2010 falled on Friday, so week 1 should be calculcated from Friday(01/01/2010) till Thursday (07/01/2010). therefore, given any date, … | |
If any one convert this code to ASP i ll be very thankfull. bec i donnt know ASP [CODE]<?php session_start(); include("config.php"); $trackid=$_POST['f']; // Find Path of Track $s1="select download_path from trackinfo where trackid='$trackid'"; $r1=mysql_query($s1) or die(mysql_error()); while($array=mysql_fetch_array($r1)) { $path=$array['download_path']; } $ship=$_POST['f1']; // Allow direct file download (hotlinking)? // Empty - … | |
i need help, i am making a web browser in vb 10 and i have a built in media player and i want to make a play list. i got it to work with a listbox but not anything else. For the menustrip [CODE] Private Sub PlaylistToolStripMenuItem_DropDownItemClicked(ByVal sender As System.Object, … | |
I am new to vb . Now i wan to create a standalone program to send datagrid data via email . izit any way to send the datagrid to email body ? below is my code. [CODE]Public Class Form1 Dim oLapp As Object Dim oItem As Object Private Sub Form1_Load(ByVal … | |
//************************************************************************************* // This program keeps track of speakers' bureau. // It displays a menu, where the user can add info, // view the info of another speaker that's already in there, // and etc. //************************************************************************************* #include "stdafx.h" #include <iostream> #include <iomanip> #include <cstdlib> using namespace std; //************************************************************************************** // this is … | |
I wonder whether there is a faster way (faster then the obvious one a=a*a) to square the content of a vector of floats. I remember that bit shifting could be used somehow, but I'm not sure whether this works for floats. Any suggestions on how to achieve this are welcome … | |
I read a lot of car classes on several sites and still can't get mine to work. Any ideas? [CODE]##Car class class Car: def __init__(self, y_model, make, speed): self.y_model = y_model self.make = make self.speed = speed def set_year_model(self, y_model): self.y_model = y_model def set_make(self, make): self.make = make def … | |
#include <stdio.h> void main() { printf("hi"); } ..................... #include <stdio.h> int main ( void) { printf("hi"); return 0; } .............. q1: What is the diff in two codes? q2: I am habitual of using code type 1 ( the first code), is it ok to follow that way? | |
My templated function look as follows: [code] template <typename MatTypeOne, typename MatTypeTwo> void funct(MatTypeOne& m1, MatTypeTwo& m2) { //here I would need to check whether m1 and m2 are of the same "type", //meaning that MatTypeOne is the same as MatTypeTwo } [/code] What is the way to check whether … | |
I am learning java, in i know in C, when we use: float and double ... the format is : %f for float %lf for double. in java i don't understand why we use double rather than float?? and the format for double is %f !!! [LIST=1] [*]Can some1 explain … | |
It's a program that works sort of like a lexical analyzer, but it's just supposed to pull any given data from a .txt file and display it. Nothing else. I'm not satisfied with the array I have so far. /**************************************************************** Array holding all keywords for checking. *****************************************************************/ char *keywords[]={"procedure","is","begin","end","var","cin","cout","if", "then","else","and","or","not","loop","exit","when", … | |
Please explain? | |
Hi, I'm trying to create multiple instances of a child form. This form has an event that feeds a string variable back to the parent so I'm declaring it with WithEvents which is declared outside of the Sub - meaning multiple clicks will not open multiple forms. Any idea on … | |
[CODE] #include <iostream> using namespace std; int main() { char a = 0, b = 1, ch1, ch2, ch3, ch4, chsum; float num1, num2, num3, sum, avg; cout<<"Enter Character 'a' or 'b': "; //asking user to enter character a or b cin>>ch1; if (ch1 == a) { cout<<"Enter three floating-point … | |
Not sure if many ppl here use navicat, but I am somewhat confused by the way data entries are handled through my page and how that interacts with my local db server and my remote db server. For example, at work I am sometimes working on cfm templates on my … | |
Hi guys, what is the deference between ASSERT macro and Exception handling in cpp | |
Hello everyone, i have a problem with calculating my ending time in php, here is the situation: i get five values, [LIST] [*]$startdate [*]$startmin [*]$starthour [*]$minute [*]$hour [/LIST] where $minute and $hour are the event duration times, now what i am trying to achieve is with these values set, i … | |
Hi, I'm kind of embarassed to be asking this since I should be able to figure this out by now, but I'm writing a program to sort a vector of objects alphabetically by a string member variable. Can someone help me figure out why the bubble sort below won't work? … | |
I have this richtextbox and displayed various text from .xml database. I need to format the text. For example when ever my vb code find string like 'the' in an .xml line it should display in italic as well as in blue color and so on for some other specific … | |
HI I am trying to write data to an access table from vb.net. The code all seems to run fine but no data is being sent to the db though! the code i have got is [code] Dim itemcount As Integer Dim MyCn As OleDbConnection Dim sql As String 'Dim … | |
[CODE] import java.util.*; public class PhoneDirec{ private int MAX=10; private String [] validNames={"Gary","Sam","John","Jude","Alyssa","Matt","Eric","Susie","Alics","Sara"}; PhoneDirec(){ //allocate memory to names validNames=new String[MAX]; }// accept 10 names //I suppose to enter 10 names public void accept(){ Scanner console = new Scanner(System.in); for(int n = 0;n< names.length;n++) names[n] = console.nextLine(); } /*I also to … | |
All, I'm having issues running a simple java program on the linux command line. When I run: java -server -cp ./mysql-connector-java-5.1.12/mysql-connector-java-5.1.12-bin.jar -jar PaymentProcessor.jar I get `"java.sql.SQLException: No suitable driver found for jdbc:mysql://localhost/pmtdb"` When I run this command (which works on the windows command line) java -server -classpath ./classes;./mysql-connector-java-5.1.12/mysql-connector-java-5.1.12-bin.jar paymentprocessor.PaymentProcessorServer I … | |
example output: Meter number is: 124123ABC231 "what should i use to define something like that.... TurboC newbie here... | |
I wanted to know if there is such a way to declare a variable at runtime or create a dynamic variable. I've done this in Python, but I didn't know if C++ allows this. Maybe I'm not explaining it that well so I will give an example. Say I have … | |
![]() | Hi, I tried an example on [url]http://www.captain.at/howto-ajax-form-post-request.php[/url] for sending a POST form. When I run the example on that specific page, everything works well. Also in Wireshark I see the POST packet passing by. But I'm getting errors when I copy the code to a local html file, and try … |
i want to get records from msaccess when the pin number start from 'twt000'. I am using one variable name is pinnumber to store the value. [CODE]String pinnumber='twt000'[/CODE] how to fetch records from msaccess database.[CODE]pst=con2.prepareStatement("Select * from pin_numbers where pin_number like '?*'"); pst.setString(1,pin); rs2=pst.executeQuery();[/CODE] Please any one help me. | |
Hi! I have used the os.walk function to traverse the many files in the directory. Now the problem is that it is listing same words from different files as different keys. How should I go about it? | |
Hello Everyone, Could you please tell me why my dropdown not firing selectindexchange event. I have dynamic load that dropdown box using dataset. My problem this I have two dropdown boxes now I have load Brand Information in first one and when I select the brand all printers info load … | |
Hey guys, wondering if you could help me with these two bits of code. What I'm trying to do is count how many clicks a link has been clicked, then when it has been clicked x amount of times, it echos 'test' Now the code below does that, but I've … | |
i made a vector class "MyVector" inherited from a base class "arrayList" which is derived from a base class linearlist. whenever i compile i get a fatal error: [COLOR="Red"]LINK : fatal error LNK1561: entry point must be defined[/COLOR] [CODE]// abstract class linearList // abstract data type specification for linear list … | |
Hi all, im trying to run so many codes using java RMI and nothing seems to work. im on the point of banging my head on the PC. Im sure evryone is aware of the popular Calculator example: Calcuator.java, CalcuatorImpl.java, CalcuatorClient.java and CalcuatorServer.java. I hae done this and other examples … | |
Help me to build this program by using Turbo C++, thank you; User will enter car type and package of car based on the following; ------------------------------- TYPE...PACKAGE..PRICE.........TAX _______________________________ CAR1.......a............24000.........150% .................b............28000.........150% _______________________________ CAR2........c............35000.........200% .................d............37000.........200% .................e............41000.........200% ------------------------------- This program will calculate new price for the type of cars after being taxed. This … | |
[CODE] /* This program would use console/GUI,*/ /* It should 1 adding of object 2 display of object 3 updating of object 4 deleting of object */ import java.util.*; public class EmployeeList{ private int [] Age; private String [] EmpfirstName; private String [] Emplast; private String [] Adrss; static Scanner … | |
i'm new to c# so i don't know how to use a for loop to increment my nums. num[i] apparently doesn't work in c# [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { int num1; int num2; int num3; int … | |
I've got a simple struct. [CODE] struct Data { public float Size; public Data(float size) { Size = size; } } [/CODE] If I create an array of the struct above, the array does not initialise each element to null. How can I change this? | |
pls help me to solve my problem. here's my code [CODE]import java.io.*; public class ifelse { public static void main(String[] args) throws IOException{ BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int a; System.out.println("Enter your Level"); a = Integer.parseInt(in.readLine()); if (a == 1) System.out.println("\nYou are Freshman"); else if (a == 2) System.out.println("\nYou … | |
how to make a program using this 4 steps in a an array as a menu,and can you please give an example or idea how to do this for steps: 1 accept of object 2 display of object 3 updating of object 4 deleting of object thank you: | |
Hi all, The following script is a task I set myself to learn javascript, essentially there are several arrays containg keywords which, depending on the array, should highlight those words in different colours. The code works but I get an unresponsive script error and it's very slow. I think because … | |
can someone give a sample code in this include? we're currently working on voice scrambling program. but it's flushing out errors. thanks! | |
guys i am working on a small software in which frame appear thats show a image that your drive c is damaged and than another frame by 6sec delay show a "just kidding" image.now i want to connect this program with my usb so that when ever i plug in … | |
Hi! Sorry for my bad english. How is made that toolbar on this site always stays on the botom of the page. (So, when we log in, on this site will appears toolbar. When we scroll down, this toolbar stay, it doesn't move anywhere, it stay on the bottom.) |
The End.