43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for chudapati09

I have to write a program where the user would input multiple numbers. This is what it could look like. [CODE] 3 29 98 78 88 100 9 70 73 81 [/CODE] The input is never the same, and I just need to access each number one at a time. …

Software Development c++
Member Avatar for chudapati09
0
156
Member Avatar for ceyesuma

I keep getting this error. The app is looking for a class and in fact so am I where should this class be? I can't find it in the: [b]db-derby-10.6.2.1-bin[/b] and check sup of the dl said it was unaltered? Thanks [code] java.lang.ClassNotFoundException: org.apache.derby.jdbc.EmbeddedDriver at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) …

Software Development apache java
Member Avatar for ceyesuma
0
2K
Member Avatar for ricardo.crudo

Is necessary deallocate memory of pointer-to-pointer? Example: [CODE] my_type_t **example; example = (my_type_t **) calloc(10, sizeof(my_type_t *)); for (i = 0; i < 10; i++) { example[i] = (my_type_t *) malloc(sizeof(my_type_t)); } // ... free(example); // it enough? // Or is necessary do this... for (i = 0; i < …

Software Development c
Member Avatar for gerard4143
0
90
Member Avatar for hanvyj

I have a load of methods that throw exceptions sometimes, if they throw them I want to catch them, call a functino and then try them again a few times, here is what I am currently doing: [CODE]bool loop = true; int i = 0; while (loop) { try { …

Software Development
Member Avatar for nick.crane
0
236
Member Avatar for claw72

Hello everyone. i really need help on this one.. sorry for bad english! I have made 2 listbox.. listbox1 and listbox2. data on listbox 2 comes every after i double click listbox1 data. my codes for that works properly. i am working in a excel worksheet. i have these columns …

Software Development visual-basic
Member Avatar for AndreRet
0
179
Member Avatar for Jsplinter

The following code generates an error when the [code]//vector<int> myVofInt2(n);[/code] line is uncommented. I get: error C2059: syntax error :'constant'. Does anyone know why it treats the declaration/initializations differently when the vector is inside a class? The vector<int> in the main function creates a vector<int> with ten elements, which is …

Software Development c++
Member Avatar for Jsplinter
0
175
Member Avatar for plasticfood

[CODE] String[] names = new String[namesListSet.size()]; int[] nums = new int[namestimesSet.size()]; namesListSet.toArray(names); [B]namestimesSet.toArray(nums);[/B] for (String s : names) { System.out.print(s); } [/CODE] i'm getting an error on the bold part. getting symbol not found.

Software Development java
Member Avatar for plasticfood
0
82
Member Avatar for techie1991

Can someone please direct me to the code for the class <int> in python. I know that it must have written in C, but I could not understand, where to ask this query. Though I tried to figure it out myself, but could not even understand, which folder to attack …

Software Development python
Member Avatar for techie1991
0
156
Member Avatar for gedas

can somebody tell me what this code actually does? [CODE] int i = 0; while (i < -1) { double x = xCoordinates[i]; double y = yCoordinates[i]; long xx = getWidth() - Math.round((double) getWidth() * x / 1024.0); long yy = getHeight()- Math.round((double) getHeight() * y / 768.0); g2.translate(xx, yy); …

Software Development java
Member Avatar for gedas
0
92
Member Avatar for shanker86

Hi all here is my pair.h file which when I run using g++ on linux I am getting error like "pair.h:39: error: expected constructor, destructor, or type conversion before ‘ostream’" any help would be greatly appreciated! Thanks WRAP template <class T1, class T2> class pair2 { private: T1 first_; T2 …

Software Development c++
Member Avatar for shanker86
0
431
Member Avatar for whitetigerclaws

I have the same assignment someone else ask help with. The assignment calls for a test score calculator that calculates and displays the score total, score count, and average score. If the user clicks the Display scores button, the application sorts the scores and displays them in a message box. …

Software Development
Member Avatar for sean_king
0
345
Member Avatar for DoEds

I have this txt file containing names and scores. "[COLOR="red"]ex. Player1 35[/COLOR]". My program able to read it and store it to an Array of String. Here's my question. Is possible to separate the name and the score and store them in different Arrays? [CODE]ex. myArray = {"Player1 35","Player2 30"};[/CODE] …

Software Development java
Member Avatar for DoEds
0
108
Member Avatar for Roadphantom13

Hello everyone. This is my first post so if something doesn't work, bear with me. I'm a beginner at python and tried to write a program that will calculate Average Word Length. I wrote what I thought should work but the final answer keeps coming out to an average of …

Software Development python
Member Avatar for forsakenedzero
0
5K
Member Avatar for jbrock31

I am exporting data to an excel file. This works, however, one of my columns doesn't format properly with currency. Through code, how can i make an entire column currency just like when i do it through Excel itself, by going to the format options. I have tried using the …

Software Development microsoft microsoft-office
Member Avatar for jbrock31
0
119
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 …

Software Development c c# c++
Member Avatar for Chrisakak9
0
622
Member Avatar for markdean.expres

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

Software Development vb.net
Member Avatar for markdean.expres
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?", …

Software Development listview vb.net
Member Avatar for roottybrian
0
674
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, …

Software Development c++ visual-studio
Member Avatar for jessikwa
0
4K
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 …

Software Development java linked-list
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 …

Software Development algorithm c++ encryption ios
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 …

Software Development visual-basic
Member Avatar for Ganesh_m
0
959
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...

Software Development java
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 …

Software Development c++
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 = …

Software Development python
Member Avatar for djmagba
0
3K
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 …

Software Development xml
Member Avatar for alc6379
0
187
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 …

Software Development vb.net visual-basic visual-studio
Member Avatar for jonniebl
0
140
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

Software Development client-server java
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 + …

Software Development gaming java
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 …

Software Development visual-basic
Member Avatar for killbill07
0
843
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 …

Software Development file-system python tkinter
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 …

Software Development python
Member Avatar for woooee
0
112
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?

Software Development open-source vb.net
Member Avatar for lolafuertes
0
112
Member Avatar for Blitze

Hello, I used to code in python and I recall being able to take a class such as the list class and add my own functions to it. I am not quite sure what this is called in c++ or how to do it, so I was just wondering if …

Software Development c++
Member Avatar for Blitze
0
97
Member Avatar for RobBobSmith

Hello all, I would be grateful for some help with a function template problem. I cannot figure out how to pass a matrix as an argument in a template function. I keep getting the error "does not match any template declaration". Can anyone suggest what my problem is? Have I …

Software Development c c# c++ ui-ux
Member Avatar for Fbody
0
186
Member Avatar for Blitze

Hello, I am in Object Oriented Design for C++ at the moment... The test we are having has a question on it and the professor wants us to find and know the answer before we come in for the test. The question is this: The following code out puts what …

Software Development c c# c++ java
Member Avatar for Blitze
0
134
Member Avatar for Noorul Ariff

Hi friends... I'm doing Inventory Project... I'm Having purchase and sales tables... In purchase table fields are Code, Category, Brand,S.p, Date etc., Men, Women, Kids, Accessories are the VALUES STORED IN Category Fields... In PURCHASE FORM, When i select MEN in Combobox, it has to AUTOMATICALLY allocate(SHOW) CODE(it is also …

Software Development vb.net
Member Avatar for Noorul Ariff
0
163
Member Avatar for KrazyKitsune

If we have more than one if statement, is it possible to combine them? Like this: [code=syntax]x = raw_input("> ") if x == a: print "1a" elif x == b: y = raw_input("> ") if y == a: print "1y" elif y == b: print "1b" elif y == c: …

Software Development python
Member Avatar for griswolf
0
109
Member Avatar for pstrohma

Hello all, Does VC++ Express 10.0 even support the ability to get text from a text box? I've seen related threads having conflicting solutions, none of which actually work. Ex: must have SDK version x.y. This functionality seems to be so basic and necessary that solutions would be all over …

Software Development c++ microsoft windows-xp
Member Avatar for pstrohma
0
264
Member Avatar for hzp

hello everyone i am new to this community . i am having a problem right now with arrays. So basically this program let user to enter anything in lowercase and then convert it to uppercase(if user input uppercase it will stay the same). Because i am not allowed to use …

Software Development c++
Member Avatar for hzp
0
125
Member Avatar for ranko_6

Trying to write a simple program that will read data but keep stumbling upon the fact that I kinda can't limit the amount that is read. I have simple student.dat file which is filled ATM with nothing else but simple string "somethinginside", without quotes. When I do this on each …

Software Development c++ data-structure ios
Member Avatar for ranko_6
0
208
Member Avatar for DonutsnCode

I'm using cygwin g++ to compile my code and Notepad++ as my editor. The code i authored works fine if i implement member functions in the class definition .h file. However g++ throws a chunk of gibberish at me when i replace member functions with function prototypes in the class …

Software Development c++
Member Avatar for DonutsnCode
0
129
Member Avatar for dragonpunch

Hello im confused with pointers, how do i create a shallow copy of a string array in c ? [CODE]char *currMenuArray; // ??? char *MainMenuArray[] = { "MAIN MENU", "One", "Two", "Options", "Quit" }; char *OptionsMenuArray[] = { "OPTION MENU", "Option1", "Option2", "Option3", "Back" }; void main() { currMenuArray = …

Software Development c
Member Avatar for Narue
0
409
Member Avatar for Fulsomenko

Hey guys, new to the forum. So sorry if i am posting this in the wrong location. To my question: I am trying to create a random password generator, and I think it's done is this way. I have made four arrays, two for the alphabet (capital letters and not), …

Software Development java
Member Avatar for peter_budo
0
248
Member Avatar for moonL!ght

hi every one im working with some exersies which include inheretence every thing is fine except that the compiler dose not recognize the base clase it says Error [COLOR="Red"] Cannot open include file: 'pointType.h': No such file or directory[/COLOR] here is part of the code [CODE] # include "pointType.h" # …

Software Development c++
Member Avatar for chiwawa10
0
132
Member Avatar for zarifin99ska

Hi, can someone help me? i have 5 textbox, and 5 column in listview, how can i put the data from textbox into columns? and also using F5 key( key event) to add the data(not using butons). Thanks.

Software Development listview vb.net
Member Avatar for zarifin99ska
0
138
Member Avatar for Kimmelivim

Hi! I'm creating a guessing game where I ask the user to guess a number between 1-1000. The output where the computer asks the user for a number is contained in a [I][COLOR="Green"]do loop[/COLOR][/I]. The problem I'm having is that I have a high score list and in the high …

Software Development java
Member Avatar for Kimmelivim
0
167
Member Avatar for 12345pj

EDIT: Sorry, it is of course Skype4Com. I really appreciate any help I can get, I want to develop a Skype userinterface for dissabled people, it must be a downscaled version of Skype, an easier human interface focused on video connection. I hold a Bachelor degree in electronics Engineering with …

Member Avatar for 12345pj
0
742
Member Avatar for Nivass

HI, I have a rich text box and loaded a file in that. Used Find and replace form. whaever text found i highlighted in the rich text box by giving background color, changing font size and giving color to the found text. say now i replaced the found text to …

Software Development
Member Avatar for Nivass
0
158
Member Avatar for Nivass

Hi, Have drawn rectangle and zoom the image. As per zoom, the rectangle are redrawn ([url]http://www.daniweb.com/forums/thread296495.html[/url]). Redrawn rectangle place slightly down. so i adjusted to fit the point. but the rectangle value varies with different resolutions. how to adjust the rectangle value with different resolution. [CODE] private void pictureBox1_MouseDown(object sender, …

Software Development image
Member Avatar for Nivass
0
211
Member Avatar for zarifin99ska

can someone give me a code of auto calculation. i have 5 textbox,qty.text price.text gross.text discount.text and netmount.text. for example price is 35.00, then if the quantity is 2,value of 35.00 * 2 inserted into gross, then i got discount 25%, the total will be inserted into netmount.text. hope you …

Software Development vb.net
Member Avatar for zarifin99ska
0
135

The End.