43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for pwk064

Here is my Main method - calling Display. I am getting an error message, I don't know what I am missing. Any suggestions? public class Student { private int studentID; private double studentGPA; public Student() { studentID=100; studentGPA=3.0; } public Student(int id, double gpa) { studentID=id; studentGPA=gpa; } public void …

Software Development java
Member Avatar for masijade
-1
2K
Member Avatar for pygirl

Hello, I would really appreciate some help with tkinter. Does anyone know how to change border colour of a widget and if it is possible to display border on just one side of the widget (so for example only the left or bottom border)? I tried to find the answer …

Software Development python tkinter
Member Avatar for pygirl
0
1K
Member Avatar for nerdagent

I'm trying to put in some code that will delete a list from a list. For example if the user decides to delete the first names he would type in 'first' (w/out quotes). however after they input the name nothing prints out. Any suggestions? [CODE] person = ' ' first …

Software Development python
Member Avatar for vegaseat
0
127
Member Avatar for valkerye

I'm having a bit of an issue with a while loop in a program I'm working on. I am attempting to use a while-eof loop to read float numbers from and input file and simply rewrite those files to a created output file. My issue is that the while loop …

Software Development c++ ios
Member Avatar for VernonDozier
0
734
Member Avatar for bentlogic

Hi Java Developers, wondering if someone can point out why references to 'Student' (successfully compiled java class) in my ValidRecords.java source file don't seem to resolve at compile time? It's important to say that ANY and ALL references to Student object from inside ValidRecords.java don't resolve... not just the one …

Software Development java java-netbeans
Member Avatar for peter_budo
0
347
Member Avatar for xfrolox

Well hi all again, This one have to be Ez for most of u guys. Im posting some thread peace per peace to finish some features to my program. well whats the code that when i open my program i cant open it again. like Example: LOL.exe when i open …

Software Development vb.net
Member Avatar for xfrolox
0
166
Member Avatar for Lukezzz

I am trying to Convert this Long String to an integer but when running the code, I get an error that tells that the inputstring is in an incorrect format. How can I convert this string so I will get the ouput integer: 41517 ? [code] String^ ba = "41516.7095211088"; …

Software Development c++
Member Avatar for Lukezzz
0
96
Member Avatar for JRabbit2307

8. create a console application. Insert the below code, and run the program. Note that a conditional statement is used within the body of the loop. This is common. Write a similar program using this one as an example that asks the user to name his or her favorite make …

Software Development vb.net
Member Avatar for sknake
0
99
Member Avatar for masterofpuppets

hi currently I am developing a game in python called TankWar, it is basically 1vs1 game style and each player has its own turn. Both players control their respective tanks using the control keys and WASD and they can specify the missile's angle, velocity, tank position. I am using an …

Software Development algorithm python tkinter
Member Avatar for masterofpuppets
0
195
Member Avatar for fareast87

Hello everyone. If we open the jpg file with notepad, we can see some text or gibberish that doesn't give us any meaning. How do I append some text (ie password hash) to it using Java? I'm attaching a password hash to the jpg file. Hope that anyone reading this …

Software Development image java
Member Avatar for fareast87
0
93
Member Avatar for fareast87

Hi everyone. I'm going to read a content of a jpg file using java.io.FileReader. I'm successfully read the whole content of it. But the problem is, I want to only read the last 32 digit hexadecimal number which is MD5 hash I save earlier. How am i suppose to do?

Software Development java
Member Avatar for fareast87
0
105
Member Avatar for Web_Sailor

Hi I was trying to do a type checking in my input file while reading it. I am getting some compile time errors. Compile time error report is :- [CODE]NEW.cpp:26: error: invalid conversion from ‘char*’ to ‘int’ NEW.cpp:26: error: initializing argument 1 of ‘int isdigit(int)’ [/CODE] [CODE] Line 26 is …

Software Development c++
Member Avatar for Web_Sailor
0
238
Member Avatar for Web_Sailor

Hi, I was wondering if there is any way to get the largest size of a multimap key / value. I mean something like this:- if there are 4 values in a multimap:- [CODE] my name is web_sailor [/CODE] Suppose I want to get the maximum size key / value. …

Software Development c++ ios
Member Avatar for Web_Sailor
1
1K
Member Avatar for yorro

I know it is as simple as it is, I've search around the internet and I came up with nothing. Maybe I don't know what to search for. Basically my datetimepicker format is set to year only. My string is "2009" I want the datetimepicker-year to set as the year …

Software Development vb.net
Member Avatar for yorro
-1
185
Member Avatar for Israelsimba

Anyone please help. Why is it that [B]Adodc.recordset.save[/B] cannot work. it says...object in the with variable not set.... can anyone tell me what the problem is and is it normal to use [code]Adodc.Recordset.fields "name" = txtname .text;[/code] what is wrong with my code. is anything missing there because i cannot …

Software Development visual-basic
Member Avatar for vb5prgrmr
0
105
Member Avatar for functionalCode

I wrote a query that will return a large amount of records. When I run the query it fill a datatable then show it in a datagridview, but I am only getting 80290 rows. There is more than that. Any idea of what is causing this? Thanks

Software Development
Member Avatar for Mick Curley
0
107
Member Avatar for xfrolox

well hi this is my second thread the first one still unsolved lets see about this one. how can i do that when my program is open and its run in a Vista computer, it have to show a MsgBox and says Error please run as admin and when it …

Software Development vb.net
Member Avatar for xfrolox
-1
102
Member Avatar for sparksterz

Ok this is driving me nuts. I'm working in C++ and trying to delete an element from a vector It's going something like this (dirPath is a stack of directories, and dirPtrs the list of what a directory points to) [CODE] for(int i = 0; i < dirPath.top().dirPtrs.capacity(); i++) { …

Software Development c c# c++
Member Avatar for sparksterz
0
367
Member Avatar for yuha

I am working on displaying student name, test score, average marks and grade as an output. This is what I have been working on, but still I couldn't manage to display the output.. The input must be get from the user and, which is the student name and the test …

Software Development c++
Member Avatar for csurfer
0
150
Member Avatar for Roebuc

Hello All, I might be developing an IVR System for a unique school project. This is something I have never done before and I am currently in the researching phase of the project. Can anyone point me to some valuable articles, tutorials, definitions, open source programs for review, and anything …

Software Development open-source visual-basic
Member Avatar for Roebuc
0
181
Member Avatar for _dragonwolf_

I am having an issue converting words into phonetic spellings. Example: userInput = apple / outResult = Alpha Papa Papa Lima Echo I can get my code to convert a single letter to its respective phonetic. I can also get it to split a string into separate characters. Here is …

Software Development apple java java-swing
Member Avatar for _dragonwolf_
0
2K
Member Avatar for dmcadidas15

I'm having trouble with a program I'm writing and any help would be greatly appreciated. I'm supposed to use an if statement to return an error message if the values entered aren't either the strings 'on' or 'off'. Right now I have [CODE]if (b1 and b2 and b3 and b4 …

Software Development python
Member Avatar for woooee
0
101
Member Avatar for awa

Hi, I want to sort a tuple consisting of two floats and one array by the absolute value of the first float in reverse order. What I did is the following: [CODE]from numpy import * test = [(-0.02, 100.2, array([1, 0, 0])), (-4.02, 300.4, array([1, 1, 0])), (3.57, 503.7, array([1, …

Software Development python
Member Avatar for leegeorg07
0
261
Member Avatar for snurd

I need help to write the code to filter a Recordset called Data1 and a Field called AWEIGHT, when loading a form. I tried the following and it does not work. After the form is opened I only want to be able to search the filtered records. An example would …

Software Development visual-basic
Member Avatar for snurd
0
246
Member Avatar for mahela007

If I do this [CODE]mylist = [1,2,3,4] a = mylist a[0] = 'hello' >>>mylist output : 'hello',2,3,4 [/CODE] I find that the value of mylist has changed to 'hello',2,3,4 So my question is.. If I assign one variable as a value of another (like saying a is mylist), then is …

Software Development python
Member Avatar for jice
0
332
Member Avatar for OSiRiSsk

Hello, i have trouble with creating funkction that will remove white spaces if they are more than 1 in a row i have created this function so far [CODE=c]void VymazBiele() { int c; while ( (c = getchar() ) != EOF ) { if (isspace(c)) { putchar(' '); while ( …

Software Development c
Member Avatar for OSiRiSsk
0
542
Member Avatar for darangho

Hi all, I am trying to write a code that determines the path of the currently running java file. I know that in python, you do os.path.join(sys.path[0], sys.argv[0]) in order to figure this out, but is there any equivalent code like this in java? Thanks!

Software Development java
Member Avatar for moutanna
0
181
Member Avatar for gottlieb78

Hi Once again a newbie posting the same homework assignment! I´ve searched alot for this problem but I´m probably not good enough in searching because I just can´t figure this out. My main problem now is to insert the airplane layout into the 2D array. I was trying to do …

Software Development c++
Member Avatar for ImMoRtAl-
0
876
Member Avatar for JRabbit2307

import java.util.Scanner; public class AverageArray { public static void main(String[] args) { final int TOTAL_NUMBERS = 10; int[] numbers = new int[TOTAL_NUMBERS]; float sum; //Create a Scanner Scanner input = new Scanner(System.in); //Read all numbers for (int i = 0; i < numbers.length; i++) { System.out.print("Enter a number:"); //Conver String …

Software Development java
Member Avatar for Foxh451
0
479
Member Avatar for cgyrob

Im currently working on a gridview built using Itemplate at runtime. When in edit mode I use dropdownlists for some of the control fields which are populated from views in my db. The problem I am finding is I usually have a memberID field and a MemberName field and need …

Software Development
Member Avatar for cgyrob
0
112
Member Avatar for Clawsy

All these days I've been trying to access a Swing component (e.g.: JLabel) from a separate thread. I tried using "Thread", "Timer", "SwingWorker" but I couldn't find the solution. - Using a thread results in stack overflow. - Using a timer doesn't access the Swing component (e.g.: change the text …

Software Development java java-swing
Member Avatar for Clawsy
0
230
Member Avatar for chico2009

hi I am a complete novice and have written the following code and it work as required, with the exeption of the text being in a tidy format when printed. The origDict.txt has been exported in a fixed file format, and I am trying to acheive a fixed file layout …

Software Development python
Member Avatar for chico2009
0
144
Member Avatar for babylonlion

I created 5 separate programs, and put them in the same folder; each one of them has a package. I need to create another one that calls their methods. The incomplete code that I have so far is: [CODE] import edu.macomb.itcs2590.babylonlion .cars.*; import edu.macomb.itcs2590.babylonlion .trucks.*; public class InventoryApp { public …

Software Development java
Member Avatar for babylonlion
0
112
Member Avatar for akulkarni

I wish to create an application using swing to update data to the database. I will need three buttons add, modify and delete. i have so far created JDBC connection with Ms acess. i have also created a textfield where i will enter data like this... [code=JAVA] import java.awt.*; import …

Software Development java java-swing
Member Avatar for akulkarni
0
251
Member Avatar for laidback7

Can anyone help me use a JLabel to display a stack??? I've been searching java.sun.com and I can't seem to find the right way to do it. I get errors every time. I think everything is right in my program besides this. Thanks for looking. Here's what I have: (Am …

Software Development java
Member Avatar for laidback7
0
182
Member Avatar for jonahmano

I am building a program with Name, Roll No., Marks in different subjects, Total and Average. Just wanted some advice. Pls encourage me. class Report { static void Main () { string s = " "; int a; /*,c,d,e,f,g,h,i;*/ Console.WriteLine ("Enter the Name:"); s= Console.ReadLine (); Console.WriteLine ("Enter the Roll …

Software Development c#
Member Avatar for sknake
-2
140
Member Avatar for Vdub.za

Hi guys, I am still a bit new to delphi and was wondering if someone can help me. I need to figure out how to write a search engine into an app i am writing in delphi. any help on how i may be able to do this would be …

Software Development delphi pascal
Member Avatar for Vdub.za
0
269
Member Avatar for culebrin

Hi, Is there any chance to get a visual basic 6 compiler for free? I mean, I have a vb6 project (made with the visual studio 6 IDE), but I have no IDE (visual studio 6 or something). Thank you very much. Omar

Software Development ide visual-basic visual-studio
Member Avatar for vb5prgrmr
0
348
Member Avatar for awa

Hi I was wondering if it is possible to process 2 different files with one function and store the strings/lines I'm searching for in different variables as for instance number1 for file 1 and number 2 for file 2. the code so far: [CODE]import string Name = raw_input("Filename ") infile …

Software Development file-system python
Member Avatar for awa
0
117
Member Avatar for JavaOwnsMe

So they forced me to take java despite having no programming background... I'm a web design major, not programming. Anyway, I'm really stuck on the homework problem - if anyone could help me out that would be amazing. I need to write a program (using a loops) so that the …

Software Development java web-design
Member Avatar for ejosiah
0
87
Member Avatar for JRabbit2307

hi guys i'm trying to get the sum, average, and the number of values in the array greater than the average... i am new to this and keep getting errors! helllpp.. [code=java]import java.util.Scanner; public class AverageArray { public static void main(String[] args) { final int TOTAL_NUMBERS = 10; int[] numbers …

Software Development java
Member Avatar for masijade
0
1K
Member Avatar for hello214

hi, im making a static float method and i couldn't figure out the error i'm getting: invalid method declaration; return required Is there anyone can help with this static calcTaxes(float grossPay) { float netPay ; if (grossPay <= 300) netPay = (float) (grossPay - (grossPay * 0.15)); if (grossPay <= …

Software Development java
Member Avatar for hello214
0
82
Member Avatar for Goalatio

Would anyone know how to get command-line arguments in NASM16? I am on a Windows XP. I have tried a great deal of things and spent much time searching for an answer to this. What I ment by command line arguments, something simple like this would be enough. Filename: Hello1 …

Software Development assembly
Member Avatar for Goalatio
0
3K
Member Avatar for jcarlos.alvarez

Hi, I have 2 hexa arrays of 8 bytes and need to do an xor of them, something like this: [CODE=C] unsigned char xorBufferTemp[8]; unsigned char bufferHexas1[8]; unsigned char bufferHexas2[8]; [/CODE] I'd like to make something like that ... [CODE=C] for (i=0; i<8> i++) { xorBufferTemp[i] = bufferHexas1[i] ^ bufferHexas2[i]; …

Software Development c
Member Avatar for jcarlos.alvarez
0
190
Member Avatar for babbu

hello every1, am unable to edit data in a data table and save it to the data base. this is my code this is to fill the data table [CODE] m_ContentsDataAdapter = New OleDb.OleDbDataAdapter("Select ConID,CID,ID,Combination_Name,Basic_Name,Code,Weight,Unit from contents", oledbcon) m_ContentsDataAdapter.Fill(m_ContentsDataTable) m_ContentsCommandbuilder = New OleDb.OleDbCommandBuilder(m_ContentsDataAdapter) [/CODE] to edit the data this is …

Software Development vb.net
Member Avatar for TomW
-1
110
Member Avatar for Bluesilver

Hello! I'm a college student who is taking a beginners Java programming class. For the first time, I really need some assistance figuring out the latest assignment, which involves static methods. I have 5 such assignments, but I only need helping figuring out 1, because then I can do the …

Software Development java
Member Avatar for Bluesilver
0
141
Member Avatar for jcarlos.alvarez

Please I need a help only in ansi c. I have an array of hexa values, for example: int N=3; char myHexas[N]; myHexas[0]=0x12; myHexas[1]=0x34; myHexas[2]=0xAB; I need to have a new array with the following: myStrings[N*2]; myStrings[0]='1'; myStrings[1]='2'; myStrings[2]='3'; myStrings[3]='4'; myStrings[4]='A'; myStrings[5]='B'; Any ideas should be great. Thanks in advance, …

Software Development c
Member Avatar for jcarlos.alvarez
0
207
Member Avatar for yorro

How do you call Subs/Functions inside a User-Control? Modules and Forms does not recognize the public subs/functions inside a user control.

Software Development vb.net
Member Avatar for yorro
0
2K
Member Avatar for lewashby

I'M reading a book on Python and my very first object/constructor program isn't show the output that the book is showing. I lacks the two lines "A new critter has been born!" [CODE]# Constructor Critter # Demonstrates constructors class Critter(object): """A virtual pet""" def _init_(self): print "A new critter has …

Software Development python
Member Avatar for lllllIllIlllI
0
122
Member Avatar for pocku

The codes our instructor provided for us has been giving me a "no such file" error message for the line #include <mutex.h> in the following code: [CODE]/* * mutex.cpp * scheduling * */ #include <mutex.h> Mutex::Mutex() { } Mutex::~Mutex() { } int Mutex::Lock() { } int Mutex::Unlock() { }[/CODE] The …

Software Development c++
Member Avatar for pocku
0
188

The End.