199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for j1979c

[B]Hello, I'm currently having some problems with the StringTokenizer from java util. I've declared a StringTokenizer like: [COLOR="Red"]StringTokenizer token = new StringTokenizer(line,"|"); [/COLOR] to token out a string read from a txt file such as: [COLOR="Blue"]Diablo|RPG|PG|PS2|20[/COLOR] and it works fine(detects all the "|" as delimeters) :) The problem now is, …

Member Avatar for javaAddict
0
288
Member Avatar for ajay_tabbu

my program is compiled.but on run that i have message "Exception in thread "main" java.lang.NullPointer Exception" 1. class Rev 2. { 3. char a[]; 4. char i=3; 5. void str() 6. { 7. for(i='A';i<'D';i++) 8. { 9. a[i]='i'; 10. } 11. } 12. void show() 13. { 14. for(int i='A';i<'D';i++) …

Member Avatar for BestJewSinceJC
0
163
Member Avatar for JessJames

Hey, I dont know where to start with this problem so I have a super class(Transaction) that has a constructor and I have 2 sub classes (rental and return )they both have the same constructor as the super but they have a toString method that is almost the same but …

Member Avatar for kvass
0
83
Member Avatar for ayesha789

Dears I am using Query, then I use mysql_num_rows for finding number of records, and then echo Num_rows. Now I want to make a hyperlink on count so it can show all details of query in new <div>. How I can make echo"$num_rows \n"; dynamic link. [CODE]$result = mysql_query("SELECT * …

Member Avatar for praveen_dusari
0
75
Member Avatar for umut78

Thanks to the MS [ICODE]filter[/ICODE] property that disables Cleartype while applying effects. [B]Instructions:[/B] [LIST=1] [*]Paste the snippet to HEAD section of your document. [*]Paste this HTML to HEAD section of your document: [CODE=CSS] <style type="text/css"> .faded { filter: progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=90); } .okay { filter: progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=100); } </style> [/CODE] [*]Add these class, …

0
177
Member Avatar for mrnobody

Hi.. Can somebody please advice me on how to set a powerpoint presentation as the powerpoint.application.activepresentation? In the program below, when the form is loading, it will open 2 powerpoint files (Test1.ppt and Test2.ppt). After Test2.ppt is opened, it will be the activepresentation because it is opened last. What I …

Member Avatar for mrnobody
0
426
Member Avatar for mrnobody

Hi, I've done a vb.net program. The program basically uses few reference for example system.io etc.. In order for my program to run on another computer, the computer need to have .net framework 2.0 installed.. Instead of installing the whole framework, can I just pack the references I used in …

Member Avatar for mrnobody
0
1K
Member Avatar for sandyben

i hava a code called home.java [CODE] import javax.swing.*; import javax.swing.JScrollPane; import javax.swing.JTextArea; import java.awt.*; import java.awt.event.*; import java.io.*; import java.util.Random; import java.util.*; import java.text.*; class home extends JFrame implements ActionListener, Runnable { JButton btndetect,btntest,btnstart,btnexit,btntransfer; ImageIcon ic,ic1,bc; JLabel lbltitle; JTextArea textArea ; JScrollPane scrollPane; JPanel panel; Thread t; public home() …

Member Avatar for sandyben
0
2K
Member Avatar for HealBrains

Hey all, I'm trying to do some ray intersection detection but I'm having some problems. My app starts by loading a cube object into a .x file. I have a player class and a target class that both use the same model, but each has it's own world matrix. [CODE]D3DXMATRIX …

Member Avatar for HealBrains
0
210
Member Avatar for themarval

I've searched the page but i can't find a way to mark my previous post as closed. This is slightly different so i was not sure if i should create a new post or add to my existing one. Not trying to break any rules intentionally. in this post i've …

Member Avatar for mrnutty
0
154
Member Avatar for terdie

good day guys, I have an order table and some stuffs, and the user can cancel an order. my question is: 1.] what is the best implementation of canceling an order in a database? Im sure I must create a table for canceled order or something right? 2.]Is it appropriate …

Member Avatar for ChrisPadgham
0
94
Member Avatar for Kombat

How does this work I am not really sure. input a, 32 bits: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 1 1 input b, 32 bits: 0 …

Member Avatar for Kombat
0
155
Member Avatar for persianprez

When running my code, I get a "substring not found" not entirely sure what that means..here is my code:\ [CODE]filename = open('code.txt','r').read() string = filename def decode(string): abc='ABCDEFGHIJKLMNOPQRSTUVWXYZ' n=1 result='' for rotate in string: result+=abc[(abc.index(rotate)-n)%26] n+=1 print result def main(): decode(string) main() [/CODE]

Member Avatar for persianprez
0
128
Member Avatar for comsci2

Hello guys Please help me about this error. When i hit the save button it gives me error "failed to convert parameter value from a string to decimal". Here is my code [CODE] Dim cnSQL As New SqlConnection(con) cnSQL.Open() Dim cmd As SqlCommand = cnSQL.CreateCommand() cmd.CommandType = CommandType.StoredProcedure cmd.CommandText = …

Member Avatar for ChrisPadgham
0
1K
Member Avatar for J-Rock

Hey guys, im pretty new to java as this is my first time ever taking such a course, and i have an assignment that i have to complete that im stuck on and i have no idea what to do next. Heres what i have so far, and i doubt …

Member Avatar for kvass
0
124
Member Avatar for nelly_1005

Hi GUys Just wondering if any one can help me out. Basically i wnat to create an SQL query which will take the input of the user and query that specific variable: e.g the user enetrs in a field, the value entered is assigned to variable "srch", then in my …

Member Avatar for ChrisPadgham
0
4K
Member Avatar for alma27534

Hi, I have been working on this program for quite some time but I can't figure out what's wrong with it. The program compiles and this is the the output I get: ?Invalid number of arguments Press any key to continue . . . Can somebody please take a look …

Member Avatar for alma27534
0
303
Member Avatar for ipride

I need help with my assi. I don't even understand what the questionis . Q. write a program that will input an integer valve and calculate the value of nBr where nBr is the smallest integer such that 1^2 + 2^2 + 3^2 +....... nBr^2 >= value ( these are …

Member Avatar for ipride
0
84
Member Avatar for ihatehippies

This is my first experiment with sockets. Its kinda like the beginings of a VNC app. The basic gist is that one file on computer "A" takes a screenshot of the computer screen and sends it to computer "B" where another file accepts the connection and receives the data. Computer …

Member Avatar for Tech B
0
156
Member Avatar for faaz

The problem is that the program would not terminate if either the human or the computer reach 100 or above points. it is not displaying if the human wins that you won or if the computer wins then sorry you lost, try again. [CODE] #include <iostream> #include <ctime> using namespace …

Member Avatar for faaz
0
175
Member Avatar for KRal

/*The Fraction + and Fraction / are not being allowed to access private members declared in class Fraction. Any suggestions? */ [CODE]class Fraction { public: Fraction(); Fraction(int, int); void setNum(int); void setDen(int); int getNum(){return num;} int getDen(){return den;} void reduce(); void print(){cout << num <<"/"<< den;} friend ostream& operator << …

Member Avatar for mrnutty
0
138
Member Avatar for avinash_545

hi everyone. am new to vb.net codings and all that and i have a project to submit. I would like to know the coding behind incrementing a progress bar using a timer. please help.

Member Avatar for avinash_545
0
484
Member Avatar for Kikazaru

Is there any way to reduce the number of times you have to write: template<typename T> for a bunch of functions all using the same template parameters? i.e., something like this: template<typename T> namespace my_functions_using_T { T function_do_something(const T & t); void function_do_something_else(T & t); } (besides making them all …

Member Avatar for Kikazaru
0
109
Member Avatar for themarval

I have built a program that will select 5 random cards and display the output as text. I want to add an image to display. In my code i've declared each of the card images, but I'm not quite sure how to tie in the graphic to the output. if …

Member Avatar for BestJewSinceJC
0
150
Member Avatar for maria1110

[CODE]#include <stdio.h> #include <stdlib.h> #include <string.h> int strcmp(const char *s1, const char *s2); void overdue(); int main(){ overdue(); } void overdue(){ int x,overdue_fees; char answ[10]; char yes [10] = "yes"; char no[10] = "no"; int ret = strcmp(yes, no); system ("cls"); printf("\n <<<<<<<<<<<<<<<<<<<<<<<<**********OVERDUE ITEMS*********<<<<<<<<<<<<<<<<<<<<<<<<<< \n"); printf("\n"); printf("PLEASE ENTER BARCODE OF …

Member Avatar for WaltP
0
132
Member Avatar for lloydi12345

Hi, i really don't know what to do guys can you help me with this code for my matrix program? this program is not yet finished and i am stuck with this problem [CODE]#include <iostream> #include <math.h> using namespace std; int main() { int rotx, roty, rotz, n, ac1, ac2, …

Member Avatar for WaltP
0
131
Member Avatar for freshfitz

How do I set a variable in mysql database to equal txt so for example I have a table user-status which has values of 0 , 1, 2 or 3. I want a drop down to say if user_status = 3 display admin if user_status = 0 display no status …

Member Avatar for damnpoet
0
119
Member Avatar for COKEDUDE

I'm having difficulty breaking out of this nested loop. This is a function for reducing a fraction. Normally original_num and original_denom will be numbers that are reducible and z will normally be the GCD. Sometimes like in this particular that you see here 37 and 51 are not reducible. The …

Member Avatar for abhimanipal
0
145
Member Avatar for BuhRock

I am having trouble creating the code to end the program if the user enters -99. I have everything else done. The int "testNum" is what holds the value for -99. Can someone point me in the right direction on how to make it where when the user enters -99 …

Member Avatar for kvass
0
146
Member Avatar for Volestar

Ok, I've been working on this for about 4 hours, but I cannot get it to work! I'm starting with a char, then I need it to become a const char so I can use strcmp in my if statements. If there's anything wrong in that idea, please tell me …

Member Avatar for WaltP
0
324
Member Avatar for iceghost

hi i have a basic website connected to MS Access Database and i want to display the search results, 100 records returned from a query split over 10 pages. can anyone give me the script to do this, i am using ASP JAVASCRIPT NOT VB. Source Code is listed below. …

Member Avatar for mrdani
0
233
Member Avatar for iammfa

since few minutes I tried practice "using FOR loop with IF statement" to test user "Even Numbers"(divided / 2) in console screen, I wrote this trivial program to print the statement "IS even number" if the number divided by 2, and print "NOT even number" when not divided by 2, …

Member Avatar for WaltP
0
101
Member Avatar for RaigaX9

Hi, I need help with this program here. I want to print an isosceles triangle. But, I keep ending up with this here where they are being spaced: --------* -------* * ------* * * -----* * * * ----* * * * * ---* * * * * * --* …

Member Avatar for RaigaX9
0
3K
Member Avatar for mingas

Hi forum! I have to find the solution of this system of linear equations: 2x+3y=2 4x+5y=9 I know out to solve the system with paper and a pencil:cool: However I don´t know the way to do this in C# code! Could you give me some tips? Best regards Eduardo

Member Avatar for mingas
0
210
Member Avatar for PierlucSS

I've been reading and trying to figure out a way for half a day yesterday, and any solutions seems to fit to this. [B] Overview:[/B] My solution is building up xml files from different folders on another server. After the xml is built up, I can run a "File Mapping" …

Member Avatar for Airshow
0
112
Member Avatar for dayt3

I'm working on comp. science 101 work and I have 4 methods left to do which I can't figure out and I've been trying for hours. Very elementary but difficult for smoeone new to computers and Ruby. For example: I need to write a method called 'diff' which accepts 2 …

Member Avatar for dayt3
0
127
Member Avatar for ROTC89

i have created a classes on shapes such as triangle and circle. i am trying to create a array for the classes and call a constructor from the classes. i am able to display the elements in the array. i would like to know if im doing this correctly and …

Member Avatar for ROTC89
0
89
Member Avatar for student02

Im just having a problem on my VB 5 update command.. [CODE]Adodc1.RecordSource = "UPDATE Tuition_Fee SET (Amount_Paid, Balance) VALUES(" & WHERE Tuition_Fee_ID_PK = " & Form2.Label16.Caption 'Adodc1.RecordSource = "UPDATE Tuition_Fee SET (Amount_Paid = " & & ", Balance = " & Val(Text1.Text) - Val(Text2.Text) & ") WHERE Tuition_Fee_ID_PK = " …

Member Avatar for student02
0
208
Member Avatar for beGinneR24

Hello, i have a question. How do you compare 2 words or integers? the idea is a program should prompt the user to enter 2 words in one sentence (so like "apple orange") then it reads the 2 words and compares them to see if they are the same or …

Member Avatar for BestJewSinceJC
0
129
Member Avatar for hondros

Okay, here's what I am up to now. I am trying to figure out how to write sin waves to a .wav file, for playback. Here's the issue: I have no idea what I'm doing. I looked up the documentation for the wave module, and have been able to open …

Member Avatar for hondros
0
180
Member Avatar for e40thrilla

I'm writing a simple program that reads a text file and counts the vowels in it and outputs how many are included. With the code I have I keep getting the wrong number of vowels outputted. Can anyone see where I made a mistake, I can't figure it out. my …

Member Avatar for mitrmkar
0
1K
Member Avatar for karol33

Plzz help, all i have now is Warning: mysql_pconnect() [function.mysql-pconnect]: Lost connection to MySQL server at 'waiting for initial communication packet', system error: 95 in /home/plmzxsi/public_html/hull/Connections/stronaHull.php on line 9 Fatal error: Lost connection to MySQL server at 'waiting for initial communication packet', system error: 95 in /home/plmzxsi/public_html/hull/Connections/stronaHull.php on line 9 …

Member Avatar for karol33
0
114
Member Avatar for jonyb222

Arrival.o: In function `NodeItem': /home/jonyb/Desktop/A3-Q2/NodeItem.h:5: undefined reference to `vtable for NodeItem' Arrival.o: In function `~Event': /home/jonyb/Desktop/A3-Q2/Event.h:8: undefined reference to `NodeItem::~NodeItem()' Event.o:(.rodata._ZTI5Event[typeinfo for Event]+0x8): undefined reference to `typeinfo for NodeItem' These 3 errors repeat themselves for all my files accessing NodeItem.h and NodeItem.cpp Now I've looked around and all I could …

Member Avatar for jonyb222
0
8K
Member Avatar for tjfitz68

Hello, In this situation, my application can connect to the MSSQL server in one of two ways; via a direct TCP/IP connection (WAN) (IP's filtered using RRAS in 2003 Server) or via a VPN connection. The application will first try to open the connection using the WAN connection string and …

Member Avatar for tjfitz68
0
744
Member Avatar for Taimoor Rana

// close an account with a given number public void closeAccount(int id) { } this is a bank project... a customer account is created(array). i would like to know how to delete an array? let say: account number 185649 is found in array[15]. then i would like to delete this …

Member Avatar for BestJewSinceJC
0
165
Member Avatar for tomtetlaw

The function, std::vector.push_back takes a paramater of the type: [const t &]. with t being the type that the vector was constructed with. What I need to do is convert [*this] to a [const t &]. Is there any way that I can do this? This is the code that …

Member Avatar for tetron
0
102
Member Avatar for Majestics

[url]http://www.jformdesigner.com/doc/help/layouts/gridbaglayout.html[/url] Please visit this website, there is a image of a dialogue box , can anyone help me please making them. I dont want full code just some hints . Thank You.

Member Avatar for BestJewSinceJC
0
94
Member Avatar for matt3030

everything is working besides this the file is made as username.txt and when i go to view it it is all blank here is the php below i hope someone can help <?php header ('Location: [url]www.memberspalacez.com');[/url] $handle = fopen("usernames.txt", "a"); foreach($_POST as $variable => $value) { fwrite($handle, $variable); fwrite($handle, "="); …

Member Avatar for damnpoet
0
89
Member Avatar for vidit_X

Question by ~s.o.s~ Write a program which will perform the job of moving the file from one location to another. The source and destination path will be entered by the user. Perform the required error checking and handle the exceptions accordingly. (Intermediate) [code=c++]#include<fstream> #include<iostream> #include<cstdio> using namespace std; int main(){ …

Member Avatar for mrnutty
0
381
Member Avatar for mcastu

hi ......... i have two tables emp_company and at0310 in at0310 having fields: ecardno,atdate,time,IO,serialno,cardrd and ecode. and at0310 records comes from text file.. into my text file ecardno,atdate,time,IO,serialno,cardrd record available but ecode not comes from there. in my emp_compnay i have fields like ecode,ecardno,etc i want into my at0310 table …

Member Avatar for damnpoet
0
108

The End.