132,733 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for drameshgar1

hi! I am designing a 2d game, in my game i want to add a feature e.g. in my jframe i have three images if a user clicks on a image that image will automatically get set as a background throughout the three laves (in my game they are three …

Software Development java
Member Avatar for 117
0
129
Member Avatar for mehnihma

I need to input multiple files from directory but how to do it for any file name? If I do not know the file name So I can pass one by one file to thread? int 1 = 0; while(true) { String name = "Lab3File"+i+".dat"; File file = new File(name); …

Software Development java
Member Avatar for mehnihma
0
157
Member Avatar for nickecarlo

Hey, I have the following piece of code in Processing (programming language) that I am supposed to change and implement in new ways. However I just can't seem to understand it. I would love it if someone here explained it to me step by step. Here's the code: [CODE]// TREE …

Software Development api
Member Avatar for TrustyTony
0
230
Member Avatar for FelineHazard

Hi all, I encountered some weird act from the return(); function. I'm doing some book exercise in recursions: write a recursive function that makes a summation 1 + 1/2 + 1/3 + 1/4 + ... + 1/n. Rather basic. So I wrote this: float summation(int n) { if (n == …

Software Development c++
Member Avatar for FelineHazard
0
195
Member Avatar for kampao00

hi! kindly help meeeee :D Populating the combo box with the list of items from the one of the column in table from database. Based on the selection of item in the combo box, the another combobox should be populated with value corresponding to the selected item in the first …

Software Development vb.net
Member Avatar for kampao00
0
1K
Member Avatar for mehnihma

How to take any bumner of arguments form command line and to search in arraylist> I now do it in with defined number of arguments and take every argument and search, but this is unlcear to me? Thanks

Software Development java
Member Avatar for mehnihma
0
68
Member Avatar for deanus

Hi, I've been using C++ for quite a while but recently I discovered this peculiar behaviour. The following code works as expected: #define TWO 2; int nVal = 3 + TWO; cout<<nVal<<endl; // output is 5 ...if on the other hand I place the literal integer after the '+' in …

Software Development c++
Member Avatar for deanus
0
107
Member Avatar for shah1509

I have an application that can filter a datagridview based on date using a datetimepicker. The "date" column in my database is a datetime data type, hence it will contain a date and time stored within but there is some data which have only dates. My problem is my datetimepicker …

Software Development dataset open-source regex visual-studio
Member Avatar for Mitja Bonca
0
619
Member Avatar for geekdevil

Me and my freinds are heading towards a C++ Game Project of Snake-Game in which a Snake is to be made of 6 "*"s and it is controlled with keybord.... We had progressed till here and weare finding difficulty in handaling more than 1 stars plz help #include<iostream.h> #include<conio.h> void …

Software Development c++ gaming
Member Avatar for Labdabeta
0
321
Member Avatar for srinidelite

please tel me the logic behind the code for find the common aphabets between two words?? ex ... mine mind common letters are : m i n like

Software Development java
Member Avatar for JamesCherrill
0
83
Member Avatar for phorce

Hello, I need to store the cooridants of a vector, for example: If the vector was: 0 1 0 1 0 0 1 0 1 0 0 1 1 1 1 0 0 0 0 0 And this vector is then split into blocks, I need to store the the …

Software Development c++
Member Avatar for Labdabeta
0
141
Member Avatar for Labdabeta

I am wondering how to perform a 2D image blit with openGL. I used to use SDL and it was easy, but with opengl I end up making a rectangle with texture coords that is sunk a little into the screen. Is there any way to perform a 'real' blit? …

Software Development c++ image microsoft opengl
Member Avatar for Labdabeta
0
527
Member Avatar for raviaaaa

while configuring workspace in Eclipse, applet is not loading i am using jdk1.5 and Tomcat 5.5 but when iam try to open same application in IT link applet is loading sucessuflly (i have used the same code to configure locally) can any one please let me know how to resolve …

Software Development apple java open-source queue
Member Avatar for NormR1
0
192
Member Avatar for saad749

I have this Regular Expression in C#: Regex myRegex = new Regex(@"^[a-zA-Z]{1}\s(! | && | \|\| | -> | <->){1}\s[a-zA-Z]{1}$"); if (myRegex.IsMatch(expression)) { validated = true; } else { validated = false; } and I would like to match the following types of Strings: A && B A -> B …

Software Development regex
Member Avatar for saad749
0
198
Member Avatar for SasseMan

Hi! I'm working with a huge software system with a lot of people being involved in the coding through many years. I'm noticing more and more that there is a lot of bad code, especially get methods here and there with huge side effects, which you totally not expect. So …

Software Development java
Member Avatar for SasseMan
0
247
Member Avatar for capton

Pls i want to call a constructor within itself but don't know how to.

Software Development c++
Member Avatar for capton
0
2K
Member Avatar for mitchfizz05

Hi everyone. I am making an application that you need to sign up and login to. I want to use an online SQL database to store the login information. I know how to use a local SQL database, but I want to use an online database. Please help :) BTW, …

Software Development sql vb.net
Member Avatar for mitchfizz05
0
187
Member Avatar for cryonize

Hello again, I am asked by my professor to create a program using selection sort in a linked list. Selection sort with sorting only the data is pretty easy, but I'm having a hard time because he made us sort the nodes themselves. Can anyone help by giving atleast the …

Software Development algorithm c++ linked-list
Member Avatar for mike_2000_17
0
10K
Member Avatar for alapeh

hi all pros, below is my vb6.0 code. the click command is to save my text and picture. there is no problem for my text. but, i have a problem after saving the picture. the picture can be saved but it is not availabe for preview. is there any fix …

Software Development visual-basic
Member Avatar for Jx_Man
0
4K
Member Avatar for poojavijay
Member Avatar for samsylvestertty
0
99
Member Avatar for cheiL

Hi there I have a few lines of code that I would like to ammend but have been unsuccessful in doing so. I have posted in a few other forums with no luck, hopefully somebody here can help me out. I have a delete statement which I have been asked …

Software Development session sql vb.net
Member Avatar for cheiL
0
137
Member Avatar for murnesty

The local pointer will be remove after i go out from that scope? or will remain? Example: int glb1 = 2; int main () { int var1 = 0; fnCall1(); fnCall2(); //at here } void fnCall1 () { int tmp1; tmp1 = 10000; } void fnCall2 () { int *ptr1; …

Software Development c++
Member Avatar for rubberman
0
133
Member Avatar for reds8

This are my tables: tblData **numIndex** | **num** | **cost** tblPrize **numIndex** | **num** | **Prize** and the result I want is : tblData.num=tblPrize.num then sum the cost in tblData example of the table view i want: **tblData.Num** | **SUM(tblData.cost)** | **tblPrize.prize**

Software Development sql vb.net
Member Avatar for poojavb
0
157
Member Avatar for ZainabJuma

**I have a problem in the Trainee Id Iwant the ID to be like that 20120001 the year should be change if we are in new year and start with a new count i alrady connect the vb with a database how can i do that? **

Software Development vb.net
Member Avatar for poojavb
0
99
Member Avatar for poojavb

Hello Friends, I need idea for my below process... I have one medical prescription form in my table....which will generate bill...and a receipt number will be generated in crystal reports.... If suppose a bill is generated for a particular transaction and after suppose few days i need a duplicate bill....how …

Software Development vb.net
Member Avatar for poojavb
0
100
Member Avatar for nekoleon64

My name is Leon Norwood Jr....hmm.. Anyway I have this program that I'm nearly done with I have to do one of those ICAO(International Civil Aviation Organization program, in fact it's the same program that I did myself several weeks ago, I now have to do it again with arrays …

Software Development c++
Member Avatar for ChrisPadgham
0
644
Member Avatar for pattmorter

I am working on a practice exam right now and I came across a write-your-own code problem that I can't figure out. The question is: > Modify your first function. In addition to returning the greatest value by pass-by-value, you should also sent a true/false value back to main() if …

Software Development c++
Member Avatar for pattmorter
0
218
Member Avatar for manhthaodn

Hi, I have voidmain() function in Program.cs [STAThread] static void Main(string[] args) { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); frmMain main = new frmMain(); MainTool.frmmain = main; if (args != null && args.Length > 0) { Application.Run(new frmMain(args[0].ToString())); } else { Application.Run(main); } } In that: MainTool.frmmain = main; Assign frmmain variable of MainTool …

Software Development
Member Avatar for darkagn
0
90
Member Avatar for zingwing

I was told to use bubble sort to sort the arrays. what i need to do is read in one array and have to sort into the other array but i haven't been able to figure it out here's the code i have so far. i've been trying to manuplate …

Software Development c
Member Avatar for Ancient Dragon
0
199
Member Avatar for MrEARTHSHAcKER

Hi, I have recently finished first game in C++ which has huge code which will be fixed in future who knows how many times. It is really not practical to publish entire .exe launcher as fix, but I heard that it isn't case with DLL files. I could simply create …

Software Development c++ oop
Member Avatar for Ancient Dragon
0
171
Member Avatar for hwoarang69

I am so confused on how to tell a run time of a algorithm. so i came up with some ex for me to understand. could any one tell me if i am find the run time right plz. ex1 - run time for this loop is O(n)? bc it …

Software Development algorithm c
Member Avatar for hwoarang69
0
154
Member Avatar for masterinex

Hello, I am trying to write a simple program which should read the first line from the file s1, and display it. When I run it , I get the message cannot implicitly convert 'System.IO.Streamreader 'to 's1.Program' which happens for the line Program re = new StreamReader("s1.txt"); using System; using …

Software Development c# display
Member Avatar for Momerath
0
257
Member Avatar for txhornsfan

Hello all, I am having some trouble with my assembly code...still kind of new, but here it goes... The assignment is to desing an assembly program that uses a dialog box to prompt the user for a number. These numbers will be stored in an array. There will be an …

Software Development assembly mathematics
Member Avatar for txhornsfan
0
674
Member Avatar for MicrosoftMahmou

hi Am trying to write a C-code that multiply two matrices but i want the elemnets of every matrix is random number using time function main() { srand ( time(NULL) ); int m1[10][10]; m1[10][10] = rand() % 10; scanf("%d%d",&r1,&c1); scanf("%d%d",&r2,&c2); if(r2==c1) { . . . . } this is the …

Software Development c matrix-multiplication
Member Avatar for zeroliken
0
236
Member Avatar for LdaXy

I created a function that saves a file with a custom extention ".nra" however each time that i enter a file name, it throws ArrayIndexOutOfBoundsException public static void SaveFileNra() throws Exception { if(gl.DataStack.isEmpty()) { System.out.println("There is nothing to save!\n"); Menu(); } else { System.out.print("Enter the directory you wish to save …

Software Development file-system java
Member Avatar for NormR1
0
161
Member Avatar for SD91

ok, so if i want to increment soemthing to "2.4," how would i do that? This is what i have: While (something == D) { total+=2.4; } Would this be correct?

Software Development java
Member Avatar for SD91
0
113
Member Avatar for patskinks

heLLO.../ I tried writing this logic gate with software (estudio) but I am finding difficulties with it.. I understand this may be entry level stuff... but i have never written assembly code in my life.. and I got this off a task.. wud appreciate if someone helps wif my questions.. …

Software Development assembly
Member Avatar for legendman3
0
296
Member Avatar for kww228

I am stuck on trying to figure out a few questions. The questions are listed below. 1: Given the data below, design IA-32 instructions to find the octal string for X and save it in Y. .data X word 200 Y byte 6 dup (' ') 2: Given the data …

Software Development assembly
Member Avatar for legendman3
0
179
Member Avatar for LFCDay123

I have made an application to add monthly usages of coffee to a listbox using an array. I have a button which opens up an InputBox to enter the monthly usages. I then click a button to display the usages in a listbox. Howerver, I only want users to be …

Software Development visual-basic
Member Avatar for ChrisPadgham
0
130
Member Avatar for tleverington1

Hi there, when calling a method from another class I get the following error message: ** Exception in thread "main" java.lang.NullPointerException at TextAnalyser.main(TextAnalyser.java:23) ** My two classes: import javax.swing.*; import java.awt.*; import java.awt.event.*; import java.lang.String.*; import java.util.*; public class TextAnalyser { static Tokeniser aTokeniser; public TextAnalyser(Tokeniser aTokeniser) { } public …

Software Development java java-swing
Member Avatar for tleverington1
0
2K
Member Avatar for nuclear

Straight to the point, I am using SOIL (http://www.lonesock.net/soil.html) library to upload images into OpenGl. Loading textures works fine but there is this thing i dont fully comprehend. Lets say I load an image into OpenGL via SOIL and I want to reuse the same image over few other textures …

Software Development c++ opengl
Member Avatar for nuclear
0
2K
Member Avatar for tom12

Hey guys i'm new to visual basic and im trying to figure out where im going wrong. if you have any tip or a point in the right direction. i would be gratful thank you Public Class frmMain Public counter As Integer = 0 Public card1 As Integer Public card2 …

Software Development vb.net visual-basic
Member Avatar for Begginnerdev
0
80
Member Avatar for tornado2232

how to find the roots of any given polynomial using newton raphson method if any one have the code plz share it

Software Development c++
Member Avatar for ravenous
0
191
Member Avatar for zo0oda

hello, I'm creating e-menu system for a restuarent... It has 3 users... and in staff user i want , when the staff see orders of the custmer from StoreOrders1 table which will be displayed in DataGrideView ... i want a botton to move the records of StoreOrders1 to ReceiveOrder table.. …

Software Development dataset vb.net
Member Avatar for adam_k
0
1K
Member Avatar for abed1986

Hello everyone, I am trying to read in a folder path, delimited by / and ending in COSC, and then output the last field to a file. It is supposed to match all directories that end in a course name, for example, COSC-101 or COSC201. I am using the following …

Software Development shell-scripting
Member Avatar for abed1986
0
141
Member Avatar for kiail

I have a program, and I'm trying to remove duplicate characters. I have tried using toLower(), but it doesn't work...I'm not sure where to go from here. Any help in the right direction would be great! using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace SortingLetters { static class RandomLetter …

Software Development
Member Avatar for kiail
0
114
Member Avatar for Thermalnuke

Hey guys I need help with in my code... I need to add a method that checks wheather the weather attributes are consistant or not. thanks for the help heres my code... import javax.swing.JOptionPane; public class Week_eight_number_31 { private int DefaultFarenheit = 70; private String DefaultSky = "Sunny"; public Week_eight_number_31 …

Software Development java java-swing
Member Avatar for NormR1
0
184
Member Avatar for DavidKroukamp

Hey all, I have been wanting to make a cool game in jave such as a fighting game starting off simple with drwing stick figures :). But i was wondering why there are so many java games created in Japplet why not use swing- i know there are games out …

Software Development gaming java java-swing
Member Avatar for DavidKroukamp
0
193
Member Avatar for enkitosh

Hi. I'm making a shooting game and since my code was getting a bit messy and big I decided to divide it into couple of classes and files. I'm confused of how to correctly split these files and classes up though. As I imagine it without really knowing if that …

Software Development c++ gaming oop
Member Avatar for Serapth
0
362
Member Avatar for Bradoz

Hello problem i am having is when trying to multiply polynomial 1 by polynomial 2 polynomial 1 gets mutliplied by the first term in polynomial 2 and not by each term in polynomial 2. Below is my code: ~~~~ /********************************************************************************************* * Multiplies Polynomial 1 to Polynomial 2 * The method …

Software Development java mathematics
Member Avatar for NormR1
0
313

The End.