199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for Acidburn

Hey guys, Just wondering how I check for the space bar input...since my program doesn't seem to want to know when I hit the space bar..... It just outputs a space on the konsole window and then hitting enter makes a new line... cheers John

Member Avatar for Nirvin M
0
238
Member Avatar for Yutxz

Why is my while statement being ignored? [B]Problem:[/B] Write a method called squareRoot that takes a double as a parameter and that returns an approximation of the square root of the parameter, using this algorithm. You may not use the built-in method Math.sqrt. As your initial guess, you should use …

Member Avatar for masijade
0
260
Member Avatar for Erslich

Hi all :) I'm having a few problems with this assignment I'm working on. Its a Java - C# conversion of a Mandelbrot program. What I'm trying to do, is draw the Mandelbrot to a Bitmap, and then print it onto the Windows form. So far I've been able to …

Member Avatar for Chrisakak9
0
622
Member Avatar for developer_2010

hi First post here, im currently developing a little application which needs to export the data from my datagridview to a csv file. So far I have: Dim gridData(DataGridView1.Rows.Count - 1) As String For Each r As DataGridViewRow In DataGridView1.Rows If r.IsNewRow Then Exit For Dim cellValues(DataGridView1.Rows(r.Index).Cells.Count - 1) As …

Member Avatar for developer_2010
0
369
Member Avatar for Saqib_J

hi, i need to develop a page having a shared text area. two users would be using the same page on their respective machines but they share in a way that if one writes something in the text area it will be displayed to other as well. it will be …

Member Avatar for i-hate-blue
0
141
Member Avatar for ubi_ct83
Member Avatar for AndreRet
0
80
Member Avatar for dustbunny000

So I have this list of strings. They all of the strings have a 18 capital letters. I want to assign each letter a value and them sum up the total score. [CODE]window=['SALHWRAAGAATVLLVIVL', 'ALHWRAAGAATVLLVIVLL', 'LHWRAAGAATVLLVIVLLA', 'HWRAAGAATVLLVIVLLAG', 'WRAAGAATVLLVIVLLAGS', 'RAAGAATVLLVIVLLAGSY', 'AAGAATVLLVIVLLAGSYL', 'AGAATVLLVIVLLAGSYLA', 'GAATVLLVIVLLAGSYLAV', 'AATVLLVIVLLAGSYLAVL', 'ATVLLVIVLLAGSYLAVLA', 'TVLLVIVLLAGSYLAVLAE', 'VLLVIVLLAGSYLAVLAER', 'LLVIVLLAGSYLAVLAERG', 'LVIVLLAGSYLAVLAERGA', 'VIVLLAGSYLAVLAERGAP', 'IVLLAGSYLAVLAERGAPG', 'VLLAGSYLAVLAERGAPGA', …

Member Avatar for slate
0
183
Member Avatar for dlannetts

Hi, i am making a menu and want to be able to add menu links by simply adding a new record to a database, i have got the main concept going but am having some troubles, instead of writing: the same piece of code to load a new menu item …

Member Avatar for dlannetts
0
177
Member Avatar for cancer10

Do u know of any free javascript script that will popup as a bubble with some information on it when I click on any form element in a page? I can show you an example of what I want: [URL=http://www.imagebam.com/image/0c790e4092858][IMG]http://thumbnails5.imagebam.com/410/0c790e4092858.gif[/IMG][/URL]

Member Avatar for maxvergelli
0
186
Member Avatar for Ikomasoji

Hi, I'm fairly new to database design. I am working on a personal project and I had a question about general design structure. I am trying to design a database that I want to create for a collectible card game. The idea is that each different type of card will …

Member Avatar for pritaeas
0
123
Member Avatar for Overachievious

Hey, I am working on a program for my class where we are supposed to count the letters that occur in a given string, with decreasing frequency. For instance, it would say there are 150 A's, 234 B's, 25 C's, etc. Plus, it would then become possible to sort the …

Member Avatar for TrustyTony
0
226
Member Avatar for markdean.expres

How do I create an installer for my application other than than selecting Build>Publish?

Member Avatar for markdean.expres
0
73
Member Avatar for vskumar19

Hii all, Using Scanner class I am accepting an input string which serves as a password field Is it possible to mask the field while the input is being given ?? eg: This is how my output will be : Username : abcde1 Password : abcd@xyz This inputs are given …

Member Avatar for masijade
0
185
Member Avatar for antikceo

Hi, I have the following code that is meant to serve as a t9 program like the one in mobile phones. It initially loads a dictionary file, stores the values in a dictionary, and prompts the user to enter a string of numbers between 2 and 9. For some reason …

Member Avatar for antikceo
0
1K
Member Avatar for Akulki
Member Avatar for n.utiu

Disclaimer! I have no prior knowledge of php, I just need a clear answer. I have the string $content, and I want to replace any [ or ] between the [nobb] and [/nobb] tags inside it with ^ and *. And I need also to do this again but this …

Member Avatar for n.utiu
0
364
Member Avatar for elcliff

Write a java program that calculates the grade point average of three course and their credit hours through, if the grade points and credit hours are as follows: COURSE/SUBJECT GRADE GRADEPOINT CREDIT HOURS Maths A 4.0 3 English composition B 3.0 2 French B+ 3.3 3 Now, if the grade …

Member Avatar for peter_budo
0
73
Member Avatar for arjen

hello guys I need help Please.. What I want is that when i select the data from the listview1 it will also delete the corresponding data in the database im using mysql database...these is my code [CODE]Dim Button = MessageBox.Show _ ("Are you sure you want to delete this Data?", …

Member Avatar for roottybrian
0
674
Member Avatar for anurag143

Hello Friends, my name is Anurag.. am doing MSC(Comp. Science) I need some excellent Project Ideas to develop in VC++ (or C++) Something which is of more developing technology from INDUSTRIAL POINT OF VIEW.. with Problem Description I would be thankful to u people Please help Byee

Member Avatar for kuriakosebabyk
0
166
Member Avatar for ilaref

good day everyone! i have a problem... i have 27 text files in a folder named dito... and every minute there will be new text file in a folder... i need to create a program that saves a record locator(9-digit-code)... the rule is that there will be no human interactions.. …

Member Avatar for hyperion
0
212
Member Avatar for jessikwa

Trying to write a program for my C++ class. Basically; call a function getJudgeData five times within the main function to get five different scores. Send the scores from getJudgeData function to calcScore function. From there use two more functions, findHighest and findLowest to find the highest and lowest score, …

Member Avatar for jessikwa
0
4K
Member Avatar for mast3rshan3

Hello everyone, I'm just getting started with C and I need help on this problem. It's a pretty long read so bare with me. [QUOTE]Objectives 1. To reinforce your knowledge of ‘for’ loops and ‘while’ loops 2. To utilize strings (character arrays) in C 3. To implement logic in your …

Member Avatar for NuclearSheep
0
690
Member Avatar for muralibobby2015

hello.. i am using random query with pagination. but i am getting same results in second page also. Two things I need to make happen: 1. click on a result, you click the back button, results are in same order. 2. You get a paginated list of results in a …

Member Avatar for muralibobby2015
0
144
Member Avatar for hollybells

here is code for my assignment. I am getting: Exception in thread "main" java.lang.NullPointerException at SortedStringList.insert(SortedStringList.java:33) at TestSortedStringList.main(TestSortedStringList.java:6) Line 33 is the "while" loop in my insert. Its supposed to be a double linked list of nodes w/string in each node, alphabetically arranged. here is the code: public class SortedStringList …

0
76
Member Avatar for Kontained

Hi all, I'm currently working on a RC4 project for my computer security class. I have looked at the [URL="http://en.wikipedia.org/wiki/RC4"]wikipedia page[/URL] for RC4, and I'm trying to adapt that algorithm to my problem. I can get the correct encrypted text when I just cout the values. However, when I try …

Member Avatar for Kontained
0
3K
Member Avatar for bang2711

hi guy, i need this ugently.. hope someone can help me out.. i need to get data from database, but want it to take randomly and also dont want to get data duplicate. Ex; i get data A from DB, then there will be a next button. i wan to …

Member Avatar for Ganesh_m
0
959
Member Avatar for Danny_501

Hi all, Is there a way to make thread pools in POSIX pthreads? (using c) I could only find implementations for java and c++, but I need it to be in c. Thanks.

Member Avatar for gerard4143
0
163
Member Avatar for alla87

Hi People, I have this problem, i have created an upload form which includes some text fields and also an image upload which then gets sent to a server. I haven't yet got any validation or sanitisation on there at the moment. Im abit new to PHP and can code …

Member Avatar for tr4ssj2
0
85
Member Avatar for flushfire

I have a Subjects table with a field Prerequisites, which contains data similar to the Subject IDs in the same table. So for example a subject4 may have the prerequisites subject2 and subject3. The contents of the Prerequisite field are delimited by ORs and ANDs, meaning if there are more …

Member Avatar for flushfire
0
89
Member Avatar for coding101

why cant i use fstream on mac i have a stuff.txt file one the desktop psuedo #include<fstream> ifstream in; ofstream out; in.open("stuff.txt"); if(in.fail()){ cout<<"failed"; } failing WHY???

Member Avatar for coding101
0
64
Member Avatar for plasticfood

[CODE] String names1 = ""; System.out.println("enter names: "); names1 = kb.next(); while (names1 != "stop") { System.out.println("enter names: "); names1 = kb.next(); namesList.add(names1); } [/CODE] everytime i type "stop," the program keeps running...

Member Avatar for plasticfood
0
64
Member Avatar for bigwhiteegg

the following are my program since it's not large, it might be alright to post the entire code? anyway... it is the deallocate() causing the crash at the end of the program for some reason, it did not panic in the grow() function am I supposed to do something after …

Member Avatar for Ancient Dragon
0
138
Member Avatar for Shadow-Illusion

I am trying to insert data from a text file into an SQL table. I'm getting this error: " csv_data = csv.reader(file('TxtFile1.txt', 'r')) TypeError: 'list' object is not callable " [code] import MySQLdb, csv, sys conn = MySQLdb.connect (host = "localhost",user = "a", passwd = "b",db = "c") c = …

Member Avatar for djmagba
0
3K
Member Avatar for jpetrey

i am reading in data from an input file and sorting it as it comes in. (ive done this before just without sorting so i know everything else works fine.) [code=c] StringTable::StringTable(ifstream & infile) { // TODO: complete string s; vector<string> row; vector< vector<string> >::iterator srow = table.begin(); vector< vector<string> …

Member Avatar for Ancient Dragon
0
957
Member Avatar for samuel17

Hi all, Im having issues with this program. I've looked online and seen others that have basically the same program but have issues also. My issue is a compiling error, thats one problem thats obvious to me. This program is suppose to get the user to enter grades for five …

Member Avatar for Akill10
0
183
Member Avatar for cortez716

If you are viewing my post, thank you for taking the time to hep me out. It is greatly appreciated. Here is what I'm trying to do: Write a function called Square2 that will take as arguments an integer and a double. With the use of references i want my …

Member Avatar for cortez716
0
167
Member Avatar for Urv73

Hi, I'm trying to make a program that lets a user punch in the results from a race. What I got is a loop for entering the contestants startnumber, the time they started the race (hh, mm, ss) and when they finished the race (hh, mm, ss). I'm stuck with …

Member Avatar for Urv73
0
192
Member Avatar for drake10k

Hello, I've enountered a problem whith saving to an XML file. My app receives user input in several text boxes and when the user hits the OK button it checks if the text boxes are empty. If they are not empty it saves the input to an XML file and …

Member Avatar for alc6379
0
187
Member Avatar for randyson

i want to do a program to implement time table preparation program using c language.i need some help to how i should write codings,necessary fields.i dont have any idea to start.so i need some examples that i have to compare with that and to try myself

Member Avatar for halil.burak
0
545
Member Avatar for tKc

I need help in reading a text file and by using a switch statement the user can either press 1 to find the average of all the integers in the text file, and by pressing 2 they find only the averages of the real numbers (only positive integers) in said …

Member Avatar for Ancient Dragon
0
476
Member Avatar for jonniebl

I have created a porcess that manipulates large volumes of text. I have created a form that has a button that manually starts the process. I have tried to give some feedback that the process is actually progressing through the data by changing the value of text fields on the …

Member Avatar for jonniebl
0
140
Member Avatar for bimaljr

Hello I want a query to get my result I have two tables: 1) articles 2) comments 1) This is my articles table: [code] -------------------------------------- id | article_title | article_body | -------------------------------------- 1 | dummy article | some body | 2 | article2 | body2 | 3 | article3 | …

Member Avatar for rch1231
0
192
Member Avatar for sciprog1

Hello Members, Does BlueJ support Networking? Can you have the main() of Client.java and Server.java running at same time? I always get this "Your program is running.You cannot start another execution......". Any help would be greatly appreciated. Thank you!! sciprog1

Member Avatar for sciprog1
0
122
Member Avatar for sirlink99

[code] c = new Console (); int lvl = 1; double exp = 0; int x = 1; double monsterhp; int monslvl = 1; int a = 1; while (a == 1) { int lvlup = 10 + (lvl * 40); if (exp >= lvlup) { lvl = lvl + …

Member Avatar for sirlink99
0
328
Member Avatar for killbill07

I can easily hide my form with the event KeyDown, but only by pressing ONE key, and I wanna hide it by pressing CTRL+SHIFT+O, for example. And the biggest problem is when I wanna restore it, because I have to go to the Task Manager, make the aplication has the …

Member Avatar for killbill07
0
843
Member Avatar for Clarkeez

Hello I've looked around and looks as if this can be done with Jquery, but the guides and full of so much bullshit its insane. Anyone done this and have a good way to do this. Most of the other ones have form validation and crap which 1) doesnt relate …

Member Avatar for diafol
0
77
Member Avatar for G_S

Hello, Now I'm making a program for creating language glossaries, but the problem is that windows uses ANSI for encoding text files, and the program that will read these files (which is not mine) only displays words in utf-8 encoding. Since my program is multiplatform, it can also work under …

Member Avatar for woooee
0
7K
Member Avatar for evertron

I have the code below and I get everything except the bonus in the output. I tried it a few different ways and the bonus never comes out right after the staff and sales. #get user input for sales bonuses and make calculations #print headers print" Sales Tracking Program" print …

Member Avatar for woooee
0
112
Member Avatar for vbx_wx

How can i calculate an expresion of type string: [code] strng eval = "129 + 23 - 54 * 2 / 4"; [/code] Any ideas?

Member Avatar for bunnyboy
0
94
Member Avatar for zarifin99ska

is this possible? [CODE]Dim wa As Integer = 1 con = New OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\Bengkel\Project\db.mdb") con.Open() myCommand = New OleDbCommand("insert into payment (slip) VALUES (wa) ", con) 'insert the value of "wa" myCommand.ExecuteNonQuery() wa = wa + 1[/CODE] if i'm wrong, can someone help me?

Member Avatar for lolafuertes
0
112

The End.