132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Nidhi S.

[CODE]import java.awt.*; import java.awt.event.*; import java.awt.image.*; import java.io.*; import java.sql.*; public class RefHistTest { public static void main(String args[]) { int iw2, ih2; Image img2; int pixels2[]; double[] hist2 = new double[256]; int y; ResultSet r; try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection c=DriverManager.getConnection("jdbc:odbc:CBIRS"); Statement st=c.createStatement(); r=st.executeQuery("select Images from ImageTable"); byte[] bytes=null; while(r.next()) …

Software Development java sql
Member Avatar for Nidhi S.
0
104
Member Avatar for samsons17

I got an assignment to be done.. Given a sequence of positive integers. You need to find the number of triples in that sequence. For this problem, (x, y, z) constructs a triple if and only if x + y = z. So, (1, 2, 3) is a triple, where …

Software Development c++
Member Avatar for samsons17
0
229
Member Avatar for muze

hello guys...i have a LPTSTR variable and I want to show that on console how do I do that..Here is what I have but, off course it does't work..if it is tooo simple question, plz excuse me...thanx [code=c] lpszDevName = (LPTSTR)((LPBYTE)lineDevCaps + lineDevCaps->dwLineNameOffset); printf("%s",lpszDevName); [/code]

Software Development c++
Member Avatar for muze
0
168
Member Avatar for planem997

im getting this error messages "end of statement expected" Public Class Form1 [U]Inherits System.Windows.Forms.Form[/U] that is what is causing it Please help me fix it thanks Adam

Software Development vb.net
Member Avatar for G_Waddell
0
162
Member Avatar for wintercold

I'm a newbie in C++. How can I create a game of tic-tac-toe game using simple codes in C++? Any answers would be much appreciated.. Thanks!:)

Software Development c++
Member Avatar for Greywolf333
0
3K
Member Avatar for progcomputeach

I thought it would be good to write down a list of things you can do to improve your programming and job prospects when you have learned what you need to. To get the ball rolling: a. learn the syntax of the language(and a Framework if there is one. E.g. …

Software Development
Member Avatar for Rashakil Fol
0
155
Member Avatar for jemz

hello can you help me how can i print asterisk to form triangle like this [CODE] * *** ***** ******* [/CODE] here is my code [CODE] int main() { for(i=0;i<10;i++) for(j=0;j<i;j++) { printf("*"); } printf("\n"); getch() return 0; } [/CODE] please help me hoping for your positive responds...thank you in …

Software Development c
Member Avatar for jemz
0
73
Member Avatar for herit02

it was regarding in vb.net text operations, i want to replace the text by finding some particular text. but the problem arises when the starting and the at the end delimiter of the string is something same every-time but middle thing keeps on changing so how can i work out …

Software Development asp.net vb.net
Member Avatar for GeekByChoiCe
0
135
Member Avatar for Naynah

I'm stuck on the fifth stage of my assignment, the question is; 'Add in code to the key-press event handler so that the 'person' is constrained to move within the array and cant' walk through a wall.' I'm not sure how i'm supposed to update the curindex, i really need …

Software Development python
Member Avatar for TrustyTony
0
213
Member Avatar for pradn

Hello, I am a new bee in developing large java projects so need your help in this regard. As a part of our project we need to upload a image to a site(say picasa) or any photo sharing site. I would like to know whether it is possible to retrieve …

Software Development java
Member Avatar for peter_budo
0
63
Member Avatar for shapam

can any one suggest me how to java path..

Software Development java
Member Avatar for peter_budo
0
107
Member Avatar for jrgoh

great masters, i am in desperate need of help. i have a text file like this: (employee.txt) john,a100,1 bob,a200,2 chris,a300,3 i need a very small program that when i enter an employee number(ex. "a200"), it will display the name and number on the same line. thanks.

Software Development c
Member Avatar for Ancient Dragon
0
123
Member Avatar for perryg30313

I have a datagridview control on a form that I'm trying to select programmatically. My problem is, it's selecting the row in the grid when I use Datagridview1.rows(Index).selected = True However there is a margin on the left side of the datagrid that only get's the focus (or the little …

Software Development vb.net
Member Avatar for Mariandi
0
112
Member Avatar for acash229

The timer is not working perfectly. it gives a very off estimate of the elapsedtime each time. Please Help [code] import javax.swing.*; import javax.swing.border.*; import java.awt.*; import java.awt.event.*; import java.util.Random; public class JumpingPanel extends JFrame{ public static final int BUTTON_WIDTH = 45; public static final int BUTTON_HEIGHT = 45; static …

Software Development java java-swing
Member Avatar for brandonrunyon
0
292
Member Avatar for .:Pudge:.

How do I change the following code to be from a sum of squares to 100 to a sum of cubes? If you can help will you please point out the line(s)? Thanks. [CODE]# FILE = figA4.s # From jws@cs.uga.edu Tue Oct 7 08:46 EDT 2003 .text .align 2 .globl …

Software Development assembly
Member Avatar for Greywolf333
0
107
Member Avatar for Arthas

Hi, I am trying to use BOOST threads with SDL. I write a code and run, but the program does not run correctly(i.e i cannot move the output window and i have to force terminate it.) Also during compilation a warning is given as: [b]1>LINK : E:\Program Files\src\threading\example\Debug\example.exe not found …

Software Development c++
Member Avatar for Stefano Mtangoo
0
486
Member Avatar for Carrots

Hi, I am starting to try and create windows forms using C# in Visual Studio 2008. I added a button to my form, and when I clicked it, the event handler code was generated as expected: [code=c#] private void button1_Click(object sender, EventArgs e) { } [/code] The book I am …

Software Development visual-studio
Member Avatar for marketingmaniac
0
185
Member Avatar for nix_xin

[TEX]. . . i need some tips on programming java with looping structure, tnx . . .[/TEX]

Software Development java
Member Avatar for brandonrunyon
0
138
Member Avatar for swathys

hi, Does anyone knows on how to update records from 1 text file into 2 different sql database. Name of the sql Table is Payment2SQL_Success_P() & Payment2SQL_Success_E() is the code below is on the right track. [CODE=vb.net] Select Case "AGENCIES" Case AGENCY_AV Or AGENCY_SR Or AGENCY_IP Or AGENCY_TM Or AGENCY_MS …

Software Development sql vb.net
Member Avatar for samuel_1991
0
180
Member Avatar for utkarsh009

everything worked for me in turbo c++ but not in g++. tell me why do i always have to use "using namespace std;" while compiling with g++? also there is no conio.h, so how do i use the command: getch () then?

Software Development c++
Member Avatar for Ancient Dragon
0
242
Member Avatar for NewLegend

Hello I tried to delete all the Linked List But I can not so Is there a way to delete the all Linked List? [CODE]struct input { int id; struct input * next; }; typedef struct input ie;[/CODE] [CODE]class input_events { typedef struct input ie; private: ie *l; public: ~input_events(); …

Software Development c++ linked-list
Member Avatar for NewLegend
0
198
Member Avatar for raym.mart

Can someone help me solve this! thx Conditional structure , include also the console result. 1. Using switch case design and write a java application that takes as input a single letter and displays the corresponding digit on a telephone. The letters and digits on a telephone are grouped this …

Software Development java
Member Avatar for raym.mart
0
208
Member Avatar for sciprog1

Hello Members, I am trying to multiply two matrices using multithreading. I get a NullPointerException on the line that is commented in Bold. Following is the entire code. Any input is much appreciated. [CODE]import java.lang.*; import java.io.*; public class Matrix_Mult extends Thread { static int a[][]; static int b[][]; static …

Software Development java multithreading
Member Avatar for sciprog1
0
100
Member Avatar for Rhuntsman21

I am using this code to clear a form but it is throwing an error. Any help is appreciated. [CODE=c sharp]public static void ClearForm(Control parent) { foreach (Control ctrControl in parent.Controls) { if (object.ReferenceEquals(ctrControl.GetType(), typeof(TextBox))) { ((TextBox)ctrControl).Text = string.Empty; } else if (object.ReferenceEquals(ctrControl.GetType(), typeof(RichTextBox))) { ((RichTextBox)ctrControl).Text = string.Empty; } else …

Software Development
Member Avatar for Rhuntsman21
0
145
Member Avatar for Vllinator

Hi im trying to store the current date and time to a file. When i print it, it is in the US format - MM/DD/YYYY [code=c] #include <time.h> _strdate( dateStr ); cout << "Current date: " << dateStr << endl; _strtime( timeStr ); cout << "Current time: " << timeStr; …

Software Development c++
Member Avatar for Ancient Dragon
0
167
Member Avatar for Vllinator

Hi im writing a function in a program that lets the user delete a specific record in a file, the user is also able to recover this record. The easiest way i found is when the record is deleted, the record will be set to deleted using bool. Then in …

Software Development c++ file-system ios
Member Avatar for Ancient Dragon
0
2K
Member Avatar for kuchick32

I have to make a call-by-reference and I already have all of the program and it works I just have a little problem. I don't know how to get the output to say what I want it to say. It needs to give me the street, city and zip that …

Software Development c++
Member Avatar for Ancient Dragon
0
114
Member Avatar for freddypyther

Hi! I've searching for python IDE's and I've not found anything like NetBeans for java. I downloaded Dr Python but was too simple, I tried to install PyDev on Eclipse but I got some errors. I saw some screenshots about SPE and I said whoa! that seems good, but I …

Software Development gui ide java-netbeans python
Member Avatar for brandonrunyon
0
987
Member Avatar for Tarkenfire

Alright, making a dice roller...because I need a dice roller. Anywho, in the process of testing it came across an exception that I can't figure out how to remedy. The exception gets thrown at line 33 below: Source code: [CODE]import random #PUT FAILSAFES IN THIS FUNCTION. #gets dice information def …

Software Development python
Member Avatar for Tarkenfire
0
174
Member Avatar for didijc

Hey everyone... I need some help...please... Using the web browser control, I want to navigate to a URL and move my mouse over ANY element on that website and have a focus rectangle display around it... I've written a whole bunch of code but none of it seems to work …

Software Development c++ web-browser
Member Avatar for didijc
0
177
Member Avatar for praky

I want to know the differences in between two? also is this code equivalent [CODE] char ch; FILE *fin; ch = fgetc (fin); [/CODE] [CODE] char ch; ifstream fin; fin>>ch; [/CODE]

Software Development c++
Member Avatar for brandonrunyon
0
428
Member Avatar for iw2z

Hi everyone, I'm doing a little project after a long period of no c++, so please forgive me for any possible stupid mistakes. Basically I have 2 cpp files, in first.cpp I define namespace 'myNS', and in second.cpp I define class 'myClass'. The problem is that I have a pointer …

Software Development c++
Member Avatar for mike_2000_17
0
264
Member Avatar for winnie89

Hi! i was wondering how I could make sure that the user inputs the proper values in my code. I've been looking online and seen things like cin.good() and cin.fail() but the explanations aren't really straightforward and a little confusing. I was wondering if anyone could help me implement the …

Software Development c++
Member Avatar for mrnutty
0
244
Member Avatar for glenn612991

this is the program #include <iostream> using namespace std; int main() { int digits; cout<<"Enter 10 digits wether positive or negative: "; cin>>digits; //i dont know what to use so that i can separate positive and negative numbers and display it on screen.. //help me pls.., }

Software Development c++
Member Avatar for Vllinator
0
2K
Member Avatar for hurbano

so i wrote this small piece of code. it simply waits for the user to enter a command, and then, depending on the command, a different message appears. when i enter the simple words like debug and execute, it does what i want it to do. now, when i try …

Software Development c++
Member Avatar for Vllinator
0
75
Member Avatar for Usmaan

Hi Folks, I am creating a GUI application and I've come to a situation where I need to check whether a button has been clicked. So logically: ---If--- the "button" has been clicked -> Do this. As soon as that button is clicked, it should jump to a method which …

Software Development gui visual-studio
Member Avatar for Usmaan
0
18K
Member Avatar for liran ritkop

Hi I want to build some objects that have a little difference between them. But i wonder how would i do it - 1. build a class with some variables and build objects out of him, or - 2.build class for each object, with the functions dedicated to this 'only …

Software Development c++ oop
Member Avatar for mike_2000_17
0
128
Member Avatar for judithSampathwa

Hi there, I have a question regarding datagridview, I add data to the datagridview in an interface and all the validation for the datagridview cell is in the datagridview cell validating event for the datagridview. I display the data of the is datagridview in another interface and make the cells …

Software Development vb.net
Member Avatar for Geekitygeek
0
4K
Member Avatar for winnie89

I'm trying to write a code for class and after compiling the first half with g++, just make sure it'd work so far, I get all these errors. After looking them all up I don't understand why i'm getting these errors or how to fix them. If anyone could please …

Software Development c c# c++
Member Avatar for mitrmkar
0
213
Member Avatar for hinks

hello everyone i need help with a search button for visual basic 6.0 however im getting a run-time error '3077' error Private Sub search_cmd_Click() Dim txtsid As String txtsid = InputBox("Enter The Staff ID In Lowercase", "Staff Search") If txtsid = "" Then Exit Sub If MsgBox("Would You Like To …

Software Development visual-basic
Member Avatar for snurd
0
100
Member Avatar for redZERO

Hi everyone I have a project that I have created in Netbeans. I would like to deploy it as a JAR file, so i have "build"'ed it and I have a jar which runs nicely in the /dist folder. Problem is, the program in question requires reading from and writing …

Software Development file-system java
Member Avatar for NormR1
0
2K
Member Avatar for therock4u

Dear all, Why do i need to recompile the code? Where as the X86 the architecture is same?? The final instruction are also going to be same right??? I assume there must be some difference between windows and linux executable handling in the sense of program loading (loader) but can …

Software Development c
Member Avatar for -Powerslave-
0
482
Member Avatar for blknmld69

I have 22 errors for cannot find symbol.....Please help! [CODE] import javax.swing.*; //needed for swing classes import java.awt.event.*; // needed for the action listener import java.awt.*; //needed for the boader layout class import java.io.*; //need for the file and IOException import java.util.Scanner; // needed for the scanner class import java.util.List; …

Software Development java java-swing
Member Avatar for NormR1
0
202
Member Avatar for Borkoff

Hi everybody! I must make program in c++ that reads unknown number of words from a text file to char arr which after that i will have to sort the words by the first letter by alphabet in a stack. can any body help me please? txt file: den rock …

Software Development apple c c# c++ ios
Member Avatar for Borkoff
0
151
Member Avatar for notmasteryet

i m in A csc class in college. And everytime the prof. Gives a lab i have a hard time starting it i always neeed some classmate to help me start it ... Any ideas on how i should approach the labs

Software Development c++
Member Avatar for Fbody
0
359
Member Avatar for m_amruta

Hello, I want to read a txt file, extract some of the fields and insert that in d/b. Problem- my txt file does not have a fomat, all I know is I want to extract row 29 from col 6to 9. I am using C#.net for this. Thanks in advance, …

Software Development
Member Avatar for peter_budo
0
192
Member Avatar for Arthas

I have been trying to build POCO library for few days but i have been unable to. When I try to build the foundation library from my vc++2008(i have windows 7) it gives the following error: >>>>>>>>>>>>>>> Performing Custom Build Step Project : error PRJ0003 : Error spawning 'cmd.exe'. Project …

Software Development c++
Member Avatar for Arthas
0
5K
Member Avatar for Alochai

[CODE]/* Name: Copyright: Author: Date: 14/09/10 21:17 Description: */ #include<iostream> #include<istream> #include<ostream> #include<string> int c_f_fraction(); int c_f_decimal(); int c_f_percent(); int convert_to(); int convert(); int help(); std::string convert_code(""); float c_f_fraction_1(0); float c_f_fraction_2(0); float c_f_result(0); float c_f_decimal_1(0); float c_f_percent_1(0); int help_code(0); int main() { std::cout << "\nWhich would you like to convert, …

Software Development c++
Member Avatar for Alochai
0
1K
Member Avatar for DaCaj

I am getting this error when trying to use a constant defined in a class in one file as an array size in a different file. I am using MSVC 2008. Here is my code. .h: [CODE] #ifndef GLOBALS_H #define GLOBALS_H #include "stdafx.h" class GlobalVars { public: GlobalVars(); static const …

Software Development c++
Member Avatar for vidit_X
0
637
Member Avatar for GDICommander

Hi, everyone! I'm in search of an associative container that does not need an implementation of operator< for the key type. std::map and std::set requires that, so I think that I need another kind of associative container. I can always implement my own contained using a vector of pairs, but …

Software Development c++
Member Avatar for GDICommander
0
103

The End.