43,549 Solved Topics
Remove Filter ![]() | |
![]() | 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++ ![]() |
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) … | |
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 | |
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 | |
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 | |
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++ | |
[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 | |
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 | |
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 | |
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++ | |
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 | |
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 | |
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 | |
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 | |
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 … | |
How do I create an installer for my application other than than selecting Build>Publish? Software Development vb.net | |
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?", … | |
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 | |
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 | |
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 | |
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 | |
[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 | |
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++ | |
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 | |
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 | |
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 | |
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 | |
[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 + … | |
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 | |
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 | |
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 | |
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 | |
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++ | |
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 … | |
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 … | |
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 | |
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 | |
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++ | |
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 | |
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++ | |
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 | |
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 | |
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++ | |
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. | |
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 | |
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 … Software Development assembly delphi engineering vb.net visual-basic visual-studio | |
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 | |
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 | |
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 |
The End.