132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Violet_82

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
Member Avatar for Violet_82
0
204
Member Avatar for LD Company

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: …

Software Development sql vb.net
Member Avatar for Reverend Jim
0
149
Member Avatar for rrr12345

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
Member Avatar for rrr12345
0
275
Member Avatar for yous

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
Member Avatar for tinstaafl
0
1K
Member Avatar for histrungalot

["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 …

Software Development java oracle
Member Avatar for histrungalot
0
176
Member Avatar for nblackburn

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
Member Avatar for Momerath
0
122
Member Avatar for mattster

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
Member Avatar for mattster
0
330
Member Avatar for jemz

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
Member Avatar for Samanta Goutam
0
8K
Member Avatar for ajitjhajjar

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
Member Avatar for Reverend Jim
0
480
Member Avatar for saurabh.mehta.33234

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
Member Avatar for deceptikon
0
241
Member Avatar for somename

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
Member Avatar for deceptikon
0
3K
Member Avatar for Sevyt

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
Member Avatar for Sevyt
0
119
Member Avatar for kubiak

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
Member Avatar for grarhakim
0
253
Member Avatar for diya45

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
Member Avatar for ChrisHunter
0
123
Member Avatar for don.davis.773

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 …

Member Avatar for Gribouillis
0
205
Member Avatar for v_janssens

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
Member Avatar for jean1234
0
364
Member Avatar for arcticman452

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
Member Avatar for mKorbel
0
132
Member Avatar for Magic681

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++
Member Avatar for Magic681
0
420
Member Avatar for ariel930

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
Member Avatar for yde
0
875
Member Avatar for myadav

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 …

Software Development java os-x
Member Avatar for myadav
0
6K
Member Avatar for lulu79

I have two datatables that generate a datagridview like below: 1) datatable name : grpDT ![119](/attachments/large/3/119.JPG "119") 2) datatable name : grpTot ![211](/attachments/small/3/211.JPG "211") I want to merge both datatable so that I the datagridview will be like this: ![34](/attachments/large/3/34.JPG "34") what is the best way to do this? do …

Software Development vb.net
Member Avatar for lulu79
0
4K
Member Avatar for Aoi.Ragnarok

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
Member Avatar for woooee
0
154
Member Avatar for SpyrosMet

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
Member Avatar for SpyrosMet
0
379
Member Avatar for saurabh.mehta.33234

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
Member Avatar for deceptikon
0
128
Member Avatar for GolDRoger00

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
Member Avatar for Ancient Dragon
0
127
Member Avatar for meLiel

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
Member Avatar for hyesin
0
168
Member Avatar for hisan

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
Member Avatar for sneekula
0
519
Member Avatar for biscayne

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
Member Avatar for biscayne
0
318
Member Avatar for stevthym

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
Member Avatar for sneekula
0
221
Member Avatar for new_developer

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++
Member Avatar for NathanOliver
0
342
Member Avatar for ponkhiraj

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
Member Avatar for Reverend Jim
0
1K
Member Avatar for crashhold

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 …

Software Development mongodb python
Member Avatar for Gribouillis
0
323
Member Avatar for crashhold

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
Member Avatar for crashhold
0
323
Member Avatar for diya45

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
Member Avatar for diya45
0
102
Member Avatar for ucvx32

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++
Member Avatar for ucvx32
0
134
Member Avatar for help_please

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
Member Avatar for JamesCherrill
0
600
Member Avatar for blindislands

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
Member Avatar for nullptr
0
136
Member Avatar for Keran

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
Member Avatar for Keran
0
219
Member Avatar for Ben Ashton

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++
Member Avatar for Ben Ashton
0
119
Member Avatar for ruzzy

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++
Member Avatar for deceptikon
0
119
Member Avatar for srikanth2321

Hello, Is it possible to have sub menu to an item in combobox as shown in the picture? thanks

Software Development
Member Avatar for deceptikon
0
233
Member Avatar for MachDelta

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
Member Avatar for ken_taiken
0
229
Member Avatar for Aiban

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
Member Avatar for Aiban
0
230
Member Avatar for TeaAnyOne

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
Member Avatar for TeaAnyOne
0
124
Member Avatar for Wade_1

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
Member Avatar for 2teez
0
253
Member Avatar for Helen Toma

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
Member Avatar for JamesCherrill
0
6K
Member Avatar for ComputerFirstAde

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
Member Avatar for ComputerFirstAde
0
156
Member Avatar for forjustincase

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
Member Avatar for Neversleepin
0
110
Member Avatar for Neversleepin

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
Member Avatar for Neversleepin
0
2K
Member Avatar for Neversleepin

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
Member Avatar for Neversleepin
0
15K

The End.