132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for kylealb007

package guessinggame; import java.awt.FlowLayout; import java.awt.Color; import java.awt.event.ActionListener; import java.awt.event.ActionEvent; import javax.swing.JFrame; import javax.swing.JButton; import javax.swing.JLabel; import javax.swing.JTextField; //create class GuessingGame that extends to JFrame public class GuessingGame extends JFrame { public static void main(String args[]) { //define variables private JLabel instruction1JLabel; private JLabel instruction2JLabel; private JLabel instruction3JLabel; private JLabel …

Software Development java java-swing
Member Avatar for JamesCherrill
0
165
Member Avatar for Kleon

sorry i am very very new in programming. My question is at switch statemnt if user type different of 1,2 or 3 i dont want to break but i want to start from beginning asking user again to type 1, 2 or 3, i know how to do with goto …

Software Development
Member Avatar for ddanbe
0
107
Member Avatar for Jed_1

Okay, so I've gotten my second project in C++ and this seems pretty extream for a second project to me, but I'm determined to get this working. so my teacher suplied two header files (set.h and bingoball.h) our job is to take those files and program a bingoball.cpp and a …

Software Development c++
Member Avatar for Jed_1
0
550
Member Avatar for charishma

Simply by interchanging the numbers in printf I.e, 8. printf("before swap:First Var.=%d\tSecond Var.=%d\n" ,i,j); 9.printf("After Swap: First Var.d\n" ,j,i);

Software Development c
Member Avatar for Ancient Dragon
0
260
Member Avatar for Xen_1

Hello, i just made this program to push the '5' button repeatedly when I hold the 'f12' button and this works just fine but i have a question! When I run this program while I'm playing super mario bros this program does not work! I use the 5 button to …

Software Development c++
Member Avatar for Ancient Dragon
0
211
Member Avatar for manel1989

hi every one! i have 2 applications one on eclipse and the other on VS2010C++, so i want to send parameters from the java code to the other, i just konw how to execute the c++ code from the java code. what i want is this : send paramters from …

Software Development java
Member Avatar for manel1989
0
324
Member Avatar for caswimmer2011

Hey all! I am in college doing a speech on programming and one of my topics is to explain the difference between Java, C, and Objective C. I have been programming with Java for 3 years now and just started with C last month, but I don't know the differences …

Software Development java objective-c
Member Avatar for Dani
0
458
Member Avatar for Stein102

Can anyone recommend me a good Data Structure and Algorithm book for java programmers? Possibly intended for game development, but not required to be. Thanks.

Software Development algorithm data-structure java
Member Avatar for prakash.seetharaman
0
115
Member Avatar for hmx7

A GPA, or Grade point Average, is calculated by summing the grade points earned in a student’s courses and then dividing by the total units. The grade points for an individual course are calculated by multiplying the units for that course by the appropriate factor depending upon the grade received: …

Software Development python
Member Avatar for hmx7
0
790
Member Avatar for fafa70

hi. i am working on a project to find colors. i've stucked in finding purple color. i've used many application for finding color ranges and i've tested many numbers. i am using cvInRangeS function. i really appreciate if someone helps me. thanks.

Software Development c
Member Avatar for ben25x
0
547
Member Avatar for bishop_kv

hi again :) i have problem with finding cyrilic words in my txt file...words in txt file are arranged like this: one један two два three три etc... before word "one" and after word "један" there is blank space... so problem starts in button3_click... what ever i type in texbox3 …

Software Development audio vb.net
Member Avatar for bishop_kv
0
205
Member Avatar for LokiSoliman

so, we have this school assignement in which we are asked to make a program that would ask you to enter two integers, them the program should add the two integers and all the even integers between them. example: integer1: 1 integer2: 10 (1 + 10 + 2 + 4 …

Software Development c++
Member Avatar for Ancient Dragon
0
164
Member Avatar for bourisly

am new student to c++ and am taking this course , I faced a little problem solving my assignment question .. this is the question..... to write a program that reads in 5 whole numbers and outputsw the sum of all the numbers greater than zero , the sum of …

Software Development c++
Member Avatar for AndrisP
0
202
Member Avatar for xNeverLetGo

Everything is coming out except for the average, what am I doing wrong? #include <iostream> #include <string> #include <iomanip> using namespace std; int main() { string ssnumber; int exam1 = 0, exam2 = 0, exam3 = 0, final = 0,count = 0, sum = 0; int average1 = 0, average2 …

Software Development c++
Member Avatar for Ajit_2
0
335
Member Avatar for Farhan_4

Hello everyone I have a task to generate 300 random particles in a 2-D plane ( 1 x 1) The steps are given as : 1. Generate two numbers 2. Scale them to max dimension 3. Repeat 1 and 2 in a 'for loop' to generate 300 particles ans store …

Software Development c
Member Avatar for Farhan_4
0
367
Member Avatar for lena1990

hi all i have log file with size over 45GB and more than 110 million lines and it is stored in server i want to read the file from the server and insert it to an oracle database in another server but it takes along time so is there is …

Software Development java oracle
Member Avatar for JamesCherrill
0
190
Member Avatar for ztdep

Dear friends: I compile my procedure with mpicc, it can give correct execute file. mpicc -o testprint testprint.c libptools_ppf.a But when i compile it with mpic++, it gives me some error about undefined reference. Could you please help me out. mpic++ -o testprint testprint.c libptools_ppf.a testprint.c:25:31: warning: deprecated conversion from …

Software Development c++
Member Avatar for rubberman
0
399
Member Avatar for YumnaZia

this is my code, the only problem I'm facing is that the jseperator is not appearing! import java.awt.event.*; import java.util.*; import javax.swing.*; import java.awt.*; public class AdmForm extends JFrame{ Container con1= getContentPane(); Container con2=getContentPane(); JFrame f2= new JFrame(); JButton b1= new JButton("Click me!"); JSeparator sep= new JSeparator(SwingConstants.HORIZONTAL); AdmForm(){ setSize(300,300); setLayout(null); …

Software Development java java-swing
Member Avatar for JamesCherrill
0
127
Member Avatar for pardeepkhatri

i have 4 pictureBox which are hidden, and now i want to show them one by one, how it can be done?????

Software Development c#
Member Avatar for deceptikon
0
276
Member Avatar for mheja

please help me to do with my system. i want my txtempid.Text is auto generated evrytime i will add new employee . Field = "emp_id" i'm using vb 6 as ADODB and Mysql database thanks in advance...God Bless

Software Development visual-basic
Member Avatar for MEENAU
0
638
Member Avatar for andrew.mendonca.967

CSCI-15 Assignment #2, String processing. (60 points) Due 9/23/13 You MAY NOT use C++ string objects for anything in this program. Write a C++ program that reads lines of text from a file using the ifstream getline() method, tokenizes the lines into words ("tokens") using strtok(), and keeps statistics on …

Software Development c++ open-source
Member Avatar for kal_crazy
0
285
Member Avatar for Alessandrorenzi

Hello, I need to pass an array from a VB6 application to another application. How can I do? Thank for help

Software Development visual-basic
Member Avatar for Alessandrorenzi
0
184
Member Avatar for CodyOebel

Ok so this is the code. hEdit=CreateWindowEx(WS_EX_CLIENTEDGE, "EDIT", "", WS_CHILD|WS_VISIBLE|ES_MULTILINE|ES_AUTOVSCROLL|ES_AUTOHSCROLL, 50, 100, 200, 100, hWnd, (HMENU)IDC_MAIN_EDIT, GetModuleHandle(NULL), NULL); ok so that creates the asset (our edit field to type into). I can use the below code to display what is in the text box in a message box. LPWSTR buffer[256]; …

Software Development c
Member Avatar for Ancient Dragon
0
220
Member Avatar for toneranger

Hi, Imagine a vector of structures with each structure containing various variables. struct Data { double x double y double z } vector<Data> Dataset vector<Data>::iterator it //input some data from a file into DataSet How can I iterate over this vector, comparing say, x at the nth row to the …

Software Development c++ data-structure dataset
Member Avatar for toneranger
0
309
Member Avatar for Sam R.

I need to know how to remove spaces from a string using pointers in C++. Since I'm in senior year in school I'n not used to quite complex programming. I tried doing this program but I think I'm totally hopelessly terrible wth pointers (I was out sick, the day my …

Software Development c++
Member Avatar for NathanOliver
0
1K
Member Avatar for Jason_6

Im completely new to programming, and this is my problem. For example, if a train travels 40 miles per hour for three hours, the distance trav-eled is 120 miles. Design a program that asks the user for the speed of a vehicle ( in miles per hour) and how many …

Software Development c++
Member Avatar for Jason_6
0
397
Member Avatar for EXTRA_RICE

How can i send an email from vb6.for example my driver’s license will be expired in a month. I want my vb6 to send an email to notify me about the expiration. Anyone can help me? Thanks in advance.

Software Development email visual-basic
Member Avatar for SaRa Ahmad
0
303
Member Avatar for dp121307

I'm making a class dataset. In it, I'm trying to set the minimum max and the mean. In my given test, I am asking the user to input as many grades as they would like so what I did, for example in minimum is this.. class Dataset(object): def __init__(self, grade): …

Software Development dataset python
Member Avatar for TrustyTony
0
697
Member Avatar for zachattack05

Good morning strangers! I haven't posted in a while, but you always seem to be helpful... I have an application that uses SQL as a back-end to store data so that multiple users can access it at once. The question I have is, the requirements have changed and the SQL …

Software Development sql
Member Avatar for zachattack05
0
256
Member Avatar for laavanya

combo box: how to get values associated with it..please help in minutes please.....:-|

Software Development
Member Avatar for mmcdonald
0
311
Member Avatar for kay19

Hello, having a hard time using my Faculty class, where I have to initialize/createObject from my Education class to Faculty. I would like to use the constructors from the Education class, to be implemented to my Faculty class. Here is my attempt Here's my two codes. public class Education { …

Software Development java
Member Avatar for JamesCherrill
0
320
Member Avatar for NardCake

Hello! So recently I have written a lexer/tokenizer and am working on a parser for a language with a friend. At this point everything is going great but I'm beginning to think about how I want to do code generation. Are there languages or systems that generate for example C …

Software Development c++
Member Avatar for mark5rockzz_1
0
356
Member Avatar for 9tontruck

HI I am trying to make a dll file that performs its tasks using CUDA library. Here is a simple version of my code: CUDADll.cu ` #include <iostream> #include "cuda.h" #include "cuda_runtime.h" #include "device_launch_parameters.h" __global__ void test(int a, int b, int* c) { *c = a+b; } extern "C" __declspec(dllexport) …

Software Development c++ display
Member Avatar for mark5rockzz_1
0
2K
Member Avatar for Xakzi

Hello! I am having a bit of a hard time figure out how to code this thing.. I have just started coding by using windows form application and need some help.. I have successfully coded so that I can open a txt file without any problem, but it is reading …

Software Development c++ file-system microsoft
Member Avatar for Xakzi
0
4K
Member Avatar for spowel4

I have a tab control with three tabs and I have added a datagridview to each of the first two tabs at design time. Programatically, when the second tab is selected, I am attempting to create columns and add them to the datagridview on the second tab. However, they show …

Software Development
Member Avatar for spowel4
0
138
Member Avatar for angelinrajeesha

Hi, I am trying to call the borland C++ DLL from VS 2005 .But its giving Linking Error. Tried teh below one still its not working , Extract the DEF file from DLL converted the DEF to LIB file. Any one have any idea ? Thanks, Angelin

Software Development c++
Member Avatar for Ancient Dragon
0
268
Member Avatar for stanislav.koshutin

Please help to complete beginner in programming. I work with binary stack of 2 pictures and here is the plugin I use: import ij.*; import ij.plugin.filter.PlugInFilter; import ij.process.*; import java.awt.*; protected ImageStack stack; public int setup(String arg, ImagePlus imp) { stack =imp.getStack(); return DOES_8G+STACK_REQUIRED; } public void run(ImageProcessor ip) { …

Software Development java
Member Avatar for JamesCherrill
0
236
Member Avatar for Nebil

Hi, i'm working on a system rate analysis.I just worte the code using oop. i worte a code that inserts a record into the database.when i try to insert a data nothing happens.Please fix my code. //this code is defined in a class Public Function AddWorkItem(ByVal workitemNumber As String, ByVal …

Software Development oop vb.net
Member Avatar for Nebil
0
132
Member Avatar for Fenrir()

I have created a method that changes individual rows back color based on certain criteria within the grid. I have noticed that when clicking the column headers that the grid resets the formatted rows. I would like to know what the best solution would be without impacting performance.

Software Development
Member Avatar for ddanbe
0
302
Member Avatar for mc3330418

So I'm trying to validate dates and I have this else if "bool" that always returns false. I've written this at least 10 times and can't get it to work. When I comment everything out and only try one if at a time they all work. I know it's semantics, …

Software Development c++
Member Avatar for Ketsuekiame
0
125
Member Avatar for yi625

con = Connect.ConnectDB(); String sql = "insert into table1 (" +"StudentID," +"FirstName," +"LastName," +"Contact Number," +"E-mail address," +"CarNumber)" + "values("+txtid.getText()+ ",'"+txtname.getText()+"','"+txtlast.getText()+"','"+txtnumber.getText()+"','"+txtemail.getText()+"','"+txtcarno.getText()+"')" ; try{ pst = con.prepareStatement(sql); pst.execute(); JOptionPane.showMessageDialog(null, "Saved"); } catch(Exception e){ JOptionPane.showMessageDialog(null, e); } can any one help me with this? im getting syntax error in insert into statement …

Software Development java
Member Avatar for silvercats
0
835
Member Avatar for maori

Hi guys first off excuse me if this seems noobish but i usally work in php and MySQL with some c++ a friend asked me if i could make a database application that wasn't web based for them so after doing some research i found this http://www.youtube.com/watch?v=3w2JkLcp-UA which works like …

Software Development sql
Member Avatar for maori
0
107
Member Avatar for intes2010

I have here a working HTTP request using SOCKETS but I do not know how to send POST requests. Here is my code: Dim hostName As String Dim hostPort As Integer Dim response As Integer Dim iphe As IPHostEntry = Dns.GetHostEntry("www.yellowpages.com") hostName = iphe.AddressList(0).ToString() hostPort = 80 response = 0 …

Software Development dns first-post vb.net
0
128
Member Avatar for maurices5000

I bought a book to help me learning WCF. Lots of people complained that the book was written for VS 2005 at first then there was a reprinting for VS 2008. What it seems is that the code for VS 2005 would not work in VS 2008. I'm wondering why? …

Software Development visual-studio
Member Avatar for maurices5000
0
266
Member Avatar for Grandiago

Hi. how do you make a registration system using turbo C++? like for example: when i run the program i will register my username and password and my information(user and pass) will be saved. So that when i log in. i will just input my user and pass, and i …

Software Development c++
Member Avatar for alicante09
0
901
Member Avatar for krunal1986

hi all, how to Get country, state, zip code and Latitude and Longitude from an ip address? Thanks, kk

Software Development
Member Avatar for krunal1986
0
214
Member Avatar for joester007

> I want to create a program that will calculate the day easter will be on. The user will type in a year and then the program should calculate the day easter will be on. I'm having trouble understanding the if/else and how i can use that with the code …

Software Development c c# c++
Member Avatar for AndrisP
0
4K
Member Avatar for vividiah

how to do paging when data appears in the DataGrid is too much? thanks,

Software Development visual-basic
Member Avatar for vividiah
0
170
Member Avatar for ??!!

i really need your help and really fast. i've been working on this project where i am supposed to create a simulation of conway's game of life. A cell can only be in one of two states: alive or dead. There are two kinds of cells: ConwayCells and FredkinCells. Live …

Software Development c++
0
159
Member Avatar for jared.geli

So far I can compute and update seperately a specific row when type it in a text box. What I want now is to read and update rows automatically up until the last record. Imports System.Data.OleDb Public Class Form1 Dim MyConnection As New OleDbConnection("provider=Microsoft.ACE.OLEDB.12.0; Data Source=G:\Raw Data.xlsx; Extended Properties=Excel 12.0;") …

Software Development dataset open-source vb.net
Member Avatar for jared.geli
0
305

The End.