132,726 Archived Topics
Remove Filter ![]() | |
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 | |
[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++ | |
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 | |
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 | |
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 ![]() | |
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 | |
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 | |
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 … | |
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 | |
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 … | |
Im looking for any Windows Application written in Assembly, just 1 form with 1 button :) Software Development assembly | |
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 … ![]() | |
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 ![]() | |
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 | |
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 | |
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. … | |
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++ | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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++ | |
How to store values that are retrieved from mysql database into an arraylist? Software Development java | |
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 … | |
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. | |
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++ | |
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++ | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 … | |
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 | |
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++ | |
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++ | |
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 … | |
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 | |
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", … | |
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 | |
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++ | |
hello all how to create JTextArea with border look like standard jTextField 's border ? thankyou denny Software Development java | |
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 | |
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++ |
The End.