132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sheushen

Hi, is there any way to return the array from the Checkgpa class back into the Gpa class for an output? I am still new in this topic. [CODE]public class Gpa { private String name; private char result; private double gradep; private int num, sem, ch; public Gpa (String na, …

Software Development java
Member Avatar for stultuske
0
214
Member Avatar for ng5

i have a form with a listbox. the listbox can be edited (things added/deleted) and when the form is closed i would like the items in the listbox to be saved when the red "x" in the top right corner is clicked any ideas?

Software Development vb.net visual-basic
Member Avatar for Phasma
0
131
Member Avatar for jeevsmyd

[code]for(int i=0;i<=c;i++) { l=0; if(strcmp(findedge(tst[i],dfa[0][j]),"null")!=0) { strcpy(t1,findedge(tst[i],dfa[0][j])); //l=strlen(temp); strcat(temp,","); strcat(temp,t1); //temp[l+1]='\0'; //temp[l]=','; } } [/code] When I try to append comma or some other symbol to temp, a segmentation fault occurs. If that step is omitted everything works perfectly. This is code is from my program to convert NFA to …

Software Development c++
Member Avatar for Ancient Dragon
0
243
Member Avatar for KatseasSAvvas

I'd like to ask the user if he/she wants to rerun a script. I've thought of doing that with a while. My problem is that both [CODE] import sys rerun = "y" while rerun == "n": sys.exit() else: print("do some stuff") rerun = str(input("Would you like to start again? [y/n]: …

Software Development python ubuntu
Member Avatar for KatseasSAvvas
0
2K
Member Avatar for lena1990

hi i work on project in java and i use tcp and after that i almost finish the project then i have to create an applet and the applet doesnot work with tcp so what can i do i need any help?

Software Development java tcp-udp
Member Avatar for NormR1
0
103
Member Avatar for crazyjdog

I have this problem that I am working on for class, I don't have the method calls in the main mostly because I'm not sure how to use them. I guess my question is what am I missing and what do I need to change to get this to run …

Software Development
Member Avatar for dwarvenassassin
0
206
Member Avatar for leyla

Hello, I'm back again with the same code however I have tried everything and I am still stuck. The message box works, and all of the values are correct but the last value. I would rather not change the message box code, but maybe just the last line where the …

Software Development vb.net
Member Avatar for codeorder
0
177
Member Avatar for DarkMonarch

is it possible in C to do an unfix size array like in Java ? if so, howto ? thx guys Dark

Software Development c c# c++
Member Avatar for DarkMonarch
0
196
Member Avatar for Kycas

Hi, I want to filter .BMP image with 3x3 digit matrix. Basicly it is multiplying image pixels by numbers in matrix. Any suggestions how it should be done? I know that i have to open a file using fopen() I did that. Should I just loop through whole image and …

Software Development c image
Member Avatar for Kycas
0
78
Member Avatar for bigzos

This is my login form [CODE] Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim con As New OleDbConnection("Provider=Microsoft.jet.oledb.4.0;data source=C:/Users/Space Era/Documents/User.mdb") Dim cmd As OleDbCommand = New OleDbCommand("SELECT * FROM Users WHERE userid = '" & TextBox2.Text & "' AND password = '" & TextBox1.Text & …

Software Development open-source vb.net
Member Avatar for bigzos
0
241
Member Avatar for tleverington1

I'm having some problems when trying to set a panel within my JFrame to visible when someone either presses enter or clicks the JButton within my two methods shown in previous post. I am getting the following error: Cannot make a static reference to the non-static field Interface.panel. The code …

Software Development gui java user-interface
Member Avatar for tleverington1
0
2K
Member Avatar for coolbeanbob

Is this a real class? I am working through a Deitel book, and they use it, but my program does not recognize it. I am importing the same libraries as the example in the book.

Software Development java
Member Avatar for pdeitel
0
240
Member Avatar for sanidon

hello m new here starting java can anyone guide me how ti initilize array of objects in java em receving java.lang.NULL pointer exception ` choice=Integer.parseInt(JOptionPane.showInputDialog(null,"Enter choice"));` Patient pati[]=new Patient[49]; if(choice == 1) { pati[i].setdata(); pati[i].showdata(); count++; } if(choice== 2) { pati[count].update(); pati[count].showup(); } }while(choice!=3); }

Software Development java
Member Avatar for richieking
0
202
Member Avatar for wallet123

hi hello! im planning to do a payroll system for our defense project,im a beginner and i want our program to be more complicated in a way that we can still be able to explain it. I want our program to be able to have multiple input boxes, because the …

Software Development java
Member Avatar for wallet123
0
120
Member Avatar for jyu

i store student information(name grade mark) in database....how to print student who score less than 50.0 mark and who score A ,Compute the average mark of students in the class, number of students who scored less than 50.0 marks,Print out the information for all ten students and Given a student …

Software Development c++
Member Avatar for zeroliken
0
205
Member Avatar for bmackkc

I have two forms; I'll call them frmReturn and frmReturnItem. FrmReturn is bound to data in a SQL table; data entered in frmReturnItem is stored as a child table in SQL. In the database, there is a one-->many between Return and ReturnItem. frmReturnItem can be opened only from frmReturn. frmReturn …

Software Development first-post vb.net
Member Avatar for major_lost
0
2K
Member Avatar for RandomIntellect

Hi, I've got two tables ina database which I'm trying to update at the same time. I'm using the code below to update: [CODE] Conn = New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=KingfisherDB.mdb;") Conn.Open() 'Define data adaptor and fill data sets DA = New OleDbDataAdapter DS = New DataSet Cmd = New OleDbCommand Cmd.Connection …

Software Development dataset open-source vb.net
0
127
Member Avatar for leyla

Below is the code I have been working on in VB.NET What basically happens is that when the user presses the calculate pay button, a message box is supposed to appear with all of the information in it, however the error comes up with: 'InvalidCastException: Conversion from string "Total pay: …

Software Development pay-per-click vb.net
Member Avatar for leyla
0
360
Member Avatar for sinrtb

In your opinion what is the fastest c++ compiler? I have found the gnu's compiler on my schools linux machines tobe very fast but i personally prefer the windows enviroment, is there any fast compilers for windows , something faster then g++ and mingw?

Software Development c++
Member Avatar for Jimmeny
0
435
Member Avatar for amir808

hey guys i just started using C# im trying to change the backcolor when the mouse if pressed and moved, it works fine when the window is small, however when i maximize the window the colors stop changing and keeps on crashing saying that Color.FromArgb(x,y,g+=1) cannot exceed 255,i tried preventing …

Software Development
Member Avatar for ddanbe
0
178
Member Avatar for javalover

Hi frnds!!!!!! Am trying to crop an image using java.. If I draw a rectangle on the image it ll crop the image in the given level.. My code does it but the fact is, it is not cropping the actual part which we selected..This is my code.. [CODE] import …

Software Development gui image java java-swing
Member Avatar for javalover
0
2K
Member Avatar for anthony143

[B]Hi, guys can you help on how to make a program which hotel management system using C++? I don't know where to start or could you pls post the source codes in a simple structure so that I can understand it easily I am an I.T student here in the …

Software Development c++
Member Avatar for sawako
0
164
Member Avatar for nickliutw

I'm working on a Palindrome program. For some reason, my compare method always return zero. "c" should suppose to increment 1 when both letter are the same, but my method would not increment 1 when the letter are the same for some reason. I'm not sure where is the problem. …

Software Development java
Member Avatar for nickliutw
0
164
Member Avatar for coding101

im writing a chat server in c and am need help. my server can write to a socket, the client can read from the socket. How do i have the client write to the socket and have the server read from the client socket? server.c [CODE] #include <stdio.h> #include <unistd.h> …

Software Development c client-server
Member Avatar for histrungalot
0
217
Member Avatar for newbie14

Dear All, I have a function with input parameter as const u_char *p. So when I write like this printf("\n\n Char value p : %.2x",(unsigned int)p[1]). It gives me a hex value. How to print the whole p value which method is best to use. I need to analyse it …

Software Development c
Member Avatar for newbie14
0
474
Member Avatar for rapirap

Hi! Please help me with my search functionality...searching using textbox and retrieving the data into a listview. here is my code: [CODE]openrstJCcaseInfo "select * from JCcaseInfo" If Not rstJCcaseInfo.EOF Then caseinfo.ListItems.Clear Dim m With rstJCcaseInfo While .EOF = False If LCase(txtsearch.Text) = LCase(rstJCcaseInfo.Fields("CaseTitle").Value) Then Set ls = caseinfo.ListItems.Add(, , rstJCcaseInfo.Fields("CaseStatus").Value) …

Software Development listview visual-basic
Member Avatar for Jx_Man
0
287
Member Avatar for Labdabeta

How do you make shadows in OpenGL. I have been using the NeHe tutorials, but I do not understand their shadow lesson. Can anybody help?

Software Development c++ image microsoft opengl
Member Avatar for mike_2000_17
0
380
Member Avatar for hey.howdy

[CODE] // a code to produce matrix style affect #include "stdafx.h" #include<iostream> using namespace std; int modulus(int Number, int number); char getchar(int lowerlimit, char a, int upperlimit); int modulus(int Number, int number) { int q=Number/number; return Number-(q*number); } char getchar(int lowerlimit, char a, int upperlimit) { return (a+modulus(lowerlimit,upperlimit)); } int …

Software Development c++ matrix-multiplication
Member Avatar for histrungalot
0
211
Member Avatar for Farhan_B

I sence victory been battling the this code for 2 days now. the code i have generated is [CODE] strsql = "delete from cg_security_user_right where user_id= " & TextBox1.Text & " role_id=" & TextBox2.Text & ""[/CODE] it comes up with this error Syntax error (missing operator) in query expression 'user_id= …

Software Development vb.net
Member Avatar for Phasma
0
153
Member Avatar for dwarvenassassin

Again, for anyone working with ID3 version 1 or 1.1 tags. This class is used to store the tags associated with a given file. There is a default constructor in case you need to instantiate an 'empty' instance, but in 99% of cases you pass the filename of the audio …

Software Development audio
0
193
Member Avatar for dwarvenassassin

For anyone working with ID3 version 1 or 1.1 tags in audio files, this static class may come in handy. It uses indexers to convert between the textual to the numerical representation or from numerical to textual and also accounts for unset and invalid values. Being static, it is always …

Software Development audio
0
220
Member Avatar for evanovan

i have an "add function" that adds names alphabetically to a sorted linked list. the list is already made in this format : Dani Web Mark Markos Michael David Zebra Zebra . . etc if i add a node : adam ( it goes to the end of the list …

Software Development c++ linked-list
Member Avatar for evanovan
0
205
Member Avatar for HelpMe1234

I've got this intro C++ class and I can't figure out what the teacher is looking for, please Help Me if you can. 1) Each group turned in pseudocode for an in class project with five or six steps to run a baseball game. You are to turn the pseudocode …

Software Development c++
Member Avatar for HelpMe1234
0
270
Member Avatar for ipodtrip

to anyone, I'm new to using C# wrote a program for a business class to calculate double-decling balance method of depreciation for years. But when I run the progam and enter the 2000 for property value, 5 for property life. I get the wrong results. for year 1 Value at …

Software Development c#
Member Avatar for Momerath
0
550
Member Avatar for Prisms

Hey guys I'm doing a fun little program that will use the character roster from league of legends. Basically I am going to have all the champion data like health, attack power, and type (early, mid or late game) stored and then compare the characters and depending on what the …

Software Development c++
Member Avatar for Prisms
0
204
Member Avatar for timosoft

Hello i want to have a txt file on my application final .exe the .txt is located at C:\Users\Timhook\Documents\Visual Studio 2008\Projects\WWTBAM \WWTBAM \bin\Debug\hask.txt thats my project bin\Debug folder will it include the this hask.txt file after publishing the application? thanks

Software Development publishing vb.net visual-studio
Member Avatar for timosoft
0
486
Member Avatar for mjselkirk

I have been given a project to create the interface and code for a ticket seat calculator I have to produce the quantity and price which is from a text box on the main frame pass them into the seat class to create the totals then pass it into a …

Software Development java java-swing
Member Avatar for NormR1
0
158
Member Avatar for karoma

Hi guys, I'm trying to develop a card program, which seems to be working fine, with the exception of the dealing part. The deck is initialised, shuffled, then is supposed to deal out 5 cards without duplicates. However I keep seeing duplicates when I deal. I've ran though it countless …

Software Development c
Member Avatar for WaltP
0
131
Member Avatar for codemonster

Ok - so I have an object "A" that has a value (for the sake of example here, it's initialized to 0). I'm making a GUI and I've created a panel that is supposed to display the amount from object "A" in a label which shows up on the screen. …

Software Development gui java
Member Avatar for codemonster
0
214
Member Avatar for coolbeanbob

Hello, I am trying to work through an example from a Deitel book. I keep getting a "source not found" error on line 27 of the LabelFrame class. I have put the "bug1.png" in every single directory associated with this project. I am stumped... [CODE] import java.awt.FlowLayout; import javax.swing.JFrame; import …

Software Development java java-swing
Member Avatar for coolbeanbob
0
187
Member Avatar for SgtMe

Hi all. I'm using DragonFireSDK to make an iPhone app, which means that I can't use any external libraries other than the SDK one. I am trying to get an integer variable for score to a function which will display text on the screen. However, that function takes a char* …

Software Development c++ iphone
Member Avatar for Ancient Dragon
0
407
Member Avatar for benclifford

Hi, I have a task to perform which all to do with the smurfs, reading from a file and doing some simple stuff to it. The last part I need to do is print out a list of all smurfs and their corresponding role in alphabetical order. I am hoping …

Software Development c
0
245
Member Avatar for Sommy

Hello, I'm writing a small game for a class. The problem is when i run it it starts consuming the computers resources, i bet i've done something very wrong but i just can't find it (haven't even added bouncing back from the paddle to the code, or game over for …

Software Development gaming java java-swing
Member Avatar for NormR1
0
279
Member Avatar for megaman656

for example, i want to combine two number 6 and 8 and it will equal 68. is this possible in C? [ICODE]int a = 6, b = 8,c; c=ab; [/ICODE] and c will = 68.

Software Development c
Member Avatar for VernonDozier
0
107
Member Avatar for ahmed elweshahy

Hi , i have problem i have made C# Application using SQL SERVER 2008 R2 I want to make deployment to setup my application with database One setup File to install my application without manually setup SQL SERVER 2008 R2 _____________ i have read many articles but didn't get _________________ …

Software Development
Member Avatar for Mitja Bonca
0
104
Member Avatar for koricha

Hello i need help with a program which allows the user random read access to any entry of the array. If the user attempts to read outside the useful region, your data structure should return a 0. Also It allows the user random write access to the useful region only. …

Software Development c++ data-structure storage
Member Avatar for koricha
0
152
Member Avatar for turt2live

Hello, I'm working on an application that uses a ServerSocket, but it (at points) stops the server thread and restarts it, throwing a java.net.BindException: address already in use exception. How can I unbind the ServerSocket (.close() is not working to unbind) so I can re-use the same port seconds later? …

Software Development java
Member Avatar for richieking
0
648
Member Avatar for Hussam Alahmadi

in Attached Files there is Question i do not understand the last step how to coount it ? [CODE]package javaapplication178; public class JavaApplication178 { public static void main(String[] args) { int x[][]={{14,7,5,0}, {9,20,25,12}, {25,25,40,30}}; for(int i=0;i<x.length;i++) { for(int y=0;y<x[i].length;y++) { System.out.print(x[i][y] + " "); } System.out.println(" "); } PrintStock( x); …

Software Development java
Member Avatar for stultuske
0
113
Member Avatar for vishnukumar

Hi, i am beginner in java. I doing my final year project in Java Swing. So far, somehow through some online tutorials and articles, i learned to finish 30$ of my project. Now, i need to know how to insert the data from my database into Jtable and display it.... …

Software Development java java-netbeans mysql
Member Avatar for stultuske
0
483
Member Avatar for tenorjazz

When I enter a vb.net textbox, if there is data in it, I want it to be highlighted. I looked around and couldn't find a property that would do this so I do the following: I built a little subroutine that does the highlighting and then call it from the …

Software Development vb.net
Member Avatar for codeorder
0
159

The End.