132,726 Archived Topics
Remove Filter ![]() | |
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. | |
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 | |
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 | |
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'); … | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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, … | |
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 … Software Development microsoft-access open-source visual-basic | |
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 | |
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++ | |
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++ | |
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++ | |
i need to automate web browser using vb.net Software Development vb.net web-browser | |
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 | |
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(); … | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 … | |
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++ | |
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 | |
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 | |
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> … | |
![]() | 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 |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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 | |
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++ | |
Can anyone give me the code for awk scripting? Software Development shell-scripting | |
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 | |
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 | |
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 | |
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 | |
[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 ? | |
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 |
The End.