132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for dd2308

Hello Everyone , I have developed a windows application with mysql database server. i have installed it to client machine also. Now,the problem comes when i restart mysql server or server computer. After i restart server,client application can not able connect to server . if i disable network and enable …

Software Development c# client-server mysql
Member Avatar for dd2308
0
161
Member Avatar for stereomatching

[code] template<typename U, typename T, typename binary_functor> struct template_param_swap { binary_functor<U, T> func1; #1 binary_functor<T, U> fun2; #2 }; [/code] CH3 of modern c++ design may solve this, but I am not a template wizard and don't have the ability to make it yet. template template parameter could make #1 …

Software Development c++
Member Avatar for vijayan121
0
157
Member Avatar for eikonal

Hi guys! Pretty easy question below From the code below 'data' is made by a column of numbers, let's say 12 numbers (see below) 56.71739 56.67950 56.65762 56.63320 56.61648 56.60323 56.63215 56.74365 56.98378 57.34681 57.78903 58.27959 [CODE]def block_generator(): with open ('test', 'r') as lines: data = lines.readlines ()[5::] for line …

Software Development python
Member Avatar for eikonal
0
183
Member Avatar for ali11

First i create simple claculator.but now I am trying to change it to RPN calculator by using stack.Can some one help me((especially where to use pop method) because I don't know alot about stack.here is my codes so far. import java.util.Stack; import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; import …

Software Development java java-swing
Member Avatar for ali11
0
139
Member Avatar for Rez11

I have this assignment to do. Its been about a year since I messed with c++ and I've been refreshing my brain on the subject. The assignment is this : Your assignment is to write a program for a computer dating service. Each client gives you his or her name, …

Software Development c++ linked-list
Member Avatar for jmichae3
0
199
Member Avatar for markdean.expres

Guys I want to know to skip error massages like the JIT error messages during run-time. What I want in the program is that instead of the JIT popping out whenever an error occurs, I want to generate a msgbox instead of that JIT. Can anyone please help me, thanks...

Software Development vb.net
Member Avatar for Oxiegen
0
103
Member Avatar for FinaL111

This may be a rather simple thing to answer, but I am no programming expert. Let me explain my problem in detail: for this homework assignment I need to open up a file with simple text in it, format it so that each line is reduced to a certain number …

Software Development algorithm c file-system
Member Avatar for WaltP
0
114
Member Avatar for rohan121212

Hey i am a beginner in programming I typed the following program on my own But there are a lot of errors it it Please help me find them [CODE] #include<IOSTREAM.h> main() { int a,b,c,x; cout<<"Enter three values - \nA,B,c."; cout<<"A-"; cin>>a; cout<<"B-"; cin>>b; cout<<"c-"; cin>>c; if (a>b) x=1 else …

Software Development c c# c++
Member Avatar for rohan121212
0
159
Member Avatar for some00001

Hello, if i want the computer to guess a number between 1 - 100 i'll do in java [CODE] int min = 1; int max = 100; [/CODE] I have already create a random number for the computer. so the first random number the computer will choose is 49 as …

Software Development java
Member Avatar for DarkLightning7
0
91
Member Avatar for VIPER5646

Hi all With the following SQL " Dim Query As String = "UPDATE JobName_tbl SET [JobDate]=@NewDATE, JobAddress=@Newaddress Where JobID=@ID" nothing happens nothing gets updated nor do I get an error. But as soon as I remove the [JobDate]=@NewDATE, it works fine. Hope someone can help me with this situation. Here …

Software Development sql vb.net
Member Avatar for VIPER5646
0
146
Member Avatar for Panathinaikos22

Im looking for any Windows Application written in Assembly, just 1 form with 1 button :)

Software Development assembly
Member Avatar for NotNull
0
113
Member Avatar for ashsailesh

hey guys i am developing a game... in which when i press a button it has to change its color... so , i created button, used action listener to it... [CODE] if(ae.getActionCommand().equals("b1")) // here b1 is the button { b1.setBackground(Color.black); frame.invalidate(); frame.validate(); System.out.println("button b1 pressed...!!!"); } [/CODE] i also used …

Software Development gui java
Member Avatar for hfx642
0
183
Member Avatar for baseballer

I have this project that I'm working on for my class, but I'm getting stuck with infinite loops and I'm not really sure what's wrong. I'm supposed to assume that at time 0, the ball is at height 0 and the velocity is input by the user. After each second …

Software Development java
Member Avatar for hfx642
0
117
Member Avatar for .Tyler

Hey guys. I need help with a program I'm trying to write. I need to read scores from an ASCII file and display them. I also need to display an error message for any score that falls outside of the range of 0 to 100. And after doing that, I …

Software Development java
Member Avatar for JeffGrigg
0
105
Member Avatar for pennywise134

Hey everyone, I am in an introduction to programming course, and I am tryin to solve the following problem using C#. I know that I am to use arrays, however I am a little lost and was hoping that somebody could give me some assistance. [ATTACH]20610[/ATTACH] Here is the code …

Software Development
Member Avatar for D19ERY
0
707
Member Avatar for AquaNut

Hi All, I am trying to do a search on a index/row number taken from a dataview i.e. I enter 379437 in the input box which I know has a index/row number of 6. Now when I replace the Rows(index) with a Rows(6) I get the results that I want. …

Software Development dataset vb.net
Member Avatar for Phasma
0
1K
Member Avatar for cafegeo

I'm not sure if my title makes sense, but I have an assignment and need some guidance on how to approach this. It's an Accounts Receivable program for ABC Hardware Company. I have a Master file with cust numbers, cust name and balance due. I also have a Transaction file …

Software Development c++
Member Avatar for cafegeo
0
269
Member Avatar for iamthesgt

This is homework. I was writing a bash script that accepts a list of group names on the command line and produces a group report detailing the group id and the number of group members identified in /etc/passwd for each group. Output will look like: Group Report Group GID Count …

Software Development shell-scripting
Member Avatar for iamthesgt
0
307
Member Avatar for shandoosheri

Hi guys i have a problem that i have a text file which contains very long text like : welcome to all, how are you doing, etc.. so i need to cut the text till each comma and put it in a separate file like i want to pu [welcome …

Software Development file-system
Member Avatar for thines01
0
185
Member Avatar for nightcrew

convertHex changes all occurrences of %XX (XX are exactly two hexadecimal digits) to ascii characters. Returns the number of replacements made. Here are the rules: Except when defining your character arrays, you must use pointer notation for all c-string manipulation--no []'s allowed. You may use any function from the cctype …

Software Development c++
Member Avatar for raptr_dflo
0
1K
Member Avatar for cdedmundson

I am working on a python version of the game Lingo. Here are the rules: [I]"Suppose the secret word is bones. Suppose you guess the word books. The computer will mark your guess as [b][o](o)k[s], where [b], [o], and [s] are letters that are in the correct position in the …

Software Development python
Member Avatar for joehms22
0
374
Member Avatar for cafegeo

Hello everyone. I am trying to pull data from a file and show it on the screen. There is a condition in the file that says if it is a "payment" or "order". A "P" and an "O" in the first column. My output becomes an infinite loop. I have …

Software Development c++ file-system
Member Avatar for cafegeo
0
228
Member Avatar for ag_17

I was using getline() function and it was getting skipped. I searched through the forum and found the tutorial on how to flush the input stream but there is one thing that is still unclear to me : getline() uses newline character as a delimiter. So when a '\n' is …

Software Development c++
Member Avatar for Narue
0
174
Member Avatar for AngelAmi

How to store values that are retrieved from mysql database into an arraylist?

Software Development java
Member Avatar for stultuske
0
90
Member Avatar for selma_ter

I use this part to make transparent the JFrame: [CODE] GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); GraphicsDevice gd = ge.getDefaultScreenDevice(); boolean opacity_supported = gd.isWindowTranslucencySupported(java.awt.GraphicsDevice.WindowTranslucency.TRANSLUCENT); if( !opacity_supported ) { System.out.println("Your platform does not support opacity."); } else { setOpacity((float) 0.85); }[/CODE] It works perfect on Windows. On the same machine I use also …

Software Development java ubuntu
Member Avatar for woodenduck
0
177
Member Avatar for Zarl

How would i make my program a .exe so people can run it, i made a simple calculator and i want to share it with some people so they can test it out.

Software Development c c# c++
Member Avatar for thines01
0
84
Member Avatar for mikepablo

For my intro to c++ class I have to create a complete program from broken algorithms The questions are (a) Print a random number between -1 and -9 to the output screen: (b) Print (to the output screen) the sum of the square roots of the numbers 1, 2, 3 …

Software Development c++
Member Avatar for ag_17
0
216
Member Avatar for kelvin924
Member Avatar for tedman102

Ok, so I'm new to programming and I'm making console programs right now. I tried making a program to draw a rectangle in a cli program. I have some logical errors in the program that prevent it from working. I'm new to C++ so go easy on me. :P [CODE]/*Program …

Software Development c++
Member Avatar for mlesniak
0
186
Member Avatar for sofia85

Hi, I'm trying to add new information, with several if loops, to a new file with append.() but I'm not sure that this works. The new file will also include some data from the f_file, that is why the if loops are there. [CODE]f=open('filename', 'r') new=open('filename', 'w') for data in …

Software Development python
Member Avatar for sofia85
0
108
Member Avatar for elkowalski

i am trying to load images for an applet using imageicon but i found out that it doesnt work so i was wondering if there is other way to load em. by the way i am trying to load them in another class that is not the main one. this …

Software Development java java-swing
Member Avatar for NormR1
0
153
Member Avatar for sjcomp

Hello, I am using a singleton pattern, which works fine. But when I decided to have a singleton of a nested class that is privately declared. [CODE]class A : public CSingletonTmpl<A> { class B : public CSingletonTmpl<B> { }; }; A* CSingletonTmpl<A>::s_Singleton = NULL; A::B* CSingletonTmpl<A::B>::s_Singleton = NULL; [/CODE] The …

Software Development c++
Member Avatar for madGambol
0
252
Member Avatar for damorph

I am a complete beginner to PERL. I am using Strawberry PERL. I am coming across text files that I need to format. I basically need to take field data that starts with a certain character and output the field data to a new file which will have all the …

Software Development perl
Member Avatar for d5e5
0
241
Member Avatar for torkolort

Hi, I have a school assignment where I need to check if one string is a substring in another string. However, we are not allowed to do any string-based comparison, we are only allowed to compare the ASCII values. So the way I do it now is to call the …

Software Development java
Member Avatar for JamesCherrill
0
169
Member Avatar for sathyapro

HI This is sathya seelan.. I want to develop a simple web application using python... it has to be like a mail interface msgs needed to be stored and login details should be stored in database pls help me with a code snippet

Software Development python
Member Avatar for Tech B
0
178
Member Avatar for collinskawere

hello. am a new student to programming! am doing c in my computer science class at university, as dev cpp as the compiler; - but am disappointed each time I try to run a program. the program just flashes off the screen! am using windows 7 professional s a platform. …

Software Development c++
Member Avatar for collinskawere
0
275
Member Avatar for lbgladson

I have a problem to Modify the Coin class to have it implement the Comparable interface. The following code is not working correctly and I don't know why. [code] public class Coin implements Comparable<Object> { private double value; private String name; public Coin(double aValue, String aName) { value = aValue; …

Software Development java
Member Avatar for lbgladson
0
139
Member Avatar for bluehangook629

I am looking for a tool that will accept an address from the user and return a 9 digit zipcode as well as validate the address or suggest an address, like on fexed or ups website. Its got to work with vb.net and asp.net Is there a tool like this …

Software Development vb.net
Member Avatar for bluehangook629
0
102
Member Avatar for valestrom

Okay, so almost the exact same code works in one of my c++/cli projects, but not the other. Both have the variables set as public, so they should be free to change. But only the first one does, and the second one does nothing. Here's the button click code for …

Software Development c++ gui
Member Avatar for valestrom
0
297
Member Avatar for geekman89

I want to make a class that takes a String and checks if that String is found in a .txt File. If it is found, I want to store the words following that String in a String array. Here is what I have until now: [CODE]import java.io.File; import java.util.Scanner; public …

Software Development java
Member Avatar for geekman89
0
110
Member Avatar for stereomatching

For what I know, typeid(type) would return a type_info object, typeid(type).name() would print the name of the type, the names are depend on compilers. I would like to build a table by std::map<typeid(type).name(), std::function>. My questions : (1) : For what I know, the names of typeid(type).name() are not always …

Software Development c++
Member Avatar for vijayan121
0
872
Member Avatar for typedefcoder

I want to parse command line arguments. Say someone gives me ./progname param2 [-price=50] [-size=10] [-weight=16] [-height=7] Square bracketed items are optional. Either none or exactly two of -price, -size, -weight, and -height can be specified. If none of them are specified, it should be taking default values for price …

Software Development c++
Member Avatar for vijayan121
0
275
Member Avatar for kothaisaravan

I have created a .NET windows based application in c#. Find the attached screenshot of my application. Java web service is already created and maintained. Now I want to send the values from windows application grid view to java web service. Is this possible? If so how? Am newbie to …

Software Development c c# c++ java
Member Avatar for thines01
0
216
Member Avatar for 8mir

I have textbox-- (texbox1)= aaa bbb ccc [COLOR="Green"]<e2>[/COLOR][COLOR="Red"]code[/COLOR][COLOR="green"]</e2>[/COLOR] aaa bbb ccc just i want (textbox2)= I want the code between <e2> and </e2> the code Where the code is a variable

Software Development vb.net
Member Avatar for thines01
0
221
Member Avatar for Pravinrasal

When I run my program following is my program: public class JasperReportsDemoApp { String reportSource = "c://report1.jrxml"; String reportDest = "c://HelloReportWorld.html"; public JasperReportsDemoApp() { Map<String, Object> params = new HashMap<String, Object>(); params.put("reportTitle", "Hello Report World"); // params.put("author", "Craig Conover"); // params.put("startDate", (new java.util.Date()).toString()); // params.put("reportTitle", "Hello Report World"); // params.put("author", …

Software Development apache java
0
117
Member Avatar for c#learner

Ok im struggling to write a very basic program, it is a program that is the user enters 28 it will write back the month is feb, if the user enters 30 it will show the months with 30 and the same for 31 and say no days if a …

Software Development
Member Avatar for nick.crane
0
100
Member Avatar for Aghtar

Hey guys, theres a problem with the loop inside the yesno function here.. it kinda of hmm.. keeps the first number i enter and gives me the factorial of that number even if i enter another number the second time.. also my no option still gives me the loop even …

Software Development c++
Member Avatar for raptr_dflo
0
153
Member Avatar for dennysimon

hello all how to create JTextArea with border look like standard jTextField 's border ? thankyou denny

Software Development java
0
68
Member Avatar for Ruchi224

Hello !! I have a form and some controls as dropdown and textboxes.. The situation is that when the form loads, i want the value in textbox to be incremented, everytime it loads.. This is something i tried.. I get the value '1' everytime !! It shows no sign of …

Software Development open-source vb.net
Member Avatar for Ruchi224
0
345
Member Avatar for mikecolistro

Hello there! Im making a huffman tree and im having troubles with the pointers. For somereason its not giving the correct output. The problem is where the l2 nodes are pointing. [CODE]#include <iostream> /* A=7 B=2 C=2 D=3 E=11 F=2 G=2 H=6 I=6 J=1 K=1 L=4 M=3 N=7 O=9 P=2 …

Software Development c++
Member Avatar for raptr_dflo
0
103

The End.