199,114 Archived Topics
Remove Filter ![]() | |
Im just trying to load a PNG file i created of a background for a game I plan to produce eventually. However im not sure how you go about adding that image to the window. Ive opened up a standard windows app template with the following code. [code]#include <windows.h> /* … | |
The description of my problem is here- Suppose I have an array of arrays- 1.1) 23445 1.2) 2144 1.3) 77988 1.4) 545 1.5) 52358 2.1) 2356 2.2)7878 2.3)531 2.4)78 2.5)78090 3.1) 578689 3.2) 90877 3.3) 1345 3.4) 422 3.5) 64 ..... .... ... Now i need to compare 1.1 , … | |
Hi, I trying to creat code to upload images .in my code i can upload files but i cant upload images can any one tell me what is the problem in my code this is my code [code=php]<?php $command=$_POST["command"]; If($command == "") { ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 … | |
I'm working on a messenger. Scenario is this: a thread is running at background as soon as it gets a message from server. It has to show this in a new form. But when i try to show the form, form just hangs and nothing happens on form. Code is … | |
When calling a form from a thread. It just hangs. No error detects or etc | |
Sir, I am currently writing a VB.Net application that uses Random Access File storage to store all the records. I have been able to write/find and delete records from the random file however i also wish to update records once i have searched for them. When the update takes place … | |
I am having problems with the . operator I thought i had it right but it keeps giving me problems on the line myBike.Bicycle(24,17); it won't compile. [CODE]// This program is designed to imput data and // output the data for bike gear and sockets. #include <iostream> using namespace std; … | |
Hi to all I have the following problem: I have a main page(html) and an iframe in it. [code] <html> <body> <iframe src="myIframe.html" /> </body> </html> [/code] In the iframe I have DIV element with a picture/or another element in it. I need to center the DIV element in the … | |
given a 2-D maze stored in a 2-D array eg: SWWWW . . . . . W.W.W . . . . F S is starting point F is exit . is the path W is the wall. After the player enters the maze, s/he tries to find a path to … | |
First compute the employee's gross pay. Gross pay is hours worked multiplied by hourly rate. We will assume (for simplicity) that no employee will work more than 40.0 hours, therefore no overtime pay calculation is needed. Next, compute the net pay. To do so, we must determine the amount of … | |
I have three classes, class A, class B, and class C. Each class is in its own file. Class A uses class B. (object class) Class B uses class A. (object class) Class C uses class A and class B. (program class) How do I go about using #include and/or … | |
This code was working originally. Then I had made some modifications and things weren't going right so I went back to how it was originally, and now it's not working! What this does is add a file text box when you click a button & then remove it when you … | |
I trying to parse HTML Table tags and get all the values in a Array. How can I get values from that array One-by-One. I have tried many array sample but when I try to print this array it only returns series of value "Array" not the value. see this … | |
I know for some C++ experts this class overload is like a piece of cake but as a beginner we always asked to write this again and again. My code as following don't have compiler problem but have strange output. [code=c++] Class String { public: String (const String& s); String& … | |
I need to execute some dos commands like executables(.exe) PLEASE HELP ME OUT OF THIS | |
Hello, this is hopefully a very easy one for you guys, but as a beginner I'm not sure how to do this correctly: I have a form [icode]<form method="post" name="boxsearchform" action="search.php"><input name="title" id= "title" type="text" value="" /><input type="image" name="search" src="go.gif" /></form>[/icode] that passes the variable of "title" to search.php. On … | |
in my application, i have created a data environment. Then i have connected a data grid to that data environment. Now my problem is when i add or delete one or more records, then the database updates itself...but the datagrid doesnt....it doesnt update until i run the application again... :( … | |
Hi all, I have just created a template for my website and then have put in my GOOGLE Adsense script in it. When i open it with Internet Explorer. The page gets displayed nicely. But when i open it with Mozialla Firefox it doesnt display any Adsense ads. Secodnly the … | |
Please help me with this. I am a newbie at this. I am supposed to pass a string array to a function. Letter grade Please give me an example on how to do it plz. thanks in advance. | |
Hi. I need to make a program which outputs an array to a file. The output file needs to have two columns, one labeled m(e) another labeled v, but I can't get the columns of the array to be separated in the output file, it just prints a string of … | |
I need to learn brute-force search because i think that it will help me to solve a problem on graphs. Do you know any good tutorial for brute-force search? | |
Hi - This is a simple problem, I'm sure, but I'm stumped. I need to read only one column from a multi-column file. The column is always in the same position, so I've decided to simply isolate the location in the row while reading the data. Here is my code: … | |
For school I have to write a program that calculates the probability of 0 to 10 planes attempting to land in any-minute period at an airport during peak arrival times. I think I don't understand the equation: a(exponent x) e(exponent -x) over x! x= the number of plane arrivals per … | |
I have a series of 5 checkboxes installed in a web form. I have the code to get the checkboxes to echo back onto a confirmation page for the site visitor to see. However I can't get the info to come back to me in the email. I don't know … | |
hi, I have an application that paints a rectangle(car) and moves it across the screen using a timer when a start button is clicked. The problem i have is i want to generate(paint) cars randomly at specific intervals (using a timer) when the cars disappear from the screen/street. Now i … | |
Hi All, I have taken up this home project just for my pastime. My objective is to take a html file and then make a complete new webpage with a specific keyword. It basically is a find and replace type of method where my existing file contains a specific keyword … | |
Hi im just trying to make a simpel dice roll game which seems very hard because srand always generates the number 0 to me. I also ask the user to type roll to roll his dices which i try check if he really does type roll. this is my code: … | |
I have a HUGE text file (over 60,000 lines) and I'm using python to do regex fixing on the file. I want to wrap any lines over 100 characters, and wrap on a space. I know I can use ".{100}" to find 100 characters but when I do this: [code] … | |
My son was trying his hands on codes writings to a lttle windows application, the he realised he would like to set a condition as to how many characters or a limitation on the leght of string input from the user, cos without a limitation the user might write a … | |
I am using this if statement to formulate some sort of output however only the last block executes where each if is suppose to execute depending on the gross pay that will determine the tax. It reading input using fstream from a .txt file It reading the right numbers The … | |
Here is my first post. I am looking for a little guidance with my class project. I have all the logic pieces worked out, but I don't know how to import a scores.txt file into an array. For the sake of my testing I just statically entered some data into … | |
[code] #include<stdio.h> void main(int argv,char * argc[]) { int num1,num2; num1=(int)argc[1]; num2=(int)argc[2]; printf("%d\n",num1); printf("%d\n",num2); } [/code] wat output should i expect? is there something wrong wid this code? cus i am getting weird outputs | |
Hi, I'm new to jsp I'm writing a java code of simple chat application that consists of an applet on client side and a java server page on server side. My applet is fine but the jsp code shows unusual errors and in most of the cases the browser simply … | |
[QUOTE=Kerry;41762][COLOR=Blue]Hello, my name is kerry and i just sign up .Well, my question is how do reverse a number input by user using recersive function.Thanks for the help. [/COLOR][/QUOTE] I have a sequence of 5 numbers. I want to write it in reverse order. Could you please help me that … | |
hi i am not getting pointers concept.guide me to learn this concept.i can't understand the increment and decrement of pointer variable. And maximum how many dereference operator you can apply in while declaring a pointer variable. reply me asap | |
I would appreciate a critique for the following database from anyone who is willing and has the time: [url=http://edwardgdanaii.info:8000/EDanaII/Programs/MediaLibrary/]Medieval Media Library[/url]. All comments welcome. Ed. | |
I am getting these errors when compiling, and I am not sure why. Any help is much appreciated. Thanks daniel /////errors 77 C:\Users\dwilmes\Desktop\project3\main.cpp expected constructor, destructor, or type conversion before '<' token 77 C:\Users\dwilmes\Desktop\project3\main.cpp expected `;' before '<' token 83 C:\Users\dwilmes\Desktop\project3\main.cpp expected constructor, destructor, or type conversion before '<' token … | |
[code] <html> <head> <title> database ado </title> </head> <body> <%constr = "provider= sqloledb; data source = 6.123.3.183,1234; initial catalog=dbase;User id=scot; password=pwd1"%> <%set conpubs= server.createobject("ADODB.Connection") conpubs.connectionstring= constr conpubs.open%> <%Dim rstest Set rstest = Server.CreateObject("ADODB.Recordset") rstest.Open "test", constr, adOpenDynamic, adLockOptimistic, adCommandTableDirect rstest.addnew.fields("name")="three" rstest.update%> <%while not rstest.EOF Response.Write rstest("name") & "<br>" rstest.movenext Wend%> … | |
how to download table data from mysql table using php other than files | |
I am using psycopg2 to read from one database table and insert these into another table. I get a format error when the value I am trying to insert has a space in it. The condensed code looks like: cursor.execute("""INSERT INTO table (column1, column2) VALUES ('start finish','now later')""") I'm a … | |
I am writing a program where a user selects two mathmatical operators: LT -less than GT -greater than EQ -equal to NEQ -not equal to I have if statments to convert these to their symbol, but how can I then use this in a sum? If it was just one … | |
Help me implement these in playlistImpl The user needs to be able to: * Create playlists * Delete playlists * Edit playlists * play playlists com.xxx.iopackage.inputstreams.mp3player.playlist.PlayList com.xxx.iopackage.inputstreams.mp3player.playlist.PlayListImpl [U]PlayList.java[/U] [CODE=java] package com.xxx.iopackage.inputstreams.mp3player.playlist; import java.io.File; import java.util.LinkedHashSet; /** * Models a playlist of MP3. A Playlist is a group of mp3s which … | |
hi all, [B]can any of you enlighten me as to how to use ACEXML Parser to parse an xml file in c++.[/B] regards, psankisa. | |
Hi guys, when i am compile this program it gives error. i am wondering why it is so.. plz help me. thankx [CODE] #include <iostream> #include <map> #include <string> using namespace std; class ConfigPath { public: ConfigPath() { m_name = "VIPIN DAHIYA"; } ~ConfigPath(){} private: string m_name; }; int main() … | |
I'm trying to create a 6 digit number from a string of letters before a # sign. For instance I'd like to take "seaweed#" and take the 6 last letters before the "#" sign and convert them to numbers based on each letters position in the alphabet assuming a=1, b=2, … | |
Hi, I am debugging an application developed by another programmer. AxInterop OCW11 excel component is used. The following code is giving an error "Input string was not in a correct format", "object reference was not set to an instance of an object". strTest = axSpreadsheetASCIIop.ActiveCell.get_Range( (Convert.ToChar(Col1)).ToString() + longRow1.ToString(), (Convert.ToChar(Col1)).ToString() + … | |
Hey everyone, let me get straight to the point: For my program I developed two custom classes that extend jPanel and have some text fields and check boxes in them. (public class ServicePanel extends java.awt.Panel) Now I've encountered three problems. 1. When add those panels to the GUI Palette and … | |
Hi, I have a question about Java. I'm really new to Java so this is not something I'm familiar with.. My question is, how do I get the values of pos.offsetTop and pos.offsetLeft to show up in my input box?? Here is the java code: [code=JavaScript] function getPosition(element) { var … | |
I am doing online examination project, in that my requirement is to set one question in one page,the maximum time limit for the question is 60 seconds, count down. pb is if the user click refresh and back button the time get reset to 60 seconds again in this way … | |
I want to use $_GET['error'] to fetch error messages from an array. Heres my array: [code=php] $errormessages = array( 'nosearch' => 'Your search returned no results - <a href="guide?t=search">Click Here For Search Tips</a>', 'captcha' => 'The captcha you entered was incorrect, please try again.',); [/code] So if I did [ICODE]echo … |
The End.