132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Yokil

Hey guys. So I'm doing this project for my end-of-year exam and it's running. But I can't seem to go further beyond a point. This program asks the user as series of questions and then analyses the symptoms to give the result ie, if the user is diabetic or not. …

Software Development c++
Member Avatar for Schol-R-LEA
0
962
Member Avatar for nchy13

can anybody help me what is wrong in syntax of following [CODE]ihex=Integer.parseInt(s5,16); String bin=Integer.toBinaryString(ihex); System.out.println(bin); if(bin.length()-10 > 0) String orgpc=bin.substring(bin.length()-10); else String orgpc=new String(bin);[/CODE] this is what compiler shows [B]nchy@ubuntu:~/Desktop$ javac bpbc.java bpbc.java:61: error: Syntax error on token "orgpc", delete this token String orgpc=bin.substring(bin.length()-10); ^^^^^ bpbc.java:63: error: Syntax error, insert …

Software Development java ubuntu
Member Avatar for nchy13
0
217
Member Avatar for AdampskiB

Hello there, Currently doing some work for my coursework. I've noticed the "\n" is obviously the new line function or whatever you guys call it, but would you understand what I mean when I say it creates too much of a new line? For example, I want the newline to …

Software Development python
Member Avatar for AdampskiB
0
120
Member Avatar for gahhon

[CODE]import java.awt.*; import javax.swing.*; import java.awt.event.*; public class ClientProgram implements ActionListener{ //static FilmCollection collection = new FilmCollection(); static boolean condition = true; static int memberPassword = 123; static JButton button1, button2, button3; public static void main(String[] args){ int mPassword; JFrame myFrame = new JFrame("Member Login"); //window's title myFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);//perform exit when …

Software Development java java-swing
Member Avatar for thines01
0
276
Member Avatar for Danielhuo

I am writing a Java program, a MP3 Manager, but I have problems to work with buttons, TextFields, and TextArea. Here are the problem descriptions. Create a class MP3 with instance variables for: artist, song, album, track length (in seconds). Provide a constructor, get/set methods, and a toString. method. The …

Software Development gui java java-swing
Member Avatar for Danielhuo
0
1K
Member Avatar for vishal1949

I have this assignment where I have to make an xml that has movies names and info. Then i have to make a StAX program that locates the xml file and reads it. The program should also be able to count the number of movies in the decade. Thats the …

Software Development file-stream java xml
0
138
Member Avatar for Aviplo

NEED HELP~! I want to create a openfiledialog and allow user to choose which exel file to be imported into the server but this error keep coming "ODBC--connection to '{SQL Server}'TGT102 failed". Thank you so much~~ PS. I am just a beginner of vb.net. So would u pls tell me …

Software Development sql vb.net
Member Avatar for Reverend Jim
0
242
Member Avatar for james6754

[CODE] #include <iostream> #include <fstream> #include <string> using namespace std; int main() { oneclass.hello(); return 0; } class one { private: int num; public: void hello(); }oneclass; void one::hello() { num++; cout << num; } [/CODE] Could anybody please please tell me what is wrong with this code. I think …

Software Development c++ visual-studio
Member Avatar for ravenous
0
109
Member Avatar for sidd1994

hello guys im tryingg to write a program which will generate an aeiou grid...if the program finds two consecutive vovels in a sentence then it will thake the first vowel as the row and second one as the column reference ...and do a +1 in that location i seem to …

Software Development java
Member Avatar for JamesCherrill
0
176
Member Avatar for ramki*89

int a=320; char *p; p=(char *)&a; printf("%d",*p); gives 64\\\not sureif p or *p in pf wat in the world does (char *)&a does ?? sum1 help plzzzz

Software Development c
Member Avatar for N1GHTS
0
91
Member Avatar for bilal_fazlani

I am trying to create a a splash screen... I have attached the image file..please have a look.. the splash screen performs a diagnostic procedure and displayed the results in a multi-line label.. I have used another thread to write msgs as results in label.. and its working as it …

Software Development display multithreading vb.net
Member Avatar for TechSupportGeek
0
367
Member Avatar for PapaGeek

I’m writing a Windows Form Ap that manages a series of website. I created a website class then pre-loaded std::list<WebSite> from an INI file. Now I need to use that list in other places in the code so I tried to move it into the private member area and got …

Software Development c++
Member Avatar for thines01
0
328
Member Avatar for Catalyst.X

I wrote a program that does rudimentary tile mapping based on reading in information from a "map file" and drawing the map on screen. I need it to be drawn in a scrollable window so it doesnt matter how big the grid is defined in the map file. I have …

Software Development data-structure storage vb.net
Member Avatar for Unhnd_Exception
0
280
Member Avatar for MisterRaver

Hey all. I am completely stuck here. I want to implement a round robin based service capable of load balancing http requests. ATM I have a thread with an infinite loop which listens for TCP connections. When it finds a connection, it runs another thread which will process the request. …

Software Development java
Member Avatar for NormR1
0
364
Member Avatar for needforkevin

hello all! i am working on a program that reads in a text file that the user inputs, creates a text file that the user inputs, names the text file that the user wants, and then sorts the text file sorting words above the user entered in threshold and displays …

Software Development c++ data-structure seo
Member Avatar for needforkevin
0
342
Member Avatar for th3b3n

I know this is an OLD thread, but i"m having the same problem. a Runtime error when trying to "OPEN" a file. [CODE]public void actionPerformed( ActionEvent evt) { //filterMap.put(evt.getActionCommand(), ((JCheckBox)evt.getSource()).isSelected()); if(evt.getActionCommand().equals("export")){ String file2Read; file2Read = fileIN.getText(); //file2Read = "NotConverted2.xls"; new BPSepcExporter().BPSReader(file2Read); } //If to check if Open button was hit …

Software Development file-system gui java
Member Avatar for th3b3n
0
292
Member Avatar for s00pahFr0g

Hello everyone, I did have a look around with search option to see if I could get an answer their, but I couldn't quite find my issue(at least I don't think I did). This is for a final project for school where I have to create a class for a …

Software Development python
Member Avatar for TrustyTony
0
312
Member Avatar for Vasthor

what I mean by undefined error is because I don't know what the error is about. :P, actually it's because the error not from the code itself, but it's about a compiler that can't defined some sort of file... btw, as title said, the error is from the code in …

Software Development algorithm c++ ios
Member Avatar for gusano79
0
238
Member Avatar for Zssffssz

Well really simple: I want to compile for my Pentum 4 and not a WIN32 Console App. What tag/thing would I use for this?

Software Development c++
Member Avatar for gusano79
0
133
Member Avatar for BenzZz

Hi, Does anyone know a method or some code to find out whether two numbers have at least one common factor? I currently have a gcd method that finds the greatest common divisor between two numbers however an arithmetic exception is thrown if the two numbers have no common divisor. …

Software Development java
Member Avatar for stevanity
0
3K
Member Avatar for DasJott

As you may have noticed, you can't use this property for any element you created yourself. Here's a workaround: [CODE]string sId = "Id of the element you want to change the property of"; string sInnerHtml = "The new InnerHtml string you want to set"; string sScript = @" var oElem …

Software Development html-css
Member Avatar for thines01
0
96
Member Avatar for Nikesh2014

[CODE]#include<conio.h> #include<stdio.h> #include<iostream.h> #include<process.h> #include<dos.h> #include<time.h> #include<fstream.h> #include<string.h> class getInfo { int dep; int with; int bal; int year; int mon; int day; char des[100]; public: getInfo() { dep =0; with =0; bal =0; year =0; mon =0; day =0; strcpy(des,""); } int year1() { return year; } int month1() …

Software Development c++ file-system ios
Member Avatar for Schol-R-LEA
0
134
Member Avatar for deep1

i have a project ,and i don't know how to run it in netbean ide - i am a begineer in java2e - i got a project in which some notepad like screen is there when running -jar exe file - and a option is there for compile and running …

Software Development ide java
Member Avatar for stultuske
0
99
Member Avatar for axn

How do i match "00:04" and "4+21:08" which is ("days+hrs:mins" and "hrs:mins") in a file. I would like to combine regex patterns so I can calculate running time. This is what i got for regex but does not match "00:04" --> (\d\d)(\:)(\d\d) [CODE]if($string = ~ m/(\d)(\+)(\d\d)(\:)(\d\d)/) { #code goes here …

Software Development perl regex
Member Avatar for axn
0
161
Member Avatar for java.util

Can anyone see what's wrong with this piece of code? When I try to compile I get an error on the first line (line 3) "cannot find symbol, symbol : method split(char)" I have the delimiter btw as a public static final char in the same class. [CODE]private static boolean …

Software Development java
Member Avatar for java.util
0
2K
Member Avatar for Flames91

Hey all, I'm trying to write a Polynomial Class but I'm having some trouble. I'm having the coefficients and exponents stored in a dictionary, like so... [CODE] class Polynomial: def __init__(self, *termpairs): self.termdict = dict(termpairs) print (self.termdict) if __name__ == '__main__': d1 = Polynomial((2,3), (4,5), (8,9)) print (d1) [/CODE] This …

Software Development python
Member Avatar for TrustyTony
0
517
Member Avatar for pennywise134

Hey guys, I'm trying to create another shell script that does the following, but I am not sure where to start. Any help would be greatly appreciated! •Reads student name, address, city, and email and phone number from the keyboard with meaningful headings for each of them on separate lines. …

Software Development shell-scripting
Member Avatar for JeoSaurus
0
97
Member Avatar for Daigan

Basically what I want to do is add a prefix (input by the user) to be added on a chosen word by the user. Is that posible? I got stuck and don't know what to do.... Here's what I have so far. [CODE]// The "Prototype" class. import java.awt.*; import hsa.Console; …

Software Development java
Member Avatar for NormR1
0
156
Member Avatar for pro_learner

Guys i wanted to connect Java Application with MySql database.I have written a Java Programme.I have already created the database also.But it doesn't connect with the Database.This is my code.[CODE]import java.sql.*; public class check { public static void main (String[] args) { Connection conn = null; try { String userName …

Software Development java mysql
Member Avatar for harinath_2007
0
167
Member Avatar for stereomatching

I want to parse XML and change the contents of the XML Which one should I choose? boost::spirit or boost::serialization Thanks a lot

Software Development c++
Member Avatar for stereomatching
0
348
Member Avatar for bombay1982

My question is about looping skill overall. I am having problems with loops. Is there any book/tutorial/website about this particular skill in java programming to help me learn how to loop in correct/effective way ? I know how to write simple loops, I know structures of loops too. When I …

Software Development java
Member Avatar for stultuske
0
1K
Member Avatar for netwebguru99

I have used the Process.start function to open an Excel file as shown in the code Process.Start("report.xlsx") and it works perfectly well. My question is can this function be used to open a particular worksheet called Report1 in the report.xlsx file. If so what would the code be. I have …

Software Development vb.net
Member Avatar for netwebguru99
0
259
Member Avatar for geekman89

Hello I want to make a GUI, and for it I need to use absolute positioning, since I want each element to have a precise position within my frame. I am making each element that makes up the frame by extending JPanels, so I'm building each block within the window …

Software Development gui java
Member Avatar for geekman89
0
276
Member Avatar for nchy13

i have two array of chars of size 12 each having only 0's or 1's. what i am trying to do is that in for loop [CODE]for(i=0;i<12;i++) { int a=1starray[i]; int b=2ndarray[i]; int c=a^b }[/CODE] but every time c gets 0 only. iam not getting it why. can anybody help …

Software Development java
Member Avatar for nchy13
0
2K
Member Avatar for nixufix

Hi everyone, First off - I'm very new to Java so please be gentle. I'm having some problems with an assignment from school: [B]Input[/B] The input starts with an integer k indicating the number of words in the text (max 1000), followed by k words. [B]Output[/B] The output will consist …

Software Development java
Member Avatar for JamesCherrill
0
1K
Member Avatar for Stazloz

Having issues creating table using chain hashing (linked nodes). The program compiles, but is crashing during execution. I admit I don't really know what I'm doing since I havent really used inked lists in forever. A lot of this code I do not expect to work right away, such as …

Software Development c++ linked-list
Member Avatar for Stazloz
0
805
Member Avatar for kothaisaravan

Hi, Am using Visual studio 2005 with MS Access. I have a Datagridview with a date column in format 11/23/2011(Month/Date/Year). Now i want to know how 'search criteria based on particular month and date'. For Example if select 'Nov' as a month from combobox and click on search button, only …

Software Development vb.net visual-studio
Member Avatar for kothaisaravan
0
137
Member Avatar for arindam31

Hi Guys, I am trying to make a text box that will accept a password from user.The password should be masked while typing. [CODE]def MyFunc2(self,event): box2=wx.TextEntryDialog(None,"Enter Password","PASSWORD","Waiting",style=wx.TE_PASSWORD) if box2.ShowModal()==wx.ID_OK: global pwd1 pwd1=box2.GetValue()[/CODE] The code is a piece of a program . The above code when run , shows the text …

Software Development gui python
Member Avatar for arindam31
0
235
Member Avatar for pankaj.garg

Hi, I am developing a VB net application with lots of TextBox. I need to call a module everytime any of the textbox gets focus. I dont want to write code in every textbox gotfocus event, but a generic code which will call the module everytime any textbox gets focus. …

Software Development vb.net
Member Avatar for pankaj.garg
0
383
Member Avatar for slygoth

Hey guys. Im trying to open a file the user entered. [CODE] cout<<"Please enter the file name"; cin>>name; cout<<"Do you want to open the file? [yes] or [no]"<<endl; cin>>pick; if(pick=="yes") system("C:\\wmplayer.exe [COLOR="Green"]fname[/COLOR]"); else cout<<"Good bye"; [/CODE] How do i get the value thats in fname to be printed their so …

Software Development c++ file-system
Member Avatar for peter_budo
0
195
Member Avatar for slygoth

Im trying to open a file. The user enters the name of the file they want to open example [CODE] string fname; string pick; cin>>fname; cout<<"Do you want to open the file?"; cin>>pick; if(pick=="yes") system("wmplayer.exe [COLOR="Green"]fname[/COLOR]"); else cout<<"Thanks for your time; [/CODE] Can someone show me how the replace the …

Software Development c++
Member Avatar for WaltP
0
255
Member Avatar for Joncamp

I can add nodes to my JTree, but after expanding a node, I can not add any child nodes to that node, or at least they dont show on the screen? Actually I can use the .add(new DefaultMutableTreeNode("Label")); to add a node to a parent node, but the new child …

Software Development java
Member Avatar for rocknroll60
0
239
Member Avatar for obito

Hi I just started learning programming and tried some looping with file management. I am not sure how to join the string after looping can someone give me some pointers how can i go about doing it? Thanks! This is my code [CODE] import string testFile = open("test.txt", "r").readlines() for …

Software Development python
Member Avatar for TrustyTony
0
112
Member Avatar for stereomatching

[code] class robot_generic { public : template<typename Request, typename Response> bool const queryDriver(Request const &req, Response &res) { //some jobs, blah blah blah } template<typename Request, typename Response> bool const queryMoney(Request const &req, Response &res) { //some jobs, blah blah blah } }; class robot_A : public robot_generic { public …

Software Development c++
Member Avatar for stereomatching
0
115
Member Avatar for shravani1

[CODE]Module Module1 Sub Main() System.Console.Writeline{"this is my program"} System.Console.ReadLine{} End Sub End Module[/CODE] this is my code am getting an error saying that Error 1 Expression expected. Error 2 Method arguments must be enclosed in parentheses. Error 3 Expression expected. Error 4 Method arguments must be enclosed in parentheses.

Software Development vb.net
Member Avatar for shravani1
0
266
Member Avatar for theone0522

[CODE]<img src="/images/skip/en.png" alt="Skip" height="39" id="skip">[/CODE] I tried this code: [CODE] Dim theElementCollection As HtmlElementCollection = Bot.Document.GetElementsByTagName("img") For Each curElement As HtmlElement In theElementCollection Dim controlName As String = curElement.GetAttribute("name").ToString controlName = "skip" curElement.InvokeMember("click")[/CODE] So pretty much I need to click the image to pass to the next page.

Software Development vb.net
Member Avatar for codeorder
0
97
Member Avatar for marifergarz

I need help with a lab I'm doing. In this lab you have to show the number of odd digits a number has, for example the number 4135 would have three odd digits. I've already done a lab where it tells you if a number is odd or even but …

Software Development java
Member Avatar for stevanity
0
874
Member Avatar for vigneshkbv

I ve a mask text box. mask is 00 00 00 00 format. my requiement is ,the box should accepts hexa decimal value too... my expect format look like 0A 0C 0a 0f...pls help me..thanks in advance..

Software Development c c# c++
Member Avatar for rexdon
0
145
Member Avatar for naveedqadri

Dear Experts, Thanks in advance for helping me out. I am new to C# as well asp.net. I have already running appllication asp.net , needs to change in asp file with C# code. Scenario: My application is using third party software "activepdf server,webgrabber" to convert and print to pdf. BUT …

Software Development asp asp.net c# pdf session
0
536
Member Avatar for nobert79

I'm trying to write this program that'll generate 10 random values in a given range, store these numbers in a .txt file, and then read these numbers from the same file and display them on the screen with equivalent words. I've got to the part where im trying to read …

Software Development file-system java
Member Avatar for thines01
0
151

The End.