132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for neondroid

new to I.T. need help about the problem analysis ,algorithm design, formatting the output package gasolinestation; import javax.swing.JOptionPane; public class GasolineStation { public static void main(String[] args) { float total, money; String yesno; JOptionPane.showMessageDialog(null, "Welcome to Gasoline Station!"); do { String select = JOptionPane.showInputDialog(null, "1 = Diesel .................... $ 39.00\n" …

Software Development java java-swing web-design
Member Avatar for stultuske
0
274
Member Avatar for santo12

hi all... this is my 2 weeks using vb.net 2010 express i usually use vb6 in vb6 if i compile the project then the result is single exe and in vb.net 2010 express i have many file my question is , is there a way to make single exe like …

Software Development vb.net
Member Avatar for tinstaafl
0
237
Member Avatar for lewashby

I need to store the number of digits from a number into a variable. e.g. 538, i need to store 3. How can I accomplish this is C++? Thanks.

Software Development c++
Member Avatar for Moschops
0
107
Member Avatar for jakub.peciak

I have a time as a string saved as HoursMinutes example 1642 (16:42) and I tried to convert it to date as Hours:Minutes with following code: Dim dt As Date Dim s As String s = "1642" dt = CDate(Format(s, "00:00")) but the result is: 00:00 instead of 16:42 Any …

Software Development vb.net
Member Avatar for jakub.peciak
0
385
Member Avatar for DyCE

Hello if anyone can help I would like to know why I get this error when executing.. exception in thread "main" java.lang.NuSuchMethodError: main [code] import java.awt.*; import java.awt.event.*; import javax.swing.*; public class GridLayoutFrame extends JPanel { // These are the components private JButton FindB,AddB,RemoveB; private JLabel theOne,theTwo,theThree,theFour,studentID,theMidTerm,theMidterm,theFinal1,theFinal2,FinalG1,FinalG2,FGrade2; private JList studentNumbers; …

Software Development java java-swing
Member Avatar for stultuske
0
454
Member Avatar for dreamslct

Hi everbody, Seen posts saying simple dictionary in Java. Thought of sharing something may be useful for others. Here is a simple code if anyone interested. import java.util.*; public class Dictionary { public static void main(String[] args) { Map <String, String> dictionary; dictionary = new TreeMap <String , String>(); Scanner …

Software Development java
Member Avatar for dreamslct
0
348
Member Avatar for vonnoy

can anyone help how to save using this code below.? i used adodc recordset with adodc1 .ConnectionString = connectdb .RecordSource = "Select * from 'tablename'" .Refresh 'dont know the next action end with 'what does this code mean?

Software Development visual-basic
Member Avatar for vonnoy
0
222
Member Avatar for rbcontra

i'm trying to get metro app style to windows form application. any help..?

Software Development vb.net
Member Avatar for rbcontra
0
118
Member Avatar for avidwan

How to make a reverse string program in [c programming](http://www.programmingpad.com) language ?

Software Development c
Member Avatar for rustysynate
0
275
Member Avatar for Hameeda0410

Hello I am a student of computer science year 3 and am doing my project on a **road design simulator**. I should be able to design a road on a java interface and simulate it with cars. Does anyone have an idea about how should i proceed with it?

Software Development java
Member Avatar for Hameeda0410
0
2K
Member Avatar for sonia sardana

hey I faced the interview Question - Name Textbox EMail Textbox Mobile Textbox Button-ADD First he told me to add the three textboxes values into the listbox. Its simple--I have done it. Listbox1.items.add(me.textbox1.text & " " & me.textbox2.text & " " & me.textbox3.text) Then he told me that draw one …

Software Development vb.net
Member Avatar for Reverend Jim
0
1K
Member Avatar for noamjob

Hi, I want to perform a search with Python in this site: [url]http://www.draftexpress.com/search.php[/url] I want to search for a player who's first name is "james". The problem: The page with the result's url is: [url]http://www.draftexpress.com/search.php#results[/url] Obviously, when opening this page directly, I don't get the page with the results for …

Software Development python
Member Avatar for rmhapp
0
472
Member Avatar for Sahil89

Hi, I am using DispatcherTimer in my WPF application, following is the link from where I learned it http://msdn.microsoft.com/en-us/library/System.Windows.Threading.DispatcherTimer.aspx#Y1710 Now problem is I cant make it available outside the procedure, and declaring it globally throws error. Is there any way to make it global? Or any other way to use …

Software Development vb.net
Member Avatar for afnan123456
0
336
Member Avatar for bdheeraj

hello everyone i created a python file DailyExpensessave.py when i need to import this in another python program i was getting this error > Traceback (most recent call last): > File "C:\Python32\DailyExpensessave", line 1, in <module> > from DailyExpenses import * > ImportError: No module named DailyExpenses Both the python …

Software Development python
Member Avatar for sneekula
0
580
Member Avatar for csk19

write a program to print the highest palindrome value that is the multiplication of two numbers lies between 100 to 1000.

Software Development java
Member Avatar for Taywin
0
610
Member Avatar for MiCro0o

I a new c++ programmer, and i started to solve the SPOJ online challenges just practising , and because of my few experiance.. it gives me wrong answers alwayes. See [ **the Challenge** ](http://www.spoj.com/problems/PALIN/) here. My Code : #include<iostream> #include <vector> using namespace std; int reverse(int input) { int last_digit; …

Software Development c++ mathematics
Member Avatar for mitrmkar
0
279
Member Avatar for Jenniferting

So i have write the following code (above) and now for the second part i am required to apply the Complex Number into finding the voltage across the Resistor in a series RLC circuit. The following tasks : Create an executable program Resonant Circuit, which allows you to output the …

Software Development c
Member Avatar for Jenniferting
0
2K
Member Avatar for Bchandaria

error is coming while linking the file error is undefined symbol _clearviewport in module ... i have used graphics.h library function dos.h and also stdlib.h can any one help me out to identify this problem?

Software Development c image
Member Avatar for deceptikon
0
139
Member Avatar for pro_learner

This is the code which i wrote.But when i input a word,it should search it and give the definition.I think there is a problem in while loop.But i can't solve it.Can u guys,plz check it? [CODE]import java.util.*; class dictionary { public static void main(String args[]) { Hashtable dict = new …

Software Development java
Member Avatar for dreamslct
0
226
Member Avatar for mefju

Hi This is code: #include <iostream> #include <windows.h> #include <fstream> using namespace std; LRESULT CALLBACK LowLevelKeyboardProc( int nCode, WPARAM wParam, LPARAM lParam); int main() { fstream plik; HHOOK hKeyboardHook =0; plik.open("keys.txt", ios::out); plik.close(); return 0; } LRESULT CALLBACK LowLevelKeyboardProc( int nCode, WPARAM wParam, LPARAM lParam) { KBDLLHOOKSTRUCT *pKbdLLHookStruct = (KBDLLHOOKSTRUCT …

Software Development c c# c++ ios
Member Avatar for Suzie999
0
120
Member Avatar for firebird102085

Hi Everyone, I am just starting out so I am sorry for this basic of a question. I have developed the code below to run a very simple program, but, each time the program runs the console window comes up during the program run but closes itself automatically. It should …

Software Development c++ open-source visual-basic visual-studio
Member Avatar for Suzie999
0
333
Member Avatar for pjrey

i can cobble scripts together and whatnot, but my knowledge of cgi/perl is very limited. i have a simple guestbook script i have been using for years, and it suites me well... i have modified it some to allow people to check a box and add themselves to my mailing …

Software Development perl
Member Avatar for Taywin
0
482
Member Avatar for Elixir42

Hi, Using Visual Studio 2012. Why does the syntax highlighting turn off periodically. Then unexpectedly it turns back on again, unreproducably, and rather annoyingly. A chocolate eclair for anyone who knows...?

Software Development c++ visual-studio
Member Avatar for Ketsuekiame
0
204
Member Avatar for giancan

Dear friends, is there a way to execute a dos command in a frame inside a wx.window GUI (and not in the usual external window)? Thanks

Software Development gui python
Member Avatar for sneekula
0
1K
Member Avatar for dreamslct

Hi everybody, Just wondering if it is possible t hat we can change the text size in balloon or bubble message or whatever you call it the one we create useing "trayicon.displaymessage("message", "message", message.info);Highly appreciate if someone could help me out. Thanks.

Software Development java
Member Avatar for JamesCherrill
0
363
Member Avatar for rishif2

how to make a mdiform fixed size(can't be resized or maximize) as there is no property like border style in mdi.

Software Development visual-basic
Member Avatar for AndreRet
0
140
Member Avatar for zachattack05

I am considering an option for users that will allow them to write their own account numbers or create their own algorythm for creating custom account numbers for customers, but also want an option that will auto-generate them if the user doesn't care by using the identity property in SQL. …

Software Development sql
Member Avatar for reshea1950
0
151
Member Avatar for ThatBitchYeah

#include<stdio.h> #include<stdlib.h> struct complex { int real,imag; }; int main() { int choice; struct complex x, y, z; { printf("Press 1 to add two complex numbers.\n"); printf("Press 2 to subtract two complex numbers.\n"); printf("Press 3 to multiply two complex numbers.\n"); printf("Press 4 to divide two complex numbers.\n"); printf("Enter your choice\n"); …

Software Development c
Member Avatar for veducator
0
445
Member Avatar for techxaidz

PROBEMS: > The Library class would include data members such as ID, Date of acquisition, description, number of copies, title and **instance methods such addItem() and retrieveItem()** also accessor and mutator methods are needed to accecss data members. > User arrays to store library holdings. So here's my questions: **What …

Software Development java
Member Avatar for stultuske
0
530
Member Avatar for TIM_M_91

ok so I have been given the following question: Your team is required to build a working SAR system. The system should reflect the following: 1. It should be built using any appropriate technology you are familiar with. However i'm not sure what is meant by SAR system, can someone …

Software Development
Member Avatar for TIM_M_91
0
75
Member Avatar for goutham.patnam

Hi, I am new to Java. Recently I developed one application for Uploading files to Shared drive. All files are Uploading properly but Checksum Of PDF files are mismatching. Someone please help me to fix this issue Thanks in advance.

Software Development java pdf
Member Avatar for Taywin
0
153
Member Avatar for raj09cs42

hi i need the code to calculate the euclidean distance by reading a yeast dataset file when the calcute button is clicked it show the distance between different points in another frame

Software Development dataset java
Member Avatar for JamesCherrill
0
126
Member Avatar for AquaNut

Hi Everyone, I am trying to read in a block of xml using the following code, but it always jumps over the foreach loop: XDocument doc = XDocument.Load(sourceFile); XElement root = XElement.Load(sourceFile); var DataRecords = doc.Elements("DATA_RECORD"); foreach (var dr in DataRecords) { //build up the values we're interested in string …

Software Development c c# c++ xml
Member Avatar for nmaillet
0
359
Member Avatar for rotten69

Hi everyone, we were taught about Generics and Interfaces at uni and I wasn't sure what the perfect situations are to use interfaces because they don't have implementation in them so they work as a contract to other classes where everyone can implement their methods as long as they extend …

Software Development data-structure
Member Avatar for Ketsuekiame
0
160
Member Avatar for Rachna0309

I have datagridview populated with several columns,out of which some columns I want to change from textbox cell to comboboxcell at runtime. I have written a piece of code which works perfectly fine but it takes time to load grid.Below is the code: For Each row As DataGridViewRow In dgvUserDetails.Rows …

Software Development vb.net
0
100
Member Avatar for lionheart84

How can i link database from microsoft access 2003 with VB.NET? can i use anything from eg. Form1 and display them on Form2? thx u very much.

Software Development microsoft microsoft-access vb.net
Member Avatar for azareth
0
707
Member Avatar for chdboy

I'm making a payroll software ,I have made two forms 1.Employer Form 2.Employees form I think now that I have confused ,because now I cannot diffrenciate between who works for who any sugesstions how can I improve on design ,or something that can solve the confusion (Problem) I also have …

Software Development vb.net
Member Avatar for chdboy
0
104
Member Avatar for azareth

i got a problem with my visual studio 2010 the properties window doesn't display anything whenever i click any control i've tried reopening the properties window, opening some old solutions and restarting the program, but it still the same i've also reinstalled visual studio but it didn't help either my …

Software Development vb.net visual-studio
Member Avatar for azareth
0
157
Member Avatar for lulu79

I have datatable looks like below: ![table2](/attachments/large/3/table2.JPG "table2") I want to create a stack chart that will produce something like this: ![stack2](/attachments/large/3/stack2.JPG "stack2") I don't know where to start. I have google about how to create stack column but still can't get it. So far I have a chart but …

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

void drawMap(std::string MapLoc) { char* gridMap[95] [55]; ifstream Map(MapLoc, ifstream::in, ifstream::binary); while (Map.good()) { for(int i = 0; i < 95; i++) { for(int j = 0; j < 55; j++) { if (gridMap[i] [j] == "X") { //Draw Wall glColor4ub(255,255,255,255); glBegin(GL_QUADS); glVertex2f(10*i,10*j); glVertex2f(10*i,10*j); glVertex2f(10*i,10*j); glVertex2f(10*i,10*j); glEnd(); } else if …

Software Development c++ opengl
Member Avatar for Doogledude123
0
702
Member Avatar for andika.kurniawan.121

I download open source from sourceforge.net, But I doesn't see .sln. So I can't see source code.

Software Development open-source
Member Avatar for Ancient Dragon
0
356
Member Avatar for vegaseat

This small code example shows you how to approach the beginning concept of an very simple "IDE" for Python.

Software Development ide python
0
808
Member Avatar for welshly_2010

having a little trouble trying to convert this pseudo code into python, could any help receiveFile () { lastblock := 0 newblock := 0 ; repeat repeat event := getFrameFromUDP(m) ; case event of data : newblock := getBlockNoFromFrame(m) ; transmitAckOverUDP(newblock) | timeout: transmitAckOverUDP(lastblock) esac until newblock==lastblock+1 ; lastblock = …

Software Development java python
Member Avatar for vegaseat
0
7K
Member Avatar for krystosan

I have implemented a toolbar that has several QPushButtons inside QVBoxLayout, however I have implemented it in `toolbar_UI.py` from PySide import QtCore,QtGui class ToolBarUI(QtGui.QWidget): def __init__(self,*args,**kwargs): super(ToolBarUI,self).__init__(*args,**kwargs) self.floatingToolBar() def sizeHint(self): return QtCore.QSize(65,45) def buttons(self): self.emlSel = QtGui.QAction("Email Selected", self) self.emlScn = QtGui.QAction("Email this Scene", self) self.emlBufr = QtGui.QAction("Email Current Frame …

Software Development python
Member Avatar for vegaseat
0
201
Member Avatar for Feal456

So I am writing a cash register program, person buys items and the number calculates. But I am stuck at looping, I want the user to pick to pick all his/her items first then after all the program is done I want the program to ask if the user wants …

Software Development c c# c++
Member Avatar for CGSMCMLXXV
0
3K
Member Avatar for wtosh

/ // Clipper.java // // /** * Object for performing clipping * */ public class clipper { /** * clipPolygon * * Clip the polygon with vertex count in and vertices inx/iny * against the rectangular clipping region specified by lower-left corner * (x0,y0) and upper-right corner (x1,y1). The resulting …

Software Development java
Member Avatar for Taywin
0
628
Member Avatar for sudipta.mml

Hi all, I want to combine multiple files those are kept in a directory. Before getting the big file, I want to edit first and then combine them. For example, I have two files such as file1 and file2 in a directory, say TEST file1 contains 1 C 8.95377612903e-07 2 …

Software Development python
Member Avatar for sudipta.mml
0
525
Member Avatar for trishtren

Hello, Iv recently just started using javafx and i am struggling finding a way to access data from a controller class, at the moment i can do it using method.invoke, however it seems like more of a hack than a legitimate clean option of accessing data from a controller class. …

Software Development java oracle
0
76
Member Avatar for Carolin

This program accepts the name and ID of chess competition contenders. It then randomly assigns a pair of contenders to play against each other. The program predicts the result of each pair by a random result prediction function. The program then continues to pair the winners in the same method …

Software Development c++
Member Avatar for CGSMCMLXXV
0
137
Member Avatar for QUADCOREDELUX

I Have these Programming Project In School Using Visual Basic 2005 Express, we were assigned to do a First Come First Serve Simulator however it's just my Second Year in College and I'm No good in Programming cause I'm not majoring in IT.. Any one can help me on how …

Software Development vb.net visual-basic
Member Avatar for Reverend Jim
0
502

The End.