43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for shihab2555

Hi. i made a database table table and i showed it in a jframe through jtable.I want to change my column name displayed.So far i used the follwing code. private void Update_table(){ try{ String sql="select stu_id ,stu_name ,Blood_group from student"; pst=conn.prepareStatement(sql); rs=pst.executeQuery(); md = rs.getMetaData(); int columnCount = md.getColumnCount(); Vector …

Software Development java mysql
Member Avatar for shihab2555
0
2K
Member Avatar for PrimePackster

Sorry! The problems are all solved and every error is removed.. Sorry guys! Modes: Please delete this thread. CJ

Software Development c++
Member Avatar for PrimePackster
0
103
Member Avatar for Milton Neal

I'm re-kindling some of my C++ theory and was working through a C++ SringBuilder class I found on the net. I understand it all except the 2 operator methods. (See listing below). Can anyone explain what these operator methods are for and how and why you would impliment them. class …

Software Development c++
Member Avatar for rstralberg
0
129
Member Avatar for riahc3

Hello Im trying to do some basic FTP work. What I am trying to do is: 1: Search for a folder named "hi" in "C:". If hi exists, enter it. If it doesnt, create it THEN enter it. 2: Inside hi, count FILES and see if there is greater or …

Software Development java
Member Avatar for Taywin
0
485
Member Avatar for anand01

Hi all, I know that Vector is synchronized, when I run the following program public class ClassA extends Thread{ static Vector<Integer > v=new Vector<Integer>(); public void run() { callMethod(); } public void callMethod() { System.out.println(v.size()); v.add(0); System.out.println(v.size()); v.remove(0); } public static void main(String[] args) { for(int i=0;i<1000;i++) { ClassA a=new …

Software Development java
Member Avatar for anand01
0
188
Member Avatar for Vish0203

hi everyone! I'm working on project which Generates certificates for different students. The interface takes the input of Name, College, Secured position and generates the certificate... but I want to generate all the certificates at once. So, to avoid overlapping of the file names, i want to generate different file …

Software Development c++
Member Avatar for Vish0203
0
132
Member Avatar for Monkey101

Mirroring is done by copying. Suppose a Picture has H rows of Pixels and W columns of Pixels and W is an even number, like W is 2N. Here N is a the whole number that is exactly 1/2 of W. How many Pixels are copied when the Picture is …

Software Development java
Member Avatar for NormR1
0
114
Member Avatar for Malymieczek

Hi All, For homework I had to write a "guessing game" program, which I decided to take to another level and add on the option to add names and keep a score, etc. The problem is however, That my program will not display the text "*Player* Has Won! Congratulations!". Here …

Software Development java
Member Avatar for NormR1
0
165
Member Avatar for darkeclipse8

---------------------------------------------TSet.h------------------------------------------------------ #include <iostream> using namespace std; template <class V> class TSet { public: TSet(); TSet(int size); ~TSet(); void add(V new_item); void remove(V item_to_remove); int num_of_items(); bool isFull(); bool is_item_in_set(V item); friend bool operator==(const TSet<V>& left, const TSet<V>& right); friend bool operator!=(const TSet<V>& left, const TSet<V>& right); friend ostream& operator<<(ostream& outs,const …

Software Development c++ ui-ux
0
158
Member Avatar for PM312

When working with loop some time the loop goes into infinity while testing and I have terminate with “Ctrl+Alt+Del" and lose all unsaved work. How to get out of infinity loop without losing unsaved work. thanks

Software Development visual-basic
Member Avatar for PM312
0
139
Member Avatar for alex910TN

Hey guys. I have the following loop structure condition statement: while ( ord(UpperCaseWords[i]) >= ord('A') and ord(UpperCaseWords[i]) <= ord('Z')) do Problem: When a compile, I get an error saying: "Error: Incompatible types: got "BOOLEAN" expected "LONGINT" " using Dev-Pascal 1.9.2. Description: UpperCaseWords = PACKED ARRAY of Characters that may contain …

Software Development pascal
Member Avatar for pritaeas
0
206
Member Avatar for arishy

To start, it is NOT a hacking job. I want to access my USAGE report from my ISP. At the home page I have to select Account Management then login with my user name and pw from newly created prompt. One clicking login I get yet another prompt so I …

Software Development perl
Member Avatar for arishy
0
263
Member Avatar for nUmbdA

Hello again, I am working on a homework problem and I am not able to get the accumulator to accumulate the tickets sales for each section. My assignment is to create a basic program that will use loops. I need to have it ask for each day of the week …

Software Development python
Member Avatar for nUmbdA
0
211
Member Avatar for kw83028

Hello, this is my first post here so please let me know if I'm doing something wrong. I have a linked list project that I'm having a little trouble with. I was given LinkedList.cpp (main) and that can't be changed. I had to use a completed program that we did …

Software Development c++ linked-list
Member Avatar for kw83028
0
421
Member Avatar for faithful4ever

Hi, Am trying to do up a Fibonacci sequence for MIPS (School requires us to make use of HASE Simulator). I have done up the following code but the output seems to be a tad wrong. ADDI R2 R0 1 ADDI R3 R0 1 ADDI R4 R0 1 ADDI R1 …

Software Development assembly
Member Avatar for faithful4ever
0
600
Member Avatar for sapure

In this example, what's the difference between creating a class variable from the "class Employee" & creating an object from the class GenQueue ?! What's the difference in uses and implementation? import java.util.LinkedList; class GenQueue { private LinkedList list = new LinkedList(); public void enqueue(E item) { list.addLast(item); } public …

Software Development java
Member Avatar for riahc3
0
232
Member Avatar for srikanth2321

Hello, I have a panel and I'm creating small textboxes which carries a text. Later when I create all the textboxes I'm able to move them dynamically in the panel and rearranged them in a order (in a straight line next to each other).How can I read the values of …

Software Development
Member Avatar for nmaillet
0
177
Member Avatar for tomexlfc

Hello everyone. Please I am writing an system application for a company that must generate inquiry id and order id automatically. Whenever a customer makes a new inquiry or new order by clicking the add button, an automatic number should be displayed in the text box and when it's saved, …

Software Development vb.net
Member Avatar for jertos
-1
5K
Member Avatar for monching

# vb.net 2008 # Hi there! I am a college student of **Southern Leyte State University - Tomas Oppus** from **Philippines** taking Bachelor of Science in Information Technology. Can you help me on how to code the timer in **vb.net 2008**? We are using this in our research as completion …

Software Development vb.net
Member Avatar for savedlema
0
245
Member Avatar for Carc369

I'm trying to think of a way to compare a string of multiple words and take each individual word to a dictionary. I have a binary search already coded but it's just breaking the string apart I'm having trouble with. I have to use C-Style Strings (character arrays). For instance …

Software Development c++
Member Avatar for Carc369
0
167
Member Avatar for bestex

Hi guyz, My problem is when i am saving a record in MySQL Database there is an error occured "Incorrect datatime value 3/20/2011 for COLUMN DATE at ROW 1" I used Date as my DataType in MySQL server? Can anyone fix my error ??

Software Development vb.net
Member Avatar for swayzion
0
108
Member Avatar for Alexkid

Hi there, I have an array of unsigned chars that hold hex values, I’m interested in values [5] and [6] of the array. Say [5] = 0x5b = 0101 1011 and [6] = 0x7b = 0111 1011 I'm trying to get all of [5] and the first half of [6], …

Software Development c++
Member Avatar for L7Sqr
0
194
Member Avatar for LucianAdamson

Not sure what I am doing wrong but let me try to explain my issue. I have a single combobox on my form that I use to load external settings. If I load, lets say, 100 settings in to this combobox then I clear the combobox via Combobox1.items.clear(), then try …

Software Development vb.net
Member Avatar for LucianAdamson
0
463
Member Avatar for anukavi

*Hi, Greetings to u all ... I am new to this website as well as in C++. I got a question in c++. I need to remove decimal point from amount (declared as CString) Eg. Amt is 145.76 I need the final output as 014576 and same to be stored …

Software Development c++
Member Avatar for anukavi
0
102
Member Avatar for TeaAnyOne

I made this code which outputs . ... ..... ...*****. ....***... .....*..... but its supposed to output . ... ..... .*****. ...***... .....*..... Any ideas what im doing wrong? To output the triangle myChar1 = * myChar2 = . myLen = 3 myChar1 = input("Select first character: ") myChar2 = …

Software Development python
Member Avatar for TeaAnyOne
0
126
Member Avatar for 41906934@UNISA

SYTAX ERROR ON UPDATE STATEMENT, PLZ HELP, I CNT FIGURE IT OUT GUYZ Private Sub SubmitButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SubmitButton.Click Try conn.Open() mystring = "UPDATE ClientLogIn SET Password = '" & PasswordTextBox.Text & "' WHERE ClientID = '" & ClientIDTextBox.Text & "' AND Username = …

Software Development vb.net
Member Avatar for 41906934@UNISA
0
151
Member Avatar for lulu79

Hi, Is it possible to send an email from SMTP server, for example from do_not_reply@xxxx.xxx.com, without have the server credential (username and password) inside my code? I tried one code, it works, but it send from my email account. Not from SMTP server. I also tested several code but I …

Software Development email vb.net
Member Avatar for lulu79
0
2K
Member Avatar for moneypro

Hi, Thanks to all in advance. I am a newbie java learner. I have to create a project on java for my final term exam. But I cant find the topic of the project. Please suggest me some good but unique project topic. note: I would not like to create …

Software Development java
Member Avatar for moneypro
0
130
Member Avatar for hotblink

Hi, I need some help to make a program where python reads each line(a string) of a .txt file. -sample txt file-(EOF stands for 'End of File) I need it to be able to read up to 300 students. ID , Last , First, Lecture, Tutorial, A1, A2, A3, A4, …

Software Development file-system python
Member Avatar for snippsat
0
428
Member Avatar for sapure

I've been studying C++ for two years, then started Java two months ago. My performance in C++ wasn't good at all although I study hard. I thought that the problem is in not understanding the language concepts but when I started a new language with the intention of building up …

Software Development java
Member Avatar for sapure
0
181
Member Avatar for Kronolynx

the applet compiles fine(no errors) but while running when i press the accountButton(only button in the applet) i get errors, what is wrong with my applet ? thanks in advance Exception in thread "AWT-EventQueue-1" java.lang.NullPointerException at AppletMetodos.actionPerformed(AppletMetodos.java:96) at java.awt.Button.processActionEvent(Unknown Source) at java.awt.Button.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at …

Software Development java
Member Avatar for Kronolynx
0
311
Member Avatar for TexasJr

I'm writing a program for my class that is due tomorrow. I thought I was done, but as I starting using it to get an output file, I ran into a problem, and I can't get past it. I have also gone over my code to see if I made …

Software Development c++
Member Avatar for TexasJr
0
176
Member Avatar for dr_iton

**I created a text file using following method:** using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.IO; namespace FajlliTekstual { class Program { static void Main(string[] args) { FileStream fileStream = new FileStream("shenime.txt", FileMode.Create, FileAccess.Write); TextWriter writer = new StreamWriter(fileStream); Console.WriteLine("Someone Else"); writer.WriteLine("Bla Bla"); writer.WriteLine("Bla Bla"); writer.WriteLine("Unkown Person"); writer.Close(); …

Software Development
Member Avatar for Mike Askew
0
208
Member Avatar for jemz

Hi, is it possible to code column header in listview during run time? can you please give me some idea on this.Thank you in advance.

Software Development listview vb.net
Member Avatar for jemz
0
1K
Member Avatar for Tinnin

Hi all. I'm starting to learn a bit about template functions and I have a question regarding declaration in a header file. My code is as follows (from "Accelerated C++, chapter 8"): #include "Split_Template_func.h" #include <iostream> #include <iterator> using std::cout; using std::cin; using std::string; using std::getline; using std::ostream_iterator; int main() …

Software Development algorithm c++
Member Avatar for Tinnin
0
11K
Member Avatar for UNDER-18 FG

I'm trying to write a coding that will be able to determine if a number keyed-in is a Prime Number or not. Here's what I did: public class PrimeNumber { public static void main(String args[]) { int n; Scanner Prime = new Scanner(System.in); System.out.println(" Please enter a number: "); n …

Software Development java
Member Avatar for jalpesh_007
0
703
Member Avatar for jalpesh_007

I have stuck with one problem. I have created my own program that will work. In program there are two for loop. Now my problem is for(int i=0;i<q;i++) { for(int r=0;r<q;r++) { /*perform some kind of operations returns one integer value.*/ /*here q=4 so first time r loop execute 4 …

Software Development java
Member Avatar for jalpesh_007
0
186
Member Avatar for ikra61893

ok so for this program i have to make a main program that calls four different functions. the introduction function doesn't return anything and it only prints what the program will do. the second function aretheyvalid receives three integers that represent three test scores. the third function is the one …

Software Development c++
Member Avatar for ikra61893
0
156
Member Avatar for apayn

Hey guys Andrew here, with another problem. My while loop is made so that it is on, or off, simple eh? That's what I thought, but it doesn't seem to be acting as I would expect it to! The problem is, when I want it to loop, in testing it …

Software Development python
Member Avatar for M.S.
0
300
Member Avatar for lulu79

Hi, I have a bar chart to display information. I also have a vertical line indicate the limit of Y-value. For example, I set the limit to 25. So now I want the color of column bar to change to red color if the column exceed the limit. I tried …

Software Development vb.net
Member Avatar for lulu79
0
2K
Member Avatar for TexasJr

I'm writing a program for my C++ class, this is a short clip of it: for(customer = 1; customer <= 5; customer++) { customer_Num[customer][2] = rand() % 999 + 1; // Receipt number cout << "Customer Name:" << endl; getline(cin,customer_Non[customer][1]); cout << "Customer's address:" << endl; getline(cin,customer_Non[customer][2]); cout << "Customer's …

Software Development c++
Member Avatar for TexasJr
0
126
Member Avatar for TeaAnyOne

This is some code I have made to count the most occuring vowels within the inputted message. Everytime I run it, it prints out it out 5 times, how can I fix this? I also want it to display a message when there is no vowel entered. Maybe someone can …

Software Development python
Member Avatar for vegaseat
0
173
Member Avatar for deadsolo

Hi, I need help creating or manipulationg my current regex that will grab two numbers from a line, while excluding a specific number. Here is an example of what the line will look like: "In our tests, downloads on port 6881 achieved up to 12059 Kbps while downloads on port …

Software Development java regex
Member Avatar for deadsolo
0
183
Member Avatar for jamesperkins0

Hi guys, i am writing a GUI program that will take a tutor minutes and earings and create an average earnings. My problem is instead of it using what we type in the fields E.g 200 mins and 50 dollars earnt and displaying the average. It shows the default fields. …

Software Development gui java java-swing
Member Avatar for jamesperkins0
0
233
Member Avatar for bradrick42

I am working on some pre-processing. i have a group of text files whose names are dates (i.e. 20120201). data in each file is organized like this: 20120201_line number field1: 123124235 field2:ergjenrgjnergoiefoiefoenr . . field10:dfgkjndgknrkj 20120201_line number . . . The line number is the only thing that separates the …

Software Development python
Member Avatar for woooee
0
167
Member Avatar for az-mi51

I am trying to multiply two single arrays and printing out a 2D array...basically I'm making a multiplication table. I keep getting SEGMENTATION FAULT error. Any suggestions? #include <stdio.h> #define COLUMN_SIZE 12 #define ROW_SIZE 12 #define SIZE 12 int main (void) { int i, j, k; int column[COLUMN_SIZE] = {1,2,3,4,5,6,7,8,9,10,11,12}; …

Software Development c++
Member Avatar for az-mi51
0
225
Member Avatar for Carc369

Basically this function is supposed to accept a user inputted string, and the amount it is supposed to be transposed by 'x' amount (between 0-25). The idea behind transposition is that if the user enters "abc" for the string and then wants to transpose it by 1. The new string …

Software Development c++
Member Avatar for Carc369
0
161
Member Avatar for F1Fan12

Hi All, I am writing a program in which I take data for a table from the user, and then ask for the alignment for each column. Then I have to display it. Each column mush be separated by a tab and a space. For example, let's say the user …

Software Development python
Member Avatar for woooee
0
5K
Member Avatar for kirtee2209

Hi. I am using a comparer class to sort a list of People details by their firstName. The code to do this is as follows: public class PersonDetailsComparer : IComparer<PersonDetails> { public int Compare(PersonDetails x, PersonDetails y) { int returnValue = 0; if (x != null && y != null …

Software Development
Member Avatar for kirtee2209
0
133
Member Avatar for pooran.c

int [10] array_int=new int [10]; array_int[0]=0; array_int[1]=1; array_int[2]=2; array_int[3]=3; array_int[4]=4; array_int[5]=5; question is: how to print in circular manner starting from the middle(index is 2) that is output : 2 3 4 5 0 1 .

Software Development java
Member Avatar for stultuske
0
372

The End.