199,114 Archived Topics
Remove Filter ![]() | |
I'm doing active rendering for a game, and I was wondering,,, Does drawing outside a canvas still use just as much CPU? As in, If I draw one rectangle, and then draw another outside the canvas, does it ignore the other rectangle, or waste CPU on it? I want to … | |
Hello there! I am new to Java and DW, though I usually find great help already here! Say I need a constructor that accepts [COLOR="red"]variable number of parameters[/COLOR] up to 2 parameters, but if I pass only one parameter to this constructor, both parameters will take this number, and if … | |
I have an update statement which should update a product using information the user has submitted from a form The error being that nothing gets updated, the sql code does nothing, and changes nothing in the database Can anyone see an error in the code? [CODE] $user_id = ($_SESSION['user_id']); $product_id … | |
This is a program my instructor wrote and I have to create a program that similar in format. My issue is I don't quite understand what main is doing or how it works, was hoping someone could explain it to me in detail. Rolodex.h [CODE] #ifndef _ROLODEX_H_ #define _ROLODEX_H_ #include … | |
![]() | Hi, Say for example I have a page with 100 includes. How would I reload just one of them? Say I ran an ajax script that did certain tasks on the server side, but I didn't want to display the information by setting it in the ajax script - Instead … ![]() |
I need some help on the void plusEquals/minusEquals and etc function I'm not sure how to start it Please can anyone help me do the plusEquals function so I know what I'm suppose to do or maybe some guides on how to approach it Below the problem is my current … | |
Hi, I've been working on this for two days. I need to pass an arraylist to another class. It gets the information, and will print out the menu, until the program goes back to the initial class, then the list empties. I don't get it, and I'm so confused. [CODE]public … | |
I making a game that would use multiple canvases drawing on one canvas then switching to another... is there any way to get a new canvas and be able to restore the old canvas with the drawings still on it? | |
I'm sure this is stupidly simple, but I havent been able to figure it out with lots of Google searching and pouring through tutorials. I'm building a simple computer trade-in value calculator PHP app. Using a form to select the type of computer and the various specs, I need it … ![]() | |
I am trying to write a script that you input a phone number, and it outputs the address and name the number is listed under. How do i do this? Please help me. I will be very grateful. | |
I'm really intrigued by OOP, I feel that I can help most people with OOP questions reasonably well, but I still have a lot to learn and there's something that bothers me. What is the best way to write the program's main() if I want to create a truly OOP … | |
Hi, Is it possible to write and compile a cross-platform C++ Program in Visual Studio (C++) Express or Professional? I only ask this question (before starting on a big project) because I would like to support other platforms without changing my coding environment, if you get what I mean. Kieran … | |
Hi! I want to delete an empty directory from FTP Server, however my code works only for files. Let's say the root directory in my FTP Server is called as [ICODE]Documents[/ICODE]. I want to delete a directory [ICODE]Director[/ICODE]. Then I execute [ICODE]client.deleteFile("\\" + selectedPath);[/ICODE], where [ICODE]selectedPath[/ICODE] is equal to [ICODE]Documents\Correspondence\Finance\Director[/ICODE]. … | |
Hi! How should I change the TableModel that extends AbstractTableModel to allow displaying empty data sets? Should the getValueAt method be chaged as follows? [CODE] public Object getValueAt(int row, int col) { Object str = ((Object[]) cache.elementAt(row))[col]; if (str != null) return str; else return ""; }[/CODE] ...or something else … | |
Hi! how could I delete all spaces in the string: [ICODE]String str = "AAA BBB CCC";[/ICODE] in order to get "AAABBBCCC" as a result? The following doesn't work: [ICODE]str.replaceAll(" ", "");[/ICODE] Thanks! | |
Dear all , I need your help on this. I will say how I am thinking the solution and any help will be much aprreciated. I will denote the husbands with the following notations h1 = 11, h2=12, h3=13 and their respective wives with the numbers w1 = 21, w2 … | |
[CODE]#include <iostream> #include<string> using namespace std; class Book { private: string title; double price; public: Book(); void setTitle(string s); void setPrice(double p); string getTitle() const {return title;} double getPrice() const {return price;} bool hasKeyword(string key); }; Book::Book() { title="None"; price=0; } void Book :: setTitle(string s) { title=s; } void … | |
hi i got one problem to solve am almost did but facing problem for my last for loop iteration can any one help me this is the problem i received University of Newcastle School of Electrical Engineering and Computer Science SENG1110/6110 Programming Assignment 1 – Semester 1, 2010 Due: By … | |
Hey guys, I have a problem I can't seem to figure out properly: I have to implement a mirror in a java applet. For the mirror I used a second window. what I don't know: -how to rotate the second window -how to make it mirror what's in front of … | |
Hello! Now I have written a function for numbers over 3999: if arabicnumber<=3999: print arabToRom else: parenthesis=0 while (arabicnumber)>3999 arabicnumber/=1000 for i in range (parenthesis... etc and i compare all the numbers that i write in so if i write like 5560 it pirints out ( V ) and the … | |
Hi I have a saved file like: name - item1 - item2 -item3 name - item1 - item2 -item3 so on .... Now i want to get like item1 to display in combobox. How can i do it?? Thx | |
okay guys im really stuck on this and i need help badly. All i know is that i need a loop at the begining to ask for four different marks, these marks have to be between 0-100. the marks are then stored in array and then i do a sum … | |
Hello, I am parsing a rebase file and using different subroutines from the BeginPerlBioinfo module. I have used the subroutines I think I need but I keep on getting the message"use of initialized value $site in concatenation or string <$fh>. [CODE]use strict; use warnings; use P4; # Declare and initialize … | |
Hi! I'm new at python and I don't get the while statement. I'm trying to make a simple function that returns each term of a geometric progression 'til 'n'. [CODE]def gp(a1,r,n): while not n == 0: n = n - 1 an = a1 * (r ** n) return an[/CODE] … | |
Hi! I'm making a program that uploads my game to an Ftp server but when the data is compressed something goes wrong and I end up with an array of zeroes. Here's my code: [CODE] FileStream filestream = File.OpenRead(file); byte[] filebyte = new byte[filestream.Length]; filestream.Read(filebyte, 0, filebyte.Length); filestream.Close(); //MemoryStream inS … | |
Hello folks, For my final project I decided to write an online poker game. Long story short I'm having trouble with a class I wrote to manage java.net.Sockets. The source for this class is: [CODE] import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.net.Socket; import java.util.Iterator; import java.util.LinkedList; public … | |
Hey all. I find myself having some issues with parent and child communication. What I have been asked to do is create a MDI program with many children. I was able to get that part working great but then the kicker was brought in that the if the focus changes … | |
[B]Hi to all, I have function (called [I]Cal()[/I] ) which is in another function that called when the page is [I]onload[/I]. [COLOR="Red"] The problem is the [I]Cal()[/I] should call when the button is [I]onclick [/I]. but in the program, it can't work ,[/COLOR] [COLOR="Green"](I attaches file )[/COLOR] Can any body … | |
I would really need some help :( Write a recursive method, as a parameter to accept the folder name (absolute or relative to the current folder) that prints lists of all the files and all folders in the folder, which is given in parameter, and displays all folders in all … | |
**CHANGE PANELS IN TITLE TO Grid Layout I first want to apologize for filling the board with a noob question but I don't know how to phrase my question on google. So here we go! My prof has us working on GUI programming. I am trying to split up my … | |
Ive been trying to make a program that should keep the status of a hotel room layout. main method should return this: [url]http://img202.imageshack.us/img202/969/layoutview.jpg[/url] the cells should also be painted green if they are available for renting Yellow if they are booked or red if the are not available one class … | |
I tried this class a couple of different ways and I had it print just memory location I think one way now I have an error that says: Traceback (most recent call last): File "F:\Python_Stuff\CSC143-901\Lexicon.py", line 83, in <module> source = Lexicon.OpenFile('word') TypeError: unbound method OpenFile() must be called with … | |
hello all, i am new here ,, and i need some help to do this array problem.. i can't figure it out.. any help will be greatly appreciated.. here is the question: [B]1- define an array of size 100 of integers, and fill it with random numbers between 1 and … | |
hi everyone i am working on internet banking project. I have an little idea about the project what are the functionality to implement and I am not perfect in web technologies. But I'll work hard on this project. My major problem is I am not getting where to start it … | |
I'd like to make standalone desktop application which is connected to mysql. i mean my app will be used in different network rather than mysql DB . DB will be set up in other network. Is it possible to build this kind of application? If so, how can i implement … | |
hi dear i want put a dynamic menu on website .i use cuffecup freeDHT for it. now How can I generate code in the program I use to have dynamic menu? Please explain with examples | |
An error called outofmemory error is coming up when I am giving nums value > 1. I have underlined where num comes. The strings bla1, bla2 etc, I gave for identifying the error. private void generateMouseClicked(java.awt.event.MouseEvent evt) { String s = new String(); String o = new String(); boolean check … | |
hai just made this code and i look through it many time.. i cant figure out why it isint woking.. any suggestions ? [CODE]#include<iostream> using namespace std; int main(); { system ("TITLE calc"); system ("COLOR 5"); char cChar; double dfistnumber; double dsecondnumber; char cDoagain; do { system ("CLS"); cout << … | |
hi need to write a program to read or write data to PLc by rs232 using modbus protcol how can i do it Thanks in Advance | |
Hello all. I'm creating a checkers program using C++. My board and pieces all display fine and everything works smoothly after pieces move and jump. The only problem is that after 12 successful moves it cuts off every time and I can briefly read something like BGI graphics error or … | |
Good morning, I'm learning some basic programming and fundamentals and I am having a hard time troubleshooting why a certain part of my code is not working. In my "calcTotal" function, my If, Else statements do not seem to be working. The program runs through, but the output is always … | |
I have written a piece of code, everything is fine until i run it, i get [CODE]"Exception in thread "main" java.lang.NullPointerException at useCADSL.main(useCADSL.java:5)"[/CODE] i know what it means, i just cant see where to modify [probably the whole you read what you think you've wrote thing] my first class is … | |
Hi friends, I'm having problems to use 2 consecutive "cin.get()". The second get() is not been accessed. But if debug I can answer the name of second file. Can you help me? Cheers, Sads [CODE]cout << "\nEnter the name of the first FILE : " << endl; cin.get (FileName1,256); cout … | |
Hi everyone, I know you probably see a hundred of these during this time of year, but I have a project going at uni that requires us to create a string based hangman game from scratch. It's not anything fancy, and the game itself isn't too complicated, but where I'm … | |
hi there [CODE] #include "stdafx.h" #include <iostream> #include <mysql.h> int _tmain(int argc, _TCHAR* argv[]) { MYSQL *con; mysql_real_connect(con, "localhost", "alakazam","username","password",0,NULL,0); } [/CODE] Error IntelliSense: identifier "SOCKET" is undefined in file mysql_com.h how should i fix it?!! | |
So i haven't been coding in awhile and i just decided to try and make a game again. nothing fancy just a simple text rpg. here's my code so far there's a few errors and if you know how to fix them that would be great... also i have some … | |
Hello: I have the following challenge I need assistance with. I have a mysql table [CODE] -- phpMyAdmin SQL Dump -- version 3.3.3 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Dec 01, 2010 at 01:22 PM -- Server version: 5.1.48 -- PHP Version: 5.2.13 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET … | |
HI all, Normally I've been lucky to find someone who has had the same problem and applied their solution but after hours of searching I'm not able to find a solution to this one. I've got a FormView which is default mode set to Insert. When the page is loading … | |
"Why does this not compile?" [CODE]int main(){ struct people{ char name[20]; short age; } people; struct people me; cout<<"Write your name"<<endl; gets(me.name); cout<<"How old are you"<<endl; gets(me.age);//error }[/CODE] | |
Hi all, I need a help from you. I'm writing a c++ console program that only accept only positive number. If the user enter an invalid number like negative and string, I want to display like [CODE]cout << "Enter a number";[/CODE] I want to loop this message until user enter … |
The End.