132,726 Archived Topics
Remove Filter ![]() | |
HI I was wondering if you can help me with this random number program. import static java.lang.System.out; import java.util.Scanner; import java.util.Random; class GuessAgain { public static void main(String args[]) { Scanner myScanner = new Scanner(System.in); int numGuesses = 0; int randomNumber = new Random().nextInt(10) + 1; out.println(" ************ "); out.println("Welcome … Software Development java | |
Hello programmers! I made two programms. One is for my marks in school and second is for library for my school. One man who work in the library in my school has error with this my software. Software can't load database anymore. When I start program I got error message: … | |
I have made a chat client using TCPListener for server and TCPClient for client it works perfectly fine on localhost. However it is unable to send message over a ad-hoc network. I have tried everything i can think of. 1.Firewalls allow the application to run on both computers. 2.Even disabling … Software Development lan-wan | |
I have a AXI camera that count the number of people entered the building and show the result on web page with video. The webpages update the count every time it detect a passing person. I believe the page has 2 iframes. I`m trying to insert the value of the … Software Development html-css vb.net web-browser | |
["Objects that are instances of an inner class exist within an instance of the outer class"](http://docs.oracle.com/javase/tutorial/java/javaOO/nested.html) Even though I attempt to create an independent instantiation of the inner class, the outer class is always there because of the statement above. ##Is that ture? If true, then that would also mean … | |
![]() | I am trying to get this Skew double animation working but for some reason nothing is happening when it is called by the Dispatch timer, i would be very greatful of any advice as i am not getting any errors or anything of that sort. > What i would like … Software Development regex |
Hi all, Am building a WinAPI project in Code::blocks and MinGW. I Downloaded some opensource source code, and tried to compile the snippet haveing done nothing to it, and I get *Syntax Error on line 6* for the following code: IDR_MENU MENU DISCARDABLE {//BEGIN POPUP "File" {//BEGIN MENUITEM "New", IDM_NEW … Software Development c++ gui windows-api | |
Hi can you help me please how can i change the color of progressbar or just look like in windows xp progress bar...please help me...thank you in advance hoping for your positive responds... Software Development java | |
program that contains a Rich Text Box & a scroll bar where scroll bar represents the size of font size of selected text in Rich Text Box as soon as user scrolls the scroll bar.help???? Software Development vb.net | |
The following piece of code outputs 0.1000000000001 float a=0.1; printf("%lf",a); But if I add a 10 times as long float b=0.1+0.1+0.1+0.1+0.1+0.1+0.1+0.1+0.1+0.1; printf("lf",b); It outputs as 0.999999999999989 But if a=0.1 is stored as 0.1000000000001 then the answer should be greater than 10 due to the 1 in last column.Then why is … Software Development c | |
Hello. I am trying to find out how to write a function to replace a string in a text file. So far i got this: find -> is a word i am looking for replace, rep -> new word, f1 -> my file. And i'm stuck with that piece of … Software Development c | |
Ok my title is probably very vague and unclear. Kind of hard to sumerise in the title. My form has a bunch of textboxes. The content is supposed to be saved with a button. BUT not all the textboxes will have content in them. So lets say i added content … Software Development vb.net | |
![]() | Hi, I have problem with my connection to the database generate from entity data model of Ado.Net Entity framework. I work in Console Application. My code looks like that: public static void Main(string[] args) { string connectionString = "Data Source=(localdb)\v11.0;Initial Catalog=BarDatabase;Integrated Security=True"; using(SqlConnection con = new SqlConnection(connectionString)) { string queryStatement … Software Development c# open-source |
hi In room table the roomtype and roomtypeid i created columns then the problem is that when i run the form and add data in database then in roomtypeID the show is double or single i want that in roomtypeID they show as 1 or 2 in roomtypeid column which … Software Development | |
so I have written a acript that logs into google calendar and pulls the next weeks events and stores them in variables. I am stuck at how to get these variables and put them into a html page does anyone have any ideas? I am running the script once a … Software Development html-css javascript python software-architecture | |
Hi there, I'm a Visual Basic novice and have written a very simple GUI which I want to use to run a c++ program. I'm wondering how I would write the button click event to call the C++ program? I assume there's probably a simple way to do this but … Software Development c++ gui visual-basic | |
I am trying to get the ItemListener to work on this program. I keep getting an error that says the method getSelectedItem cannont be found and cannot figure out how to fix it. import java.awt.*; import java.awt.event.*; public class Buttons extends Frame implements ActionListener, ItemListener { public Buttons() { //set … Software Development java | |
Hey guys, so I'm trying to make a Paper, scissors, rock program (where you play against the computer). And i got pretty far, to the point where it seemed finished. But then i realized that i need to make the program exit itself after the player wins three times. So … Software Development c++ | |
Hello again.I recently have been doing a assignment which asks us to write a function to check whether a tree is perfectly balanced.I know the concept of Perfectly balanced tree but I just cant make out how to write this function.Any help in right direction will be highly welcome. Software Development c++ programming-construct | |
Hi All I am new to java. I am facing a problem I want to compare a string to a set of strings, For example there is variable string x, If the value String X matches to String A , String B, String C then run the particular code otherwise … | |
I have two datatables that generate a datagridview like below: 1) datatable name : grpDT  2) datatable name : grpTot  I want to merge both datatable so that I the datagridview will be like this:  what is the best way to do this? do … Software Development vb.net | |
The program I'm making is a program that will display a word in one language and ask for the translation in another. It will then display if it's right or wrong. However, when I test to see if it works, it will display all of the versions of Incorrect, even … Software Development python | |
Hello everyone. I have a problem trying to develop a windows phone app as a university project. Part of it is to use google APIs. So I'm trying to make a test web request.My code is as follows: string api_request = "https://maps.googleapis.com/maps/api/place/textsearch/xml?query=restaurants+in+Sydney&sensor=true&key=AIzaSyDpXZSLtOeGLJcYwKKJs2yAAEdfLST0ZXs"; HttpWebRequest google_request = (HttpWebRequest)WebRequest.Create(api_request); HttpWebResponse google_response_file = (HttpWebResponse)google_response.GetResponse(); … Software Development api c# microsoft seo smartphone | |
Why this piece of code doesnot display array contents #define TOTAL_ELEMENTS (sizeof(array) / sizeof(array[0])) int array[] = {23,34,12,17,204,99,16}; int main() { int d; for(d=-1;d <= (TOTAL_ELEMENTS-2);d++) printf("%d\n",array[d+1]); return 0; } Software Development c | |
i read from a file okay for each line i save the respective data into their respective variables i output each variable to see if the data has really been saved.(is has) but when i try using the if condition to check the variable and perform a function it doesn't … Software Development c++ file-system ios | |
Private Sub cmdAdd_Click() Dim con As ADODB.Connection Set con = New ADODB.Connection Dim rsAdd As ADODB.Recordset Set rsAdd = New ADODB.Recordset Dim Query As String con.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Users\Asus\Desktop\VBTHESIS_liel2\ListofMembers.mdb;Persist Security Info=False" con.CursorLocation = adUseClient rsAdd.Open "SELECT * FROM census WHERE ID ='" & strId & "'", con, adOpenStatic, adLockOptimistic 'If textboxes … Software Development open-source visual-basic | |
Please let me know how to sort the list of String in either ascending / descending order without considering special characters and case. ex: list1=['test1_two','testOne','testTwo','test_one'] Applying the list.sort /sorted method results in sorted list ['test1_two', 'testOne', 'testTwo', 'test_one'] but the without considering the special characters and case it should be … Software Development python | |
I'm trying to go thru a file with product codes and rateband prices and quantities (productcode, pricea, qtya, priceb, qtyb, pricec, qtyc, priced, qtyd, pricee, qtye). For a certain group of up to 4 productcodes I need to sum up the values of the price cells after testing the qty … Software Development mathematics python | |
Hello, I have the following Python Code. I would like to replace the block2=(letter1<<16) + (letter2<<8) + 32 using array module. ANy help is appreciated! for letter1 in range(65,90): for letter2 in range(65,90): ptext=chr(letter1)+chr(letter2)+chr(32) block2=(letter1<<16) + (letter2<<8) + 32 ctext=pow(block2,e,n) table[ptext]=ctext Software Development python | |
Hi there, Please check my program. When i compile it i am getting error. Cannot find default constructor to initialzie base class. #include <iostream.h> #include <conio.h> class Parent { protected: double num; public: Parent(double n) { num = n; } void sub() { num -= 2.0; cout << "num … Software Development c++ | |
Hi, Everyone, i'm here with another problem, I'm working with a windows form where i am adding Panels programmaticaly. With same time when its busy with adding Panels to form I want to work, like- **Loading another form or do another command in another form**. plz help, here is my … Software Development vb.net | |
Hello developers, I have written this code which walks through the html files in a directory and fetches event and date information and print it on screen. I want this data to be stored in a database. I have installed mongodb and pymongo module. How can I insert the output … | |
Hello Developers, I am a beginner in python and need help with writing a regular expression for date and time to be fetched from a html document. In the following code I am walking through the html files in a folder called event and printing the headings with h1 tag … Software Development python | |
hi all i update guestinfo all are update but the gender and martial status is not updated which is in comobox here is the button code private void button7_Click(object sender, EventArgs e) { guests myguest = new guests(); myguest.Guest_id = Convert.ToInt32(guest_id.Text); myguest.First_name = first_name.Text; myguest.Last_name = last_name.Text; myguest.Gender_status = Convert.ToString(gender_status.SelectedValue); … Software Development | |
Hello I am really scratching my head around this ,i want to create a class function with more than one option Someathing like I don't really know for what to look for (basically a class whithin a class whithin a class and so on)... so i'll give an example: Events.add.coord(); … Software Development c++ | |
Hi I am currently working on a project where I have to find the most frequently occurring word in an imported file. I have imported the file and can display what it says, but Im having trouble with this part: [COLOR="Green"]"Create a Word class that has a string and a … Software Development java | |
So my teacher gave us this file #include <stdio.h> #define MAXVALS 100 /* max number of values we can process */ int tableFill(double a[], int max); void tablePrint(double a[], int num); double tableAverage(double a[], int num); int tableMatchingElements(double a[], int num, double target); int main() { double table[MAXVALS]; /* array … Software Development c | |
I wanna know how i can make a .net form with textboxes allow me to enter variables and have them trasnfer to a webpage's.. For example i have a form with textboxes for say name, last name, birthdate, password. I wanna enter those variables on the form and have them … Software Development vb.net | |
Hello I am slowly learning more and more about C++ and more importantly programming technique and I have reached the wall that I am sure quite a few before me have probably hit - refrences/pointers and management of the heap. Whilst I try and familiarize myself with the above, I … Software Development c++ | |
hi plz try to solve method of deduct fees that chrges$2.5(using withdraw method)for the forth transaction and resets the number to zero how to resets the transactioncount zero in child class checkaccount #include <iostream.h> #include <conio.h> #include <string> class bankaccounts { protected: double balance; public: bankaccounts() {balance=0.0;} bankaccounts(double b) {balance=b;} … Software Development c++ | |
Hello, Is it possible to have sub menu to an item in combobox as shown in the picture? thanks Software Development | |
Hi everyone. I've been struggling with a quicksort implementation here. I think - scratch that - I know i'm overrunning an array (erm, vector) based on how it explodes, but I honestly can't see it and I have no debugger. I slept on it but fresh eyes didn't get me … Software Development c++ programming-construct | |
Hi There. I joined here some three years ago when i created my ONE and ONLY Python program that actually functions as intended *YAY*, it's a little ugly and i've decided to return and learn more, improve it and maybe start up some new projects. I'm a little confused as … Software Development gui python video-card | |
Hey! Just wondering how you make the code keep asking for a correct file input until a correct file is inputted, rather than just exiting the program when incorrect? f = input("Enter a file name: ") try: infile = open(f, "r") except: print("File not found:", f) text = infile.read() print(text) Software Development file-system python | |
when i copy and paste text from a webpage to a txt file and have perl open it, i get these strange boxes where there should be spaces. how do i use perl to replace them? Software Development perl | |
this program is 2 classes and it has 2 JLabels, 2 JTextFileds, and 2 JButtons... it convert temperatures from Fahrenheit to Celsius and from Celsius to Fahrenheit.. Class 1: [code] // Author: Helen Toma import java.awt.BorderLayout; import java.awt.FlowLayout; import java.awt.GridLayout; import javax.swing.JTextField; import javax.swing.*; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; … Software Development gui java java-swing | |
Hi All, firstly thankyou for taking the time to read this, and in advance thanks for the help :) im a newbie to this site, and also to programming. my project is a BMI calculator, so far, i have coded the (input) textboxes, made it switchable from metric to imperial … Software Development | |
Hi folks.. I had a problem and looking for the answer..The exact question of mine is [this](http://webapps.stackexchange.com/questions/18959/can-i-form-a-direct-url-to-a-particular-gmail-account) Sorry that i dint typed the entire question here but i'm afraid that i may not able to explain well if I type that entire thing. But that was my exact question which … Software Development java | |
i'm trying to modify a java code. I have a jSpinner where the user have to choose a number like minimum 0 and after this step the user can continue by clicking the OK button and continue his steps... So here what i want is when the user didn't enter … Software Development display java java-swing | |
Hi, i try to handle a Neagtive number exception in my code. i tried this but it shows "illegal start of type" why please? Here is my code: public class JPanelTemporal extends javax.swing.JPanel { public JPanelTemporal() { initComponents(); } public void setDuration(int duration){ this.jSpinnerDuration.setValue(duration); } public Time getTime(){ Time time … Software Development java java-swing |
The End.