132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for creative_m

I wonder why they use private constructors.when I was navigating java documentation I found alot of classes with private constructor.Would you tell me what are the benefits of writting them.

Software Development java oop
Member Avatar for creative_m
0
472
Member Avatar for vinnyoodles

Hi, I am trying to make a simple snake game, but whenever I try to attach a body piece it appears randomly on the screen rather than behind the head. Also, the body doesn't exactly follow the head either. I checked the code over and over for any problems but …

Software Development java
Member Avatar for cms271828
0
301
Member Avatar for blackhat416

hey guys any one can help me plz................... Win or console App in C# ,as soo As possible ..............Tanx Write a simple TCP program for a server that accepts lines of input from a client and prints the lines onto the server's standard output. Compile and execute your program. On …

Software Development c# client-server web-browser
Member Avatar for skatamatic
0
629
Member Avatar for imsinu

can we pass condition of if statement as an argument in any language????????? [CODE]class Matrix { static void loop(char a,char b,char c) { int a[][]=new int[3][3] ; byte i,j ; for(i=0;i<3;i++) { for(j=0;j<3;j++) { if(a b c) System.out.print(a[i][j]+"\t"); else System.out.print(" "+"\t"); } } public static void main(String ar[]) { loop('i','>','j'); …

Software Development asp.net c++ java
Member Avatar for JamesCherrill
0
4K
Member Avatar for SasseMan

Hi! I'm looking for a way to only run a few tests instead of all existings JUnit test cases in our automated build, which uses ant. I can't add @ignore annotations in the code since it would take to much time. Is there a way to define which test cases/classes …

Software Development java
Member Avatar for SasseMan
0
221
Member Avatar for bhagawatshinde

Hi guys, Can anybody help to figure out the problem. In my C# application project with access database when fetching the records from db it will give me error "Unspecified error". Thanks in advance...

Software Development
Member Avatar for bhagawatshinde
0
613
Member Avatar for webdragon89

I have the code to print prime numbers but I can't figure out how to print the numbers 8 to a row. This is because I have to find all the prime numbers <200. [CODE]import java.util.Scanner; public class PrimeNumbers { public static void main(String[] args) { Scanner input = new …

Software Development java
Member Avatar for hiddepolen
0
641
Member Avatar for cloud02

okay so we have group program and my job was to make it only fool proof which I've done most of it and now my group wants me modify/change the program that we talked about and they chose me to do it even though I Said no and I can't..a …

Software Development java open-source
Member Avatar for cloud02
0
193
Member Avatar for drlockdown

I'm new to Python. Just started school for programming and have run into a bit of trouble with python. seems every time i go to run module a little window will pop up labeled SyntaxError, and inside of the window it says invalid syntax. Not to sure what's going on, …

Software Development python
Member Avatar for snippsat
0
194
Member Avatar for wzunix

Hiya, recently came across these two grid methods; but am confused about the distinction between them. wonder if anyone could give a simple example to tell the diff? Thanks a million!

Software Development python
Member Avatar for wzunix
0
193
Member Avatar for DarkPyros

This code is supposed to take two numbers, and multiply them, divide them and print out the product and quotient. ive checked it over numerous times and cannot figure out where my error is, when i type in a real number and 0, the result screen shuts off prematurely..can anyone …

Software Development c
Member Avatar for Moschops
0
305
Member Avatar for denizen08

I have a project that requires us to perform matrix multiplication via multi-threading, using the Windows API. I've got the basic code running and everything is well under sane/ideal conditions. But if my input matrices go beyond 10x10 the program ends up failing on WaitOnMultipleObjects(...) and runs the main thread …

Software Development api c++ microsoft multithreading
0
123
Member Avatar for Cronicle8

Good morning, Here i am again, asking help to all of you that are able to help me, my problem is the following, i translated some code from C# to VB, mas the code in C3, what it does is change the wallpaper and it's style for Windows Starter, but …

Software Development c# vb.net visual-basic
Member Avatar for Cronicle8
0
235
Member Avatar for mylotech

I'm learning linked lists in C++. In an exercise I have to duplicate H time a give item. So I thought in this method: [CODE]void duplicaNodo(int item, int &H, Pnodo &L){ //duplica un nodo H volte, scorrendo tutta la lista Pnodo Temp, Temp2; if(L!=NULL){ if(L->info==item){ for(int i=0; i<H; i++){ creaNodo(item, …

Software Development c c# c++
Member Avatar for mazzica1
0
258
Member Avatar for yeeitsneo

uhm. im coding a simple log in program in vb 6 and im using access as the database. i already coded the username and password verification part successfully. but our instructor requires us to include a "Privilege" whereas, all registered usernames in the database have corresponding privilege or rights to …

Member Avatar for AndreRet
0
851
Member Avatar for sam1

hi, I heard there is a plugin for eclispe that you can use to produce the gui part of application, but i dont know the name. has anyone used it? is it easy to work on then writing the gui yourself? thanks

Software Development gui java
Member Avatar for peter_budo
0
163
Member Avatar for SmackTubby

So, I am fairly new to C++ programming, so if you can help me, please try to keep it simple...I'm still learning. What I'm trying to do is assign a score to a grade letter (A,B,C,D,F) and then display it. This is what I'm have: [CODE]string lettergrade1; string lettergrade2; if …

Software Development c++
Member Avatar for SmackTubby
0
225
Member Avatar for bennetk2

I am unable to figure out how to check to see if there is more data in the file. I have a input file, where the last two lines are just new lines with new data. When I run my code, I get the last line of data in the …

Software Development c++
Member Avatar for WaltP
0
186
Member Avatar for kbakersr

Hello, I am having trouble going about taking a text file with a bunch of entries, like A43 A32 B45 A35 B23 etc, and having the numbers with A infront stored in one vector and the numbers with B infront stored in another. Anyone have hints for me? so far …

Software Development c++
Member Avatar for ravenous
0
153
Member Avatar for Sunny28525
Member Avatar for ashishgh
0
706
Member Avatar for lasalle

I'm trying to automate browser at google website, [URL="http://www.google.com/finance/option_chain?q=nflx"]http://www.google.com/finance/option_chain?q=nflx[/URL]. There are several expiration dates in the drop down list. If you choose one, the option table below is updated accordingly. The website script is listed below. [CODE]<div id="expirations" class="id-expirations float sfe-break-left"> <select> <option value="0">Jan 21, 2012</option> <option value="1">Jan 27, 2012</option> …

Software Development asp.net vb.net visual-basic
Member Avatar for ashishgh
0
340
Member Avatar for six_sic6

Hellow. I have 3 variables 1. string query; 2. public static OracleCommand oracmd; 3. public static OracleDataReader reader; I have used these variables in a function [CODE=C#] . . . public void PreviousValue() { query = " select * from....... "; oracmd = new OracleCommand(); .... .... reader = oracmd.ExecuteReader(); …

Software Development c c# c++ oracle
Member Avatar for six_sic6
0
192
Member Avatar for swissknife007

I am a beginner to computer graphics and I have to add animations to the image of my national flag which look like [URL="http://4.bp.blogspot.com/_R_714JbVSys/SbJm90IMkpI/AAAAAAAAAEo/IQQ_YyvV2_M/s320/indian+national+flag.jpg"]this[/URL]. I have designed the flag alright.But I don't know what kinds of animations are possible and how. Could someone please guide me how to add animations …

Software Development c++
Member Avatar for peter_budo
0
677
Member Avatar for rfrapp

I'm writing a program to add two hex numbers of up to ten digits, and I'm recieving an "assertion failure," and I can't figure out why. Any help would be greatly appreciated. Thank you for you time! [CODE] // hex addition.cpp : Defines the entry point for the console application. …

Software Development c++ mathematics
Member Avatar for WaltP
0
290
Member Avatar for kolibrizas

I got a file downloaded named "Rybka v2.3.2a.mp.w32.exe". In GUI chess software you are able to add this as a chess engine, but I have no clue how the input/output of that engine works. As I understand the program sends the engine current position and the engine returns some output. …

Software Development gui
Member Avatar for thines01
0
177
Member Avatar for skoon

I am new to programming, so please accept my apologies if this question is simple. I'm creating a program that generates a random maze depending on the starting point you enter. I did every thing but when I execute the program, it doesn't show the path to get out from …

Software Development java
Member Avatar for skoon
0
417
Member Avatar for agrzesiak

Hello so the code i need to write needs to read a text file and print as many random names as a user tells it to. so i have everything but cant figure out how assign a line of the file a number so i can just come up with …

Software Development java
Member Avatar for thines01
0
174
Member Avatar for nickliutw

I'm running a problem with install the junit to the computer. I already download the junit to my computer. But how do I install it? I try to google it, but I don't understand their instructions. I remember in the class, my teacher do a lot of copy and paste …

Software Development ide java
Member Avatar for nickliutw
0
89
Member Avatar for KazenoZ

Hello, Simple question this time, I hope, I have a program that collects an argument from execution on another program, the argument is the path to a file. Now, the problem is that when I try to read the argument to a string using argv[1], it'll only get the first …

Software Development c++
Member Avatar for Shimano
0
1K
Member Avatar for sugir1987

hi all i have to implement arraylist<node> base tree(one parent may have more than two children). i did not work with node can you help me to create the tree

Software Development java
Member Avatar for NormR1
0
173
Member Avatar for fishsticks1907

I can seen to fix my linked list, i tried looking into other code for help, but most of the linked list examples online don't even work and are out dated: [CODE]#include <iostream> using namespace std; class list { private: struct node { int data; node *next; }*head, *tail; public: …

Software Development c++ linked-list
Member Avatar for Lerner
0
105
Member Avatar for Labdabeta

I have this code for AlphaBeta implementation and have created versions of the required interfaces that work perfectly (I have debugged them quite thoroughly). Unfortunately my algorithm keeps returning an empty vector and score of 0. Here is the code: [CODE]#include <vector> #include <limits.h> using namespace std; typedef vector<unsigned char> …

Software Development algorithm c++
Member Avatar for Labdabeta
0
314
Member Avatar for mehnihma

I need to check whether the entered numbers are valid, if not output a message. this needs to be done with using exception handles. i have tried the following but does not work. i get the error : cannot invoke hasNextInt() on the primitive type int [CODE]input = in.nextInt(); if …

Software Development java
Member Avatar for zeroliken
0
281
Member Avatar for myrongainz

i have done coding for the board but now I'm stuck on getting randomizing ship placement for player1 and player2 So far for ship placement all i have is the function prototype. [CODE]#include <stdio.h> #include <stdlib.h> #include <time.h> int placeship( int x, int z[ ][ 10 ] ); // function[/CODE] …

Software Development c++
Member Avatar for Lerner
0
2K
Member Avatar for kushwah0812

Dear Friends i have an application using Oracle10g as backend database and visual Basic 2008 front end tool. my problem is i have one application where more thn one user are working on a particular form and when a button, named proceed, pressed it generate next number and stored in …

Software Development vb.net visual-basic
Member Avatar for ChrisPadgham
0
127
Member Avatar for jmt0

Hi, I'm working on a program and keep getting the error "conversion from string to integer is not valid" for one variable and "conversion from string to type double is not valid." I'm fairly new at vb.net and I thought if you converted it you'd be okay. However every time …

Software Development vb.net
Member Avatar for ChrisPadgham
0
435
Member Avatar for dr_iton

Ok lets start with my problem: First i have to write my date of birth with the following format: DD.MM.YYYY This needs to be shown as DDMMYYYY, which means that dots must be lost. I've solved that. This kind of number with 8 digits it needs to be converted in …

Software Development
Member Avatar for dr_iton
0
163
Member Avatar for ryniek

I've got a code fragment: [CODE] #!/usr/bin/env python import sys num_lst = [] num_circ = [] while True: print "Type number or [e]nd operation" inpt = sys.stdin.readline() print inpt if inpt == 'e': sys.stdin.flush() print "\n" break else: num_lst.append(inpt) sys.stdin.flush() for i in num_lst: if isinstance(i, int): num_circ.append(i) else: pass …

Software Development python
Member Avatar for griswolf
0
386
Member Avatar for firebird102085

I am just starting to teach myself C++ and i have no coding experience so please bear with me on this if I ask you to explain your reasoning behind your response. My code is: // operating with varables #include <iostream> using namespace std; //declarations char STAR; int PRIME = …

Software Development c++ operating-system
Member Avatar for MandrewP
0
4K
Member Avatar for 47pirates

I want to write some text to JtextArea of class1 from class2 . How can i do that? Thanx in advance for any suggestion

Software Development java
Member Avatar for 47pirates
0
144
Member Avatar for dolphinaura

If I am creating an exception class, along with a stack [CODE]class CustomError(Exception): def __init__(self): self.contents=[] print "Stack Created"[/CODE] How can I make it so that if [CODE]x=CustomError()[/CODE], the stack contents will be [code] x.historical.contents [/code], not [code] x.contents[/code]?

Software Development python
Member Avatar for griswolf
0
113
Member Avatar for phorce

Hello could someone explain what I'm doing wrong to get the error: Segmentation fault: 11 when trying to fill in a 2D array from two for loops? Here is the code: Matrix.h [code] #ifndef _Matrix_h #define _Matrix_h using namespace std; class Matrix { public: Matrix(); // Constructor Matrix(int M, int …

Software Development c++
Member Avatar for phorce
0
1K
Member Avatar for maurya10
Member Avatar for cfajohnson
0
95
Member Avatar for lxXTaCoXxl

I'm trying to make my particles fade in my application using the alpha argument of the Color.FromArgb method but my math won't work because I have a nullable DateTime variable and the error it gives me is 'System.Nullable<System.TimeSpan>' does not contain a definition for 'TotalMilliseconds' and no extension method 'TotalMilliseconds' …

Software Development assembly
Member Avatar for lxXTaCoXxl
0
1K
Member Avatar for Majestics

I hope u havnt taken it filter in java :-), i want to create a filter for internet which do content filtering on some keyword, but dont know how to start , any body just an hint please..... Thank you

Software Development java
Member Avatar for Majestics
0
82
Member Avatar for jade_91

For the program I have the user entering their current distance and bearing from specified point with the programme then returning the nearest station and bearing/distance to this station. However I also want to include what line the station is situated so I know the code will be something along …

Software Development java
Member Avatar for jade_91
0
122
Member Avatar for mhd_arif123

I am learning java through a book. After finishing each chapter, i work out problems given at end of each chapter . when i tried to solve a problem , i could not frame the logic exactly. Please help to solve following exercise : Write a program to find the …

Software Development java matrix-multiplication
Member Avatar for JamesCherrill
0
217
Member Avatar for lxXTaCoXxl

There only two glitches within this code that I can't seem to get 100% spot on. However, this will create a functioning menu (text based) on your form at runtime. I plan to develop an actual control exactly like it. It uses a custom class I developed called LocationBounceEffect that …

Software Development
0
170
Member Avatar for mrprassad

[CODE] main() { char *p="dcis"; while(*p++!='\0'); printf("%s",p); } [/CODE] Why this is printing %s in my unix box with gcc 4.6.1 ?

Software Development c unix
Member Avatar for Moschops
0
201
Member Avatar for Sevyt

I am writing a small program to quickly search through a archive. But i cannot figure out how to get it to filter. I got my regular fields like firstname,lastname, gender, birthyear, street, city, zip, phone. Which i can search through by just entering one of these fields. Then i …

Software Development vb.net
Member Avatar for Reverend Jim
0
236

The End.