199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Drahmina

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> /* …

Member Avatar for death_oclock
0
113
Member Avatar for swetharvss

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 , …

Member Avatar for death_oclock
0
114
Member Avatar for punithapary

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 …

Member Avatar for xantini
0
160
Member Avatar for aqee_se

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 …

Member Avatar for Ramy Mahrous
0
103
Member Avatar for aqee_se

When calling a form from a thread. It just hangs. No error detects or etc

Member Avatar for Ramy Mahrous
0
87
Member Avatar for ~AOD~

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 …

Member Avatar for Ramy Mahrous
0
737
Member Avatar for Dontais

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; …

Member Avatar for Dontais
0
107
Member Avatar for Potato.Head

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 …

Member Avatar for essential
0
290
Member Avatar for student_x

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 …

Member Avatar for DemonGal711
0
611
Member Avatar for power_computer

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 …

Member Avatar for DemonGal711
0
200
Member Avatar for abacuswalker

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 …

Member Avatar for siddhant3s
0
105
Member Avatar for yssirhc

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 …

Member Avatar for yssirhc
0
89
Member Avatar for xor83

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 …

Member Avatar for xor83
0
88
Member Avatar for shasha821110

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& …

Member Avatar for siddhant3s
0
77
Member Avatar for abhi_marichi

I need to execute some dos commands like executables(.exe) PLEASE HELP ME OUT OF THIS

Member Avatar for Narue
0
139
Member Avatar for jumbla

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 …

Member Avatar for jakx12
0
119
Member Avatar for bhoot_jb

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... :( …

Member Avatar for darkgaizat
0
99
Member Avatar for Sky Diploma

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 …

Member Avatar for Sky Diploma
0
99
Member Avatar for Mossiah

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.

Member Avatar for monkey_king
0
66
Member Avatar for slimjimmer

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 …

Member Avatar for csurfer
0
158
Member Avatar for mimis

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?

Member Avatar for mimis
0
147
Member Avatar for g_e_young

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: …

Member Avatar for g_e_young
0
129
Member Avatar for ofnature

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 …

Member Avatar for ofnature
0
847
Member Avatar for amisenheimer

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 …

Member Avatar for amisenheimer
0
90
Member Avatar for ChaosTheory

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 …

Member Avatar for quuba
0
133
Member Avatar for Sky Diploma

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 …

Member Avatar for Sky Diploma
0
210
Member Avatar for h3llpunk

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: …

Member Avatar for vmanes
0
88
Member Avatar for toadzky

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] …

Member Avatar for scru
0
158
Member Avatar for asafoatse

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 …

Member Avatar for asafoatse
0
81
Member Avatar for power_computer

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 …

Member Avatar for vmanes
0
79
Member Avatar for urbandad70

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 …

Member Avatar for vmanes
0
162
Member Avatar for hellIon

[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

Member Avatar for Narue
0
156
Member Avatar for himanjim

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 …

Member Avatar for hardikjobalia
0
742
Member Avatar for gayatridas

[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 …

Member Avatar for moonw3ll
0
139
Member Avatar for rambo123

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

Member Avatar for csurfer
0
112
Member Avatar for EDanaII

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.

Member Avatar for EDanaII
0
115
Member Avatar for deerowbear

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 …

Member Avatar for Ancient Dragon
0
103
Member Avatar for aashishn86

[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%> …

Member Avatar for agrothe
0
116
Member Avatar for nikhita
Member Avatar for trochia
0
501
Member Avatar for wccarithers

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 …

Member Avatar for jlm699
0
2K
Member Avatar for nerden

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 …

Member Avatar for nerden
0
130
Member Avatar for mary10

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 …

Member Avatar for nymph
0
205
Member Avatar for psankisa

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.

Member Avatar for psankisa
0
36
Member Avatar for johnray31

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() …

Member Avatar for johnray31
0
187
Member Avatar for Venom Rush

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, …

Member Avatar for Venom Rush
0
98
Member Avatar for mrk

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() + …

Member Avatar for mrk
0
150
Member Avatar for azket

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 …

Member Avatar for azket
0
120
Member Avatar for xilovemusic123x

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 …

Member Avatar for nav33n
0
260
Member Avatar for karthikRaju

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 …

Member Avatar for javaAddict
0
171
Member Avatar for theimben

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 …

Member Avatar for Shanti C
0
201

The End.