Quantcast
Channel: Programming Forums
Browsing all 51036 articles
Browse latest View live
↧

length function for 2D Arrays

Say I have an array: private GamePiece[][] board = new GamePiece[4][5]; How would I get the length of the row or column? If I wrote: board.length in a for loop, which length is it gonna give me, 4 or 5?

View Article


SQL server-Netbeans connection establishment error

Hi! I'm learning to build a database application using Netbeans IDE 7.2.1 and Microsoft SQL Server 2008 R2. I found a basic program(the first step) to create a connection between the two. But I'm...

View Article


PHP chat client

Me and a friend are starting up a video game streaming site. Streamers can stream while people talk on the right side chatbox. Previously on sites we've taken apart of, we have used IRC and Rizon (they...

View Article

How do I import images?

I'm learning the DirectX api, currently programming with c++, how do i add an image to a window using DX?

View Article

Image may be NSFW.
Clik here to view.

Calling class functions in main (Beginner's C++)

We've just learned classes and I'm still pretty confused about them. Here is my code: #include<iostream> using namespace std; class fraction { private: void reduce() {} int num, denom; public:...

View Article


Letter list

Hello, I'm trying to build a function that displays a list of letters in alphabetical order. It has an input parameter : int t. The output should be: for t=1: --> output: "a b c d e f g h i j k l m...

View Article

Help with Linear Search of Array

Hi, I am new to the forum and very new to programming as well. I've got an assignment where I need to write a method to perform a linear search on an array of integers and return the position of a...

View Article

How do I create a most basic java timer ?

I don't quite understand the parameters the timer constructor expects timer(int, actionListener) <-- how would it be possible to hook up an actionListener to a keyPressed method. Ive tried putting...

View Article


how can i detect comport automatically

Is there any to make me to come out from the project which i am doing? how to detect the com port automatically in vb.net

View Article


problem in java

hi , I have a issue that has stumped me. Now.. I am trying to solve this qustion but i can not do it so pls help . Write a program to determine whether an integer number input by a user is a palindrome...

View Article

Uninitialized Variable Error

public static MathExpression makeExpression(StringTokenizer token){ MathExpression total; if(token.hasMoreTokens() != true) return null; else{ String temp; String express = "+-*/"; temp =...

View Article

DLL process blacklist security

Hi there!, Ive been a scripter for a few years now, but im not much of a coder[Delphi/C++/C#]. Ive been trying to make a DLL that runs along a certain Exe and stays opened until its closed, the DLL...

View Article

populate textbox using hashtable

I'm creating an agenda program using windows form application, I'm trying to load data from a file into a hash table and display this data into text boxes. The labels on the text boxes are dates but...

View Article


What is the use of cust in this program?

#include<iostream.h> #include <stdio.h> #include <conio.h> #include <string.h> #include <process.h> #include <ctype.h> #include <dos.h> #include <dir.h>...

View Article

telephonebillingsys project is not typing the name we entered in bill?

#include<iostream.h> #include <stdio.h> #include <conio.h> #include <string.h> #include <process.h> #include <ctype.h> #include <dos.h> #include <dir.h>...

View Article


Trying to read in a txt file.. line by line

//main.cpp #include <iostream> #include <fstream> #include <stdio.h> #include <string> using namespace std; int main() { fstream reader; string c[9]; int counter = 0;...

View Article

Java 2D map/level Editor

Hi all, Im just starting of game programming in java and Im interested in making a platform map/level editor but I cant find any good tutorials for one and I dont want to download someone else's...

View Article


Is this possible ?

Why doesn't this sort of thing work ? I created a method that takes one String, and that method will set a new path of an ImageIcon based on the parameter passed in. and then return it. I had planned...

View Article

Hashing using an array

Hey,People I am trying construct methods.To perform linear probing. I know how to read integers from files.But I struggling with how I can add them to the array in the right place I have these methods...

View Article

Error when printing from file

I have a text file that contains the following: 6 carry OR 3 4 5 1 xor1 XOR A B 3 and2 AND A C 4 and1 AND A B 5 and3 AND B C 2 Sum XOR 1 C each column is suppose to stand for...

View Article
Browsing all 51036 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>