199,114 Archived Topics
Remove Filter ![]() | |
Hi all, I really need help for fixing one of the issue in my project. We have a passenger table which is used for Airlines operation. We need to sort the passengers by their seat numbers. Seat numbers are in format <1/2digits><1Alphabet> eg: 1A, 1B, 1C, 22A, 11B, 24D, 9A, … ![]() | |
![]() | My Applet is working but I have 2 issues, I cannot get away from the 'metal' plaf background (trying to make it all solid blue) and when the user clicks on the 1st text box I want the prompting text to clear for the user to type their own. No … ![]() |
hi hope someone can help me out how do i include a autoreferece or auto code inside my php form so each form that i submitted will have its own number or an id of some sort to track how many form have been submitted.when form is sent to email … ![]() | |
Hi there i am trying to make a program that takes multiple files from the command line. I think i have got my my word count working right, but my question is how do i get it to read multiple files on the command line. Like when i do ./a.out … | |
I was wondering if the following in terms of tables and keys is possible: Login([U]username, date_time_login[/U]) Customer([U][I]username[/I][/U], surname, ...) Driver([U][I]username[/I][/U], surname, ...) Admin([U][I]username[/I][/U], surname, ...) Booking([U]b_no[/U], [I]cust_id[/I], [I]driver_id[/I], ...) Primary keys are underlined and foreign keys are in italics. I want the Customer, Driver and Admin username primary key fields … | |
I am wondering how extremely basic physics engines work and how I could implement them. lets say I have a player class (like a frame, except it holds the variables for the players), and I would like to add gravity. Could I go something like this [CODE] Player p = … | |
![]() | Im writing the Applet GUI code that uses another class to translate a string into pig latin (dubbed PigLatin.class) My gui has two text areas, a few labels, and two buttons, but I'm having some trouble with event handling. [CODE]import javax.swing.*; import java.awt.*; import java.awt.event.*; public class TxtCrypt extends JApplet … |
Im writing a code that ask for two positive integers entered from the keyboard. The first integer N is odd in range of 3-15 and the second with be an initial value I. N will be the size of the array. Beginning the center of the NxN array with the … | |
Hi. I've three websites on a VPS Server running Apache 2. Each website has been successfully uploading files until now. None of them can upload a pdf file but has no problem with other file types that I allow, such as jpeg. If I examine the $_FILES array, when uploading … | |
I couldn't find a meaningful code sample for the wxPython slider (wx.Slider), so I concocted this one and added a few explanations. It explores two different sliders, one is horizontal, the other vertical. The slider events are then fed to a function that retrieves the position values and displays them … | |
Hi everybody, I'm sorry If I ask a silly question. I have a simple code like this [CODE]#!/bin/bash verify() { // do something return $(grep -q 'VERIFICATION SUCCESSFUL' result.txt) } if [ verify 'a Condition' ]; then echo debug fi[/CODE] I have the following error: [QUOTE]line x: [: verify: unary … | |
Hi there, I have two tables in my data entity model accessed by StaffDB. Staffs contains: StaffID FirstName LastName Address Town County Postcode YearJoined CurrentGrade Role Ratings contains: RatingID StaffID Date Rating1 (automatic to avoid conflict with table name also of rating) Comments These are linked by StaffID. I am … | |
Hi All, I wanted to know if its possible to create a right click function in vb.net MDI form. Example the way we right click on any program it gives us a list of options, is it possible to do it in vb.net and how? Need help, thank you. | |
Im writing a program that uses sockets for inter process communication however i have come to a road block and cant get my code to compile. i have googled all the errors with no luck finding a solution. If any one can help me it would be appreciated. Here is … | |
I know, that you can't set the value of CancellationPending of the BackgroundWorker class The default is false. If you call the CancelAsync()-method, CancellationPending is true. I need to call this method, that my program stops measuring. Now you are back on the GUI. You can change values and again … | |
im trying to print the array 5 times, each time containing different numbers but it repeats the same random numbers. help please. [CODE] while(count<5){ fillarr2(ran1,ran2); printar(ran1,ran2,counting); } // functions void fillarr2(int raa[],int rab[]){ int ran1,ran2, i,count=0; srand(time(NULL)); for(i=0;i<10;i++){ ran1=rand()%15+1; raa[i]=ran1; } for(i=0;i<10;i++){ ran2=rand()%15+1; rab[i]=ran2; } return ; } void printar(int … | |
![]() | Dear Sir, I am facing endless problem, Pls help me. My prob is... (note I am not expert...Just i am started php) I have php page, with out having any session expiry time limit, just i used session start only. nature of my page is required more time with out … |
[CODE] String SearchBroadCastMenu[] = new String[] {"Search Item Code", "Search Title", "Search Country of Origin", "Search Language", "Search Status", "Search Director", "Search Actor", "Search Producer", "Search Frequency", "Return To Previous"}; UIManager.put("OptionPane.messageFont", new FontUIResource(new Font("Tw Cen MT Condensed",Font.PLAIN,18))); UIManager.put("OptionPane.messageForeground", java.awt.Color.blue); UIManager.put("OptionPane.buttonFont", new FontUIResource(new Font("Tw Cen MT Condensed",Font.PLAIN,18))); int SearchBroadCastOption = JOptionPane.showOptionDialog(null, … | |
This program is suppose to input a date and output the day of the week that corresponds to that date. I have the program all done, but the code is not presented in the main() of the form. Im guessing i have to organize it a little more. any ideas … | |
I need some help with a code I'm writing. The user inputs some letters, a loop is ran to check if it's a vowel or consonant, then when the user is done it returns the total amount of vowels and consonants. The problem I'm having is the loop is suppose … | |
I need to read a file that contains this: 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 … | |
Im trying to figure out why this simple piece of code isnt working. The aim is for the user to enter a word and then the application echos the word back to them. If the word is equal to 'done' then the application prints 'Complete'. [CODE]import java.util.*; public class word … | |
![]() | i am writing an ajax code to collect information from a xml file but the file is not being read can someone please point out the problem for me the code is below. [CODE] <html> <head> <title></title> <script type="text/javascript"> var xmlHttpDoc = new XMLHttpRequest(); /*getcolor1 function*/ var options; function getColor1() … |
So, here I am again, with my mass of code, albeit with more progress. It's still got a long way to go, and I'm still not that good at coding, but man oh man have I learned a lot through this game. I come with a few more questions than … | |
can anyone say how can we link a css file to a php file.. I tried this [CODE]<link rel="stylesheet" href="site.css">[/CODE] here site.css is my css file and i am including this in home.php file in the head section. but i am not able to get the effects in the webpage. … | |
I created two parentgridview and childgridview . [CODE] <asp:GridView ID="ParentGridView" runat="server" AutoGenerateColumns="False" DataSourceID="SqlDataSource1" DataKeyNames="l_no" onselectedindexchanged="ParentGridView_SelectedIndexChanged"> Columns> <asp:TemplateField HeaderText="Letter Number"> <ItemTemplate> <asp:Label id="l_no" Runat="Server" Text='<%# Eval("l_no") %>'/> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="name Department"> <ItemTemplate> <asp:Label id="nam_dep" Runat="Server" Text='<%# Eval("nam_dep") %>'/> </ItemTemplate> </asp:TemplateField> <asp:TemplateField HeaderText="View"> <ItemTemplate> <asp:Button ID="ViewChild_Button" runat="server" Text="+" CommandName="Edit" /> </ItemTemplate> … | |
![]() | My problem is that I am trying to execute a function on button click event but it just shows not even for a sec it just flashes. html & Javascript : [CODE]<html> <head> <script type="text/javascript"> function createLabel(){ /*Get UserName*/ var unString = document.createElement("label"); unString.className = "userName"; var uName = document.getElementById("username").innerHTML; … ![]() |
Dear Experts I want textbox1 to accept only numeric data as 55,65,698.00 Is there any easy way to validate textbox1 with javascript? Please help | |
here i have 2 listbox i already have the code for the selected item moving right and moving left but i don't know how to move all of the listbox1 to listbox2 by just click >> or listbox2 to listbox1 << | |
I am stumped on how to go about coding my checkAttempt() method. Its supposed to check to see if the current row in int board is equal to int code as well as check each position and log how many numbers are in the correct position as well as present … | |
[B]here is the problem:[/B] -user enters "degree" and a "threshold" value -degree is converted to radians(with a static method) -computing the approximation as long as the absolute value of the series element is greater than the threshold [COLOR="Red"]series:[/COLOR] i.imgur.com/GRsIP.png -Error is computed as absolute difference of approximation and the value … | |
Hi, I would like to know how to add the objects of a vector?I wrote a code where it is adding the values to a specific object.I wanted to write a code where it can add all the values of all objects in a vector? | |
Hi, I am learning C++ and am writing a program to create a Unique List of words. I am having problems getting my struct count field to increment in my createUnique function. After returning from the Search function, the count field within the struct needs to increment if the key … | |
hi, my application i have built which runs on php/mysql i now need a way to have it insert a value into a table every set date. so, on the isnert form just now they would enter the amount of money the company would receive and which date they were … | |
Hi all, I got a problem.I got to make a program that sorts the digits inside a number given by the user, but I can't use an array. I know that the easiest way is with the bubble sort but I can't seem to make a switch between two digits … | |
[CODE] #include<stdio.h> #include<math.h> #include<string.h> // function prototype int rv (int, int [], double []); //main function int main() { int n; int res[10]; double vol[10]; double I[10]; double C; int i; for (i = 0; i < 10; i++) { printf("Enter R and V for resistor %d: ", i+1); ReadRes(i,res,vol); … | |
Hi forum, I am wanting to advance my programming knowledge to the next level: to create games. I have a pretty-good understanding of VB.NET and I am wondering what I could do to make games. I know that most on-the-web games are written in ActionScript with Adobe Flash, but would … | |
Hi all I have "borrowed" a function from the net, and need som help in modifying it to do what I want. [CODE] Public Function CrossTab(ByVal dtS As DataTable, ByVal leftColumn As String, ByVal topField As String, ByVal dataValue As String, Optional ByVal pFix As String = "") As DataTable … | |
so i have to make a function that displays the binary representation of a 32 bit integer this is what i have [CODE]#include<stdio.h> #include<stdlib.h> #include <string.h> #include<stdio.h> void inttobin(int c) { char * s ; char * p ; size_t n = 8*sizeof(unsigned int); p = malloc(n*sizeof(char)); while (n-- > … | |
when insert in the first char then it display the related item the combo box | |
Hello, i have eclipse and in my laptop and i have a little problem when i call functions, example: when i create an button and i want to change size... [CODE]Button b = new Button();[/CODE] b.setSize([COLOR="Red"]arg0,arg1[/COLOR]); this is my problem, why eclipse show me as arg0, arg1 and not like … | |
Hi, I current I have a vector <void*> that I need to populate with values, stored as char*. Is there a way to convert to void*, then back to char* whenever needed? I have tried casting and using static/reinterpret_cast but when I try to output (converting from void* back to … | |
Hi, main.cpp vector<Employee>e; e.push_back(Employee("Hawaii",100)); cout<<endl; e.push_back(Employee("Scotland",20)); cout<<endl; e.push_back(Person("Saga",30)); cout<<endl; Employee e1; //created an object sort(e.begin(),e.end()); e1.show(e); Employee.h bool operator<(const Employee& e1,const Employee& e2); Employee.cpp bool operator<(const Employee& e1,const Employee& e2) { return e1.getName() < e2.getName(); } With this code it is just sorting only the first 2 objects and displaying … | |
I am creating DLL using VC++ - Console application.. I am writing it for crating a new file... I am using Createfile function for this. but facing below error... error C2733: second C linkage of overloaded function 'CreateFileW' not allowed Below is my .CPP file from the project.. #include "stdafx.h" … | |
hello i am new in asp.net and in sql i want to fetch all different data of same id no and this data make addition to each other how it possible such as invoice_no dabit 111 50 111 100 111 20 according to above sql query select * from table … | |
I'm trying to read data from a text file that looks something like [CODE] United States 155981460 50.28 Indonesia 40829720 16.8 India 38045000 3.24 [/CODE] I need to add all the numbers after each country together. I also need to which country has the highest number in the third line … | |
Hi, I need some help, I am trying to insert multiple check boxes values(this values comes from 1st database) and I am giving the check boxes in the output(result fetch from 1st database). I want to insert all selected values into to the 2nd database from 1st database using PHP. … | |
Hello Im having some new Java problems, while trying to export my project to a JAR file in Eclipse. When I run it from the IDE its OK, all roses and bourbon, but I get hit over the head this when I run it from cmd : [CODE] C:\Users\Joey\Desktop>java -jar … | |
Hello, I am basically a fresher in ASP.NET. I am building a website that has large contents of text data. The site also has a quiz based on some articles. I have two questions: 1) Which is the best way to store large amounts of text data? Is it good … | |
Hi.. Following is my code:- public static void Sync(string sourcePath, string destinationPath) { bool dirExisted = DirExists(destinationPath); //get the source files string[] srcFiles = Directory.GetFiles(sourcePath); foreach (string sourceFile in srcFiles) { FileInfo sourceInfo = new FileInfo(sourceFile); string destFile = Path.Combine(destinationPath, sourceInfo.Name); if (!dirExisted && File.Exists(destFile)) { FileInfo destInfo = new … |
The End.