199,114 Archived Topics
Remove Filter ![]() | |
I don't know how to word this very well, so please bear with me... Is there any way to get a java program to respond in different ways to the results of other programs? Like, if an integer in the other program (not written in Java) is greater than say, … | |
[CODE] #include <cmath> #include <iostream> #include <fstream> #include <iomanip> using namespace std; bool InitializeBoard(int** connectNBoard, int numRowsInBoard ); bool MakeMove(int** connectNBoard, int numRowsInBoard, int player, int columnChosen); bool DisplayBoard( int** connectNBoard, int numRowsInBoard); bool CheckWinner( int** connectNBoard, int numRowsInBoard, int numConnect, int columnChosen, int player); int main() { int numRows, … | |
I am attempting to write a shell script that executes a query on a mysql database. It seems to run fine in the mysql panel, but not in the script. The code is: mysql -u username -ppassword -e 'delete from table where forumid = 25 and replace (title, ' ', … | |
Hi, i am trying to find a good final year project to do which is relevant to the modules im studying and course (bsc software development). I've thought of making an Online Backup Application / Manager which would facilitate the storing of files online with various other functions such as: … | |
I am having a tough time grasping functions =/ the book we use is pretty much useless. My problems are 1) Knowing what to put into the function ( ) 2) How to validate it ( nothing in the book about it) Any help or ideas I will greatly love … | |
Hello to all at daniweb.com. I'm really hoping someone here can help me out. I need to complete a final year project at uni to graduate, i have taken database design and administration last year as a module which covers microsoft enteprise manager, creating tables, relationships, stored prcedures and triggers … | |
Hi, I have some text file like with following structure (also attached). I want to extract only data in the form of an array: ------------------------------------------ 2048 52 429 425 398 200.000000 0 638 940 921 906 25 26 27 25 61 4096 213 1116 1371 398 200.000000 --------------------------------------------- Could you … | |
I have a project where i am having to create a doubly link list of persons, with lastname, firstname, and id number. Basically, how do I implement my compareTo method in my add method of dbl list ??? thanks in advance. Here is my person class: [code=java] public class Person … | |
can someone suggest a good free rich editor for Asp.net cms | |
Hello all, I am trying to do something like this.I have did this before with C# and asp.net but it was long back and currently am not able to recall anything similar. This time i need to make it work with [B]vb.net and ASP.net[/B] I want that only a administrative … | |
I'm currently working on a project that manages multiple notepad windows in a MDI client area. It runs just as I want it to, except that the notepad windows seem to freeze up and become glitchy inside of the parent window. I was told to look into using InvalidateRect, but … | |
Please help me find the sine series . My program is: [code] #include<stdio.h> #include<conio.h> #include<math.h> float facto(int a); int main() { int n,g,k,y; y=1; float s=0.0; float f=0.0; float l =0.0; float x; int t=0; printf(" limit is \n"); scanf("%d",&n); printf(" no. is \n"); scanf("%d",&x); x=3.14*(x/180.0); while(y<(n+1)) { g=y; if(g%2==0) … | |
>>> line = '2008-10-27 12:05:54........... >>> time = line.split(' ')[1].split('.')[0] >>> print time 12:05:54 i would like to add 45 or so minutes to the time i am parsing from a line i have tried print time.timedelta(minutes=45) Traceback (most recent call last): File "<pyshell#44>", line 1, in <module> print time.timedelta(minutes=45) … | |
Hey, This is my first time on a VB forum so this may well be a long post, as there are many questions I've been wanting to ask over the years - sorry! Oh yeah, and I'm using VB6. 1) Is there a way to make "global" variables - for … | |
SqlDataReader rdr = objCon.GetData("SP_BudgetID"); while (rdr.Read()) { txtBudgetID.Text = rdr.GetSqlInt(64); } i m getting an exception hw is it possbile to assign values from dataeader to the control like texbox and i want to assign these value into an array. wat is the way of doing it | |
I'm currently writing a program that takes in a function such as ( 7x+19 ) and I need to evaluate the function that user inputs at range of numbers. I've got the loop figured out to loop through my desired numbers, but I don't know what to call the function … | |
I am using a for loop and i want to print anwer vertically with the number. but rite now i am getting the answer horizontally i also \n but no luck below is the code. public String getMultiStringInformation(int num, String str) throws RemoteException { String result = "\n"; for ( … | |
Hello, I am trying to display SQL query results in a GUI. Right now I am displaying the information in a standard TextBox, but I would like to be able to sort by the different columns and stuff like that, much like if I had a excel spreadsheet open with … | |
Hi guys, i have a ksh script that gets some info on processes and puts it into a temp file: [code] /usr/ucb/ps -auxxx|awk '{print $3," "$4," "$2," "$1," "$11}'|grep -v 0.0|sed 1d > $TMP [/code] It gets the following data [code] 0.8 6.2158230724046144 9918 oracle 0.3 6.2158200964043168 15298 oracle 0.2 … | |
Hi guys, I have written this program so far which reads and sorts numbers from a file...WITHOUT the sort function. It sorts from largest to smallest right now. [U][B]My Question:[/B][/U] [B]How do I make my program list the numbers from smallest to largest instead?[/B] [B]File contains the following:[/B] 2 1 … | |
I have this except from my program and would like to change the line showing the error to say red, how would I do that? switch (choice) { case 1: { printf("\nThank you for choosing the Del Mar Store"); printf("\nThe price you entered is: $%10.2f<<<<\n", (price)); printf("The Sales tax on … | |
Hi All, I am sure having problems with reading from a sequential file. I created a .txt file and placed it several places within the vb.net file folder for the program that I am writing. The problem is that when I try and run the program I get the message … | |
In my HR interview, i had one question. But , i did not answer for this. Can any one give me answer for this? How to display the statement without using semicolon in c programming? i mean, you should use semicolon anywhere in the program. jillcatrina <snip fake signature> | |
I can make the INPUT for QTY pass the value to my hidden field of quantity, what i want to try is something really easy. I want the user to choose the quantity and pass the variable to my form, please help Thank you for your time amigos OCB [code=php] … | |
please i am a final year student in one of the universities in UK and and i am developing a school portal for a secondary school as my final year project and the portal b/c of time i have narrowed to down the scope of the project to only handle … | |
I have the code below and I keep getting an error saying that swap isnt a function. Just wondering if anyone had any idea why. Thanks void swap(double *x, double *y ){ double temp; temp = *x; *x = *y; *y = temp; void sort(double h[], int size){ int i, … | |
Hi guys, I have a media player that opens its own window and works fine with Firefox but it's not working for internet explorer. Been trying for ages and lots of different suppose solutions but still no go. The only thing that happens when you click the link is, bottom … | |
I am trying to write a simple program to calculate income taxes owed based on gross wages that are input by a user. The HTML page needs to accept the input (wages from 4 users) at once and then utilize a button to submit the information to an external javascript … | |
i need to write a c++ function that could read in the values of a text file, but in the text file we need to eliminate duplicate values; for example we may have values like ;;;; this is a text file, and it contains the above students, there first name … ![]() | |
Hey i'm trying to use this trim function i wrote but its going wrong for me. I can trim from the front but not behind, e.g. if i enter **bob it works but if i enter **bob** it just prints nothing. please help [CODE]#include <iostream> using namespace std; void trimFunction( … ![]() | |
i have a text file as follows; james nnnnnnnnn mmmmm kristy llllllllllllllllll oooooooo james pppppppp ppppppppppp james iiiiiii kkkkkkkkkkkk now for the out put, i want it as follows ;;;;;;; james nnnnnnnnn mmmmm pppppppp ppppppppppp iiiiiii kkkkkkkkkkkk kristy llllllllllllllllll oooooooo the code i wrote for this is as;;;; [icode] void … ![]() | |
hi Sirs, i m using vb6 and acess2000, crystal report 9. i want to delete *.tmp files created due to crystal report 9. i want this in vb6 through coding. pls help me. these files are created on partition and of 0 bytes. so, pls help me its urgent. thanx … | |
Hi, OK, am new to .net and am having some problems I can't seem to work out. I have a form called frmExchange that has two buttons and a text box on. what I want to do is type something into the text box and then click one button (btnAdd) … | |
Hi I'am doing an online cinema ticket reservation system and i have face a problem with the database design i have these entities: Movie, Branch, Hall, Seat, Admin and customer there is a relationship between the admin and all other entities except the customer which is the admin can add … | |
Im sure theres a way to do it in php , just point me in the right direction. I appreciate all the help i can get. :) | |
Hello ALL, I did the following query. the EXPLAIN result showed 'NULL' in the 'key' colume, meaning that NONE of indexes have been used. However, indexes have been created on Name fields for both tb1 and tb2. I wonder why MySQL does not use the indexes to speed up the … | |
Hi All' How can I embed images (.png, .gif, etc) into a single py file and call them in program I saw them in wxpy demo but how exactly to embedd them?? Appreciation, Steve | |
how database can be created during runtime in java | |
I have a file containing numbers in the following form: (it has 4 columns and 5 rows and the 3rd row is an empty line) [CODE] (0.761249,0) (0,-0.42632) (0,0.42632) (0.238751,0) (0.636502,0) (0,-0.42632) (0,0.42632) (0.363498,0) [/CODE] and I would like to have like this: (and there would be a number "2" … | |
Hi All I have following code running on Vista Business under IIS7. It works, but is incredibly slow (about 20+ seconds). I have the same code in Java and it's instant. It appears to be the line "int bytesRec = sender.Receive(bytes);" that is the killer I'm very new to ASP … | |
hi all, i made two commbox in my page cropcat,subcat.my coding is below.when i select a item form cropcat related subcat fetch from database mysql and displayed.but my problem here is that when i select item form cropcat page refresh and selected value not display in cropcat ?please help me … | |
Hello forum! I'm new to this forum, but I hope someone will take the time to help me, I have been grappling with this for days. I would very much appreciate it if you could help me understand what I'm doing wrong/where my thinking is off target. I find this … | |
Hi i have been trying to write a code that takes a picture and gets the odd valued pixels and turns them red, and also get the even values pixels and make them brighter. I am stuck and any help would be appriciated. [CODE]/** * Decrypt.java * Starter file for … | |
I am trying to make a program that will connect to my shoutcast page and then retrieve information. Eg song,dj,listeners etc etc Now when I try to run a web request I get this error: "The server committed a protocol violation" The code I'm using is [CODE=C#] HttpWebRequest request = … | |
Hello, im not necessarily new to c++ but i cant seem to find a good way to get input from other devices other then the keyboard. To get keyboard input i have been using [ICODE]GetAsyncKeyState();[/ICODE] i was wondering if there was a similar function to get input from other input … | |
Hi, My project requires, auto suggest textbox in jsp where we retreve data from database(oracle) | |
im having problems with the following code it works fine when i have the sleep in but without the sleep it writes the same number twice does this have something to do with the way the computer generates the random number? like based on the computers time? [CODE] using System; … | |
Hi I run a batch file by VB6. The bach file need to pass a text file and a string (such as abc). I used the following commands but I faced errors : Shell "n:\aa.bat " & "c:\a1.txt" & "abc " , vbNormalFocus Shell "n:\aa.bat " & " " & … |
The End.