132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for R32@

Hello, I'm new in Java and this is my first post here. I was doing my homework but faced the following error: [QUOTE]c:\java\my box\Login.java:25: variable p might not have been initialized if (p == pass) { ^ 1 error[/QUOTE] You can see the main code bellow: [CODE]import java.util.Scanner; public class …

Software Development java
Member Avatar for R32@
0
112
Member Avatar for martin11ph

I have a form that has a ton of work ongoing for around 10secs such as moving controls, resizing them, hiding some, making others visible and more importantly, mouse moving and clicking. I don't want the user to see these ongoing stuff so I thought of making a splash screen. …

Software Development api display visual-basic
Member Avatar for jumba_4u
0
163
Member Avatar for gourav1

i m doing jdbc in sql server. when i have installed it then it is asking for connection. in server column what i need to write ? by default "(local)" is there and when i press connect button, it says "error reporting!!" and some description about that. what is this …

Software Development java
Member Avatar for gourav1
0
113
Member Avatar for archelle

Hello people... I got a problem here.. I am using a vb 2005 and mySql as my database. I already created my project but it seems like when i edit my program.. it doesnt apply. What might be the problem? Is the vb.net application, MySql or the OS? Thanks in …

Software Development vb.net
Member Avatar for Pgmer
0
219
Member Avatar for mishabi

Can someone give me a pointer on how to solve this scenario: 1) I have an image of a chessboard (8x8) with black and white squares. I need to analyze the image and create a 8x8 matrix corresponding to the chessboard. 2) Store 0 if the corresponding chessboard cell is …

Software Development image python
Member Avatar for TrustyTony
0
117
Member Avatar for baladeveloper

Hai friends. How to set grid view header and footer fixed, when scrolling vertically and horizontally ? Please help me... Thanks in Advance .....Balas......

Software Development
Member Avatar for baladeveloper
0
95
Member Avatar for axim0

Good Evening i hope i will be clear and fully details. i have created a web service project on netbeans using soap technology. i am using xampp mysql to create 5 different simple hotel databases. from my project i am connecting with jdbc connector succesfully only to 1 database. that …

Software Development java
Member Avatar for ~s.o.s~
0
705
Member Avatar for fusionking

I'm creating a C# program that has a sizable textbox that prints out data every 5 seconds. Whatever data that is displayed is (supposed to be) cleared and replaced with new data every 5 seconds. I've created a thread so that the window opens (main thread) and the data is …

Software Development
Member Avatar for fusionking
0
697
Member Avatar for ThomsonGB

//////////////////////////////////////////////////////////////////////////////////////// // In this little project I am trying to learn to get and manipulate data from // a file input using fstream strings I also wanted to use the formating available // with the printf and related string handling methods. I have a question in regards // to the …

Software Development c++
Member Avatar for ThomsonGB
0
267
Member Avatar for Tigerwatch

guys i think there is a mistake in my code but i dont know where. Can anybody tell me ?? here's my code. [CODE]#include "DarkGDK.h" #include "Inventor.h" void DarkGDK ( void ) { dbSyncOn ( ); dbSyncRate ( 60 ); dbMaximizeWindow (); float fCameraAngleX = 0.0; float fCameraAngleY = 0.0; …

Software Development c++
Member Avatar for Tigerwatch
0
127
Member Avatar for jain1.anuj

hello, i have a device with proximity sensor. how can i use it with the help of c#? how can i get the distance of object with the help of the device??

Software Development c#
Member Avatar for jain1.anuj
0
171
Member Avatar for zoro20002

what is the error in the bleow: 'Public Event OnFilterAdded()' is an event, and cannot be called directly. Use a 'RaiseEvent' statement to raise an event. [CODE]Imports System Imports System.Collections Imports System.Configuration Imports System.Data Imports System.Web Imports System.Web.Security Imports System.Web.UI Imports System.Web.UI.HtmlControls Imports System.Web.UI.WebControls Imports System.Web.UI.WebControls.WebParts Imports Tawammar.CustomControls Partial Class …

Software Development c# vb.net visual-basic
Member Avatar for GeekByChoiCe
0
239
Member Avatar for fishsticks1907

I trying to get the hang of link list, but very time a write one i fail miserably... [CODE]struct node { int data; node *next; }; int main() { node *head = new node; head = NULL; node *temp = head; //node 1 temp->data = 1; temp->next = NULL; temp …

Software Development c++
Member Avatar for fishsticks1907
0
115
Member Avatar for twek

title is self explanatory how do i convert it to a std::string? all this LP stuff makes my brain hurt...

Software Development c++
Member Avatar for easysir
0
3K
Member Avatar for noorf

Hi everyone :) This is one of my first programs using C, so I am facing some issues. our professer asked us to develop a TCP socket (client/server) where the client sends lets say an ID,Name or Major and the server searches into a txt file and returns the line(s) …

Software Development c client-server tcp-udp
Member Avatar for Trentacle
0
263
Member Avatar for JerryRong

i created a loop and it doesn't run: [CODE] for ( int i = 0; i < 100; i++) { for( int j = 0; j < 100; j++); { int total = i + j; } System.out.println( total ); }[/CODE]

Software Development java
Member Avatar for DavidKroukamp
0
122
Member Avatar for gourav1

hello! i m doing advance java now. and i m not getting any solid book for reference to read. actually, what i want in book is that it must have sample problem given with each concept! means it should be too explained. please refer a book from which i can …

Software Development java
Member Avatar for Trentacle
0
113
Member Avatar for Natsu

I have a file with bunch of lines and I want add html tag for in every line in file Example: [ICODE] 1. [url]www.google.com[/url] 2. [url]www.facebook.com[/url] .... 107. [url]www.daniweb.com[/url] [/ICODE] and the result I want in the end: [ICODE] <p>1: <a href="www.google.com" target="blank">www.google.com</a></p> [/ICODE] ..so I have 180 lines in …

Software Development python
Member Avatar for TrustyTony
0
171
Member Avatar for Stefano Mtangoo

I want to write a wrapper around MySQL but I will in future extend it to support other databases. I will cover only nasic useful features (commons) but it should be extensible in future with minimal change. I want to write an interface but I cannot get good tutorial to …

Software Development c++ mysql postgresql
Member Avatar for Stefano Mtangoo
0
332
Member Avatar for burcinerek

I write letter, it checks vowel or not but could not achieve for the capital letter without using if loop help me [CODE]#include <cstdlib> #include <iostream> #include "stdio.h" #include "conio.h" #include "string.h" using namespace std; int main(int argc, char *argv[]) { int a,b; char ch; printf("Enter Letter="); scanf("%c",&ch); if (ch==a) …

Software Development c++
Member Avatar for rubberman
0
108
Member Avatar for rahul_galgali

Hi,/ I want to start with Java Application for Data Hiding in which image is kept as watermark.I want to start with this app but I have no idea how to start with it..I am vc++ programmer but i m not familiar with java so plz If u could help …

Software Development gui image java
Member Avatar for rahul_galgali
0
182
Member Avatar for natehome

can someone help me make my code more simple. i uploaded the source to my website in a zip file with all the images because i used pygame and if you want to test it you will need the images. you can download everything here [url]http://2nh.co/Tk[/url] or here is the …

Software Development gaming os-x python
Member Avatar for natehome
0
293
Member Avatar for yinyue

i have a prob with my code.. [CODE]#include "ml.h" #include "highgui.h" #include "cv.h" #include <iostream.h> //IplImage* img = new IplImage(mat); //IplImage iplimg = mat; and just use &iplimg wherever you need an IplImage. There is no need for dynamic allocation #define TRAIN_SAMPLE_COUNT 150 #define SIGMA 60 void main( int argc, …

Software Development c++ machine-learning
Member Avatar for thines01
0
516
Member Avatar for sania khan

This is not giving right output :((( [CODE]#include<iostream.h> #include<conio.h> using namespace std; int main() { char c[80],d[80]; cout<<"Enter a string = "; cin.get(c,80); strcpy(c,d); strrev(d); cout<<"String = "<<c; cout<<"Reverse word "<<d; getch(); return 0; }[/CODE]

Software Development c++ display
Member Avatar for vijayan121
0
371
Member Avatar for unk45

need some help with an odd magic square assignment please 1)is there a limit my code should have as to the odd integer the user can input? 2)as far as declearing my array i think i need numbers inside those braces right, i just cant put in the user's odd …

Software Development c++
Member Avatar for Rabia_Akhlaq
0
304
Member Avatar for jackbauer24

What is wrong with this code? [CODE]import time import sys print """Welcome to the age finder. This program takes some input (they will be the years) and then adds it to 4 ages. For example, if you give the ages 10, 11, 12 and 13 it will return the age …

Software Development python
Member Avatar for Gribouillis
0
338
Member Avatar for programing

hi i was writte program that implement one-d array user enter 10 element without any duplication it is give me all element its already exist [CODE]import java.util.Scanner; public class Duplicates { public static void main(String[] args) { Scanner input = new Scanner(System.in); int[] array = new int[10]; int[] copyarray = …

Software Development java
Member Avatar for stultuske
0
639
Member Avatar for programing

i made code that calculate fibonaci number (n) but how i can determine the largest fibonaci number [CODE] import java .util.Scanner; public class Fibo { public static long fib(int n) { if (n <= 1) return n; else return fib(n-1) + fib(n-2); } public static void main(String[] args) { Scanner …

Software Development java
Member Avatar for stultuske
0
601
Member Avatar for skips

I'm just learning PERL. I'm working on a short practice data set. All I want to do is to see if A) all values from a list exist in a hash i've made from a separate data file, and B) are the values that do exist defined--i.e. have a value …

Software Development perl
Member Avatar for skips
0
137
Member Avatar for Chuckleluck

Could someone help me with this code? When I compile & run my project, it says "Battlefront.exe has stopped working. Windows is looking for a solution to this problem" This is my code: [CODE]//----------------------------------------------- /// Battlefront.cpp Source Code File /// Part of the Battlefront.cbp Code::Blocks Project //----------------------------------------------- /// This file's …

Software Development audio c++
Member Avatar for Chuckleluck
0
710
Member Avatar for some_coder

Hello, I made the following code to convert known datatypes to bytes: [CODE]template <class T> void convertToByte(const T *t, PBYTE pbArray) { DWORD dwSize = sizeof(T); memset(pbArray, 0, dwSize); memcpy_s(pbArray, dwSize, reinterpret_cast<LPCVOID>(t), dwSize); } [/CODE] But i was wondering how i'd go about it without passing a datatype into the …

Software Development c++
Member Avatar for some_coder
0
183
Member Avatar for bibiki

hey there, I am trying to test strings using regex to make sure that the string may represent a monomial. that is, it must be 123123213x^213123. I am having difficulties to find any helpful information on how to test for ^. I am trying this: [+|-][0-9]*[.][0-9]*[x\^]? but I get a …

Software Development java regex
Member Avatar for bibiki
0
116
Member Avatar for lundon

i searched for similar threads but couldnt find any. i write python scripts ..but i want to store them in someother folder eg /Desktop/... the scripts get executed from the unix terminal..however the python intepreter(initialised by typing python in terminal window )is not able to find the files. i changed …

Software Development python unix
Member Avatar for Trentacle
0
162
Member Avatar for gourav1

[CODE]public class A extends Applet implements MouseListener,MouseMotionListener{ public void init(){ addMouseListener(this); addMouseMotionListener(this); } }[/CODE] please tell me that what "this" means here!! actually, what argument addMouselistener() function want ? i have seen API, in that it is given "MouseListener e", how it is true here ?? tell me please!! here …

Software Development api java
Member Avatar for NormR1
0
139
Member Avatar for winecoding

I have the following hashed structure [CODE]$chainStorage{$R1}{$S1}{$C1}{@A1}[/CODE] [QUOTE]$chainStorage = { 'ACB' => { 'E' => '06' => [100, 200, 95] 'B' => '23' => [20, 1000, 05, 30] }, 'AFG' => { 'C' => '24' => [18, 23, 2300, 3456] }, 'HJK' => { 'A' => '12' => [24, 25, …

Software Development perl
Member Avatar for d5e5
0
452
Member Avatar for Dman01

Hi community First I want to thank everyone who will look through this, because it's a longer post. I'm currently reading a book on AI by Mat Buckland. I'm re-building Mats entitymanager, though I just copied it. He used std::map to collect all entities as pointers which are cross referenced …

Software Development app-store c++ oop
Member Avatar for Dman01
0
3K
Member Avatar for yash_code

[CODE]private void Form7_Load(object sender, EventArgs e) { try { this.label15.Text = a.textBox3.Text + " Rs"; label32.Text = label15.Text; this.label18.Text = a.textBox7.Text + " %"; label26.Text = label18.Text; this.label4.Text = a.textBox6.Text + " Rs"; label24.Text = label4.Text; this.label17.Text = a.textBox4.Text + " %"; label28.Text = label17.Text; this.label16.Text = a.textBox5.Text + " …

Software Development printer
Member Avatar for yash_code
0
301
Member Avatar for kbar1

I'd like to spend some time killing my brain cells over a small program which nevertheless uses appreciably high logic, e.g. some scientific application. I'd classify myself as a mid-range, so please go easy. Thanks!

Software Development c++
Member Avatar for mike_2000_17
0
161
Member Avatar for programing

hi can someone explain this small code how its work : [CODE]/** * @(#)Output.java * * * @author * @version 1.00 2011/12/24 */ public class Output { public static int rec(int x, int n) { if (n < 0) { System.out.println("Illegal argument"); System.exit(0); } if (n > 0) return ( …

Software Development java
Member Avatar for predator5047
0
133
Member Avatar for programing

my code should print numbers in reverse array its not have error but the lest for statement its not print array in reverse order [CODE] import java .util.Scanner; public class R { public static void main (String [] args){ Scanner input=new Scanner(System.in); int size; System.out.println("Size "); size=input.nextInt(); int [] array=new …

Software Development java
Member Avatar for NormR1
0
247
Member Avatar for kikic

I made a code in assembly 8086. I load matrix (array) in memory with dimension 3x3. but this code works just for this dimension of matrix 3x3. Could someone give me an idea how could i make it to work with dimension m x n? the array is loaded in …

Software Development assembly matrix-multiplication
Member Avatar for kikic
0
230
Member Avatar for Dakot

hello,i must solve this problem : "Sum all even digits of a given number. That's what i've got so far. [CODE] #include <iostream> using namespace std; int main() { int sum = 0 , num; cin>>num; while(num > 0) { sum+=num%10; num/=10; } cout<<sum; return 0; } [/CODE] the problem …

Software Development c c# c++
Member Avatar for burcinerek
0
165
Member Avatar for mpooley

I have a datatable - 1 of the columns is a double so i read it like this Dim num As Double = Drow(1) I get an error about late binding here (with option strict on) I have tried converting to a double eg Dim num As Double = convert.toDouble(Drow(1)) …

Software Development vb.net
Member Avatar for mpooley
0
85
Member Avatar for programing

can help me in this code i made it to check if a given number is plindrom or not [CODE] import java .util.Scanner; public class PNumber { public static void main(String[] args) { System.out.println("Enter size "); Scanner input = new Scanner(System.in); int size = input.nextInt(); int [] array=new int [size]; …

Software Development java
Member Avatar for .:n'tQ-boy:.
0
202
Member Avatar for Sars

Hi guys. Im a noob programmer trying to make a trainer. This is just for hobby. I been using borland c++ builder. I made my dialog and button. I need the button to when pressed access a process and change the value of 5 offsets. I have the offsets and …

Software Development c++ email ide
Member Avatar for richieking
0
304
Member Avatar for ThePythonNoob

Hi guys I need some help with a tic tac toe game I made, the problem[s] is that it will not display that there is a tie and when you win it will run the computer move function and then it will say you have won. It is something to …

Software Development python
Member Avatar for ThePythonNoob
0
224
Member Avatar for devindamenuka

Hi, I have to develop a C++ programme for airplane booking company where I have a one plane and 42 seats in the plane There are 1st class and 2nd class and somking and nonsmoking areas. this is a assignment I have to do. I dont need any code but …

Software Development c++
Member Avatar for VernonDozier
0
159
Member Avatar for Findlebot

Okay, I need to write a maze solver for the maze in the text file (yes it is an assignment). I am not asking for a direct answer, I just want someone to propose ways of solving the maze( I also have to mark the paths taken in the maze). …

Software Development python
Member Avatar for 0x69
0
3K
Member Avatar for sofia85

Hi, I need some help getting the hypergeom distr. I've started with this code, but it doesn't seem work: [CODE]def logchoose(n, k): lgn = special.gammaln(n+1) lgk = special.gammaln(k+1) lgnk = special.gammaln(n-k+1) return lgn - (lgnk + lgk) def hypgeo(x, r, b, n): return exp(logchoose(r, x) + logchoose(b, n-x) - logchoose(r+b, …

Software Development python
Member Avatar for Gribouillis
0
105
Member Avatar for jackbauer24

Have a look at this...[QUOTE]>>> chores = 5 >>> paper_round = 30 >>> spending = 10 We’ve just created variables named ‘chores’, ‘paper round’ and ‘spending’. We can then re-type the equation to get: >>> print (chores + paper_round - spending) * 52 1300 16 CHAPTER 2. 8 MULTIPLIED BY …

Software Development python
Member Avatar for jackbauer24
0
178

The End.