43,549 Solved Topics
Remove Filter ![]() | |
Modify the Inventory Program: Create a new method that calculates the value of the entire inventory. Create another method that sorts all of the array items alphabetically (ascending order) by the product name. o The application should declare and use an array to store 5 items. This array will represent … Software Development data-structure java printer | |
i need on how to draw a simple bar chat on my form like the picture below. for A B C D. Each time it draw at random. all % should be equal to 100%. Software Development vb.net | |
Hi i have just started my c++ class and really having hard time with that.i was assigned to draw a graph which should look like dis : ***** ***** ***** ***** ***** This is what i am trying but getting only this result : ***** * * * * Please … Software Development c++ | |
I'm trying to make a bubble sort to sort numbers like 3.2, 5.8, etc(double / float numbers). I have this code so far, but I'm still trying to learn and don't know why my code isn't working the way I think it should. Any help is appreciated. [CODE]using System; using … Software Development app-store | |
Hello, I have a problem with a header I'm trying to make. In Main.cpp, I have this function to store the combinations of the elements of vector S: [CODE=c++]template <class T> vector<vector<T> > combinations(vector<T> S, ll k) { vector<vector<ll> > combs = ncombinations(S.size(), k); vector<vector<T> > setcomb(combs.size(), vector<T>()); for(unsigned int … | |
Am I wrong that the answer is 2?? Teacher refuses and says that it's 3 because the compiler spits out 3 for ans.. but if I do it manually with pen an paper or with the cout<<v2%v1++, it spits out 2 which is what I get on paper.. [CODE] #include … Software Development c++ | |
When trying to run, the compiler tells me that I cannot access the private data members. I'm just curious as to what's causing this error. Here's my class declaration: [CODE] #include <iostream> #include <string> using namespace std; #ifndef SALARY_H #define SALARY_H class Salary { public: const int getDepNum(); const int … Software Development c++ | |
Hello. I am learning C++, and I am a little stuck. Right now, I'm working on pointers. The problem I'm working on requires sorting an array of structures, using pointers instead of array indices, using a selection sort. My code is not working, and I can't quite figure out why. … | |
hi everyone i am very new to programming and really need some advice. i am currently building a program and one of the things i need is to be able to count the number of pages in pdf files in a directory. i found a script online which is suppose … | |
i need someone to do this program for me and before saying that i have to do my homework alone i had midterms all week and in about in hour or so and i forgot about this assignment and i just dont have time so plz help here it is … Software Development java | |
i have to write a program, in which i have to make pointer to point to the character, where it last occured in a string. For example: String: Lord of the rings Character: r Pointer points to the last 'r' in the string, that is in the word 'rings'. If … Software Development c | |
I want to loop through directory and process the files in them. I do this with the following code. for (root, subdirectories, files) in os.walk(dirDialoog.GetPath()): for file in files: My problem is that the files processed 2 times. I tried the next code, but in that way the files weren't … Software Development file-system python | |
Hey! for a school project, came to me the following question: the libopenmetaverse is more directed to any of the components of the MVC (model, view, controller) or apply to any of them? someone can help me with this? thanks Software Development software-architecture | |
hello everyone, I have implemented RSA algorithm in java but now i am asked to determine the time for encrypting variable length messages(plain text). As an example, i have to find the time in which input message of length 3 will get encrypted, similarly the time in which input message … | |
I am having trouble devising a method to multiply 2 matricies that are formed by dynamic one dimensional arrays, for this case i just used matrix1 and matrix2 To access elements that are on rows 0 to n-1 in either matrix i have to use this method: ((rows - 1) … Software Development c++ | |
Hello Friends, I have got confused with one topic Scenario is such that.... I need to browse a file and copy the file from one location to another.... I am done with the file copying but I need to add the list of all files present under that folder in … | |
Hello everyone, assuming i want to write some values into my database of choice i found two ways to do this. [CODE] my $sql = "INSERT INTO table (foo, bar, foobar) VALUES (?, ?, ?)"; my $sth = $dbh->prepare($sql); foreach(sort keys %hash) { $sth->execute($_, $hash{$_}, $some_other_value); } [/CODE] as opposed … | |
i have a form, with a few text box's, and a background image, when i click the button to produce the pdf it often creates this Parameter is not valid exception (argumentException was unhandled).. [ICODE] Bitmap back = iDMS.Properties.Resources.corporateLetterHeadPage1; back.SetResolution(300, 300); <------ error is here.. [/ICODE] the image is not … Software Development pdf | |
I need a program which counts the pages of all the pdf files in a directory. i found this scrpit which is supposet to do exactly that, but when i try to run it it just doesnt work for me it outputs nothing. i dont really know what to change … | |
So now that im using excel 2010 and saving data in .xlsx format, I have a problem doing something very simple, like reading the file and trying to run a simple sql command on it... [CODE]SqlConnection con = new SqlConnection(@"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=C:\Download Report Sheets\Schedule List\SoftwareDownload_OS732_20120306.xlsx;Extended Properties=Excel 12.0 Xml;HDR=YES"); SqlDataAdapter da = … Software Development | |
Hi everyone, I am new to RichTextBox control in VB6 I wanted to select the entire line/row in the RichTextBox, where currently the cursor is. How should I do it ? The code should be paste in command button 'cmdSelect' Thanks in advance :) Software Development visual-basic | |
Hello; can any 1 explain to me how to find the miniumum spanning tree for a graph ? see this graph as an example : Software Development c++ | |
I am trying to extract the number in the string "(c) 2010 Elsevier Ltd" from a PDF document . I found that the textsearch method of PDFtron package would help me find the string as stated in the example code: [CODE]import pdftron.Common.PDFNetException; import pdftron.PDF.*; import pdftron.SDF.SDFDoc; // This sample illustrates … Software Development java pdf programming-construct | |
Hi! I'm working on program with a lot of buttons and I would like to use For loop to make all of them instead of writing every each one of them. so, can anybody help me? here is example of code [CODE] import tkinter as tk def klik_1(): button1.config(image=s1) def … | |
Well something is missing of me (again :P) and I need some help.. I am trying to get files for my database and load it into comboBox. But for some reason I get systax error.. As I mention into other post I am not familliar with VB so please check … | |
I need help creating a two dimensional array in mips assembly. I am new to this kind of programming and i do not know how to approach the problem. i have to create an array max size 20 by 20 and then fill it up with data entered by the … Software Development assembly | |
I understand that data on computers can be compressed (I see it all the time with zip files and jpegs) but I was wondering just how compression works. Thinking it through, if you data is represented by 1s and 0s then it can be corresponded 1 to 1 with a … Software Development c++ | |
Hello, I have two forms where one is a login form and the other is the main form. The user enters their username and password and clicks the "login" button. The code in the login button validates the username and password and if correct opens the main form. The problem … Software Development | |
My school has banned any system call (I even brought my own copy of command.com and cmd.exe) [B]but[/B] FreeDOS's FreeCOM still works (very well at that). Is there a way to make it that when I call the system function it makes the call to FreeCOM (Whitch will be bundled … Software Development c++ | |
Hi everyone, I want to create a simple GUI that prompts user to browse for a text file, read in that file and display them in the GUI as a list. Then it should allow user to select from that list. Once an element is selected, there should be a … Software Development gui java java-swing | |
Hello I have a problem with a part of my binary heap i am building for my a* (pathfinding) project. The program crashes on this line with debug assertion failed message, expression: (_BLOCK_TYPE_IS_VALID(pHead->nBlockUse)): [code=c++]Comparable temp = theHeapsArray[hole];[/code] I have tried creating my heap with integers and it worked. But when … Software Development c++ | |
I'm having trouble calculating the Nth root of a given value. I don't understand what's going wrong in the algorithm, but the values are incredibly close. Only off by about 0.78891 for small values, and about 0.52 for larger ones. So any help with this is appreciated; I don't want … Software Development algorithm | |
hey all, i wan't ask , how to connect sms gateway to vb6..??? and then i sen't sms with vb6... help plizzz..., Software Development visual-basic | |
I need some help in 3 files of code from a check-out program that I am playing with. I think I forgot to declare some variable, and some weird syntax with semicolon. Text file contain the info: 4101 BRAEBURN_REG 1 0.99 101.5 4021 DELICIOUS_GDN_REG 1 0.89 94.2 4020 DELICIOUS_GLDN_LG 1 … Software Development c++ | |
Hi everybody, its Leo again I'm having some problems calculating the values for two diferent fiels of the datatable. it return " [COLOR="Red"]Object reference not set to an instance of an object[/COLOR]" this is How I feed the datatable [CODE] Dim daProd As New SqlDataAdapter Dim conProd As New SqlConnection … | |
I am trying to put a 'Invalid' statement in my code and not sure how to do this. Could someone please help me with this? Thank you in advance. Here is my code: [code]#include <iostream> #include <iostream> #include <cctype> // is needed for toupper() #include <cstdlib> // is needed for … Software Development c++ | |
hi, I have created one array in java script like this: obj.push({'key' :value1, 'key2' :value2}) and it is stored in database ,but problem is that when I am retrieving again back from database I am confusing to how to get array from database because it is stored in following format … Software Development java | |
Hi, I have used this [CODE]#using <System.dll> using namespace System; using namespace System::Collections::Generic; using namespace System::Linq; SortedList<double, String^>^ slist = gcnew SortedList<double, String^>();[/CODE] in one program its working well. But Now when I pasted the same code with all given headers in second program its not being identified there. Errors … Software Development c++ | |
Hi, I have the a situation here . My motive : Hiding one panel and showing another. Whats Working :Layout wise , my app is behaving like i want it to . The Problem : After the I hide one panel and show another , the button in this panel … Software Development python | |
I have a Java program, which launches a app, but before starting, it checks for the version.txt file, and if it doesn't exist, or there is a newer version available off my site, it downloads it. Well, not quite. I've got the part that checks for updates, and file existence, … Software Development file-system java | |
I am trying to create an application that will: 1) ask the person to enter a number (ex: 321) 2) the application will display each number on a line ex:3 2 1 Rules: Don't use looping and don't use arrays Someone told me it could be done but I can't … Software Development java | |
hello everybody, please help me in solving the problem of finding the XOR value of 4 bits as i require it in my project. i tried ^ sign, but it doesnt work for four variables? kindly help Software Development c | |
Hi, I want to process multiple text files within a directory and then after processing i want to store the processed files within another directory. Below is the code which i have written. It is accessing multiple text files within a directory, applying some processing on each text file (i.e., … Software Development file-stream | |
hi, i am new to java and i am using eclipse for java coding when i run a build.xml file it says build fail and says "Compile failed; see the compiler error output for details." and points to the code below. does anyone know the reason for this, [CODE] <javac … | |
Hi everyone; I am working on a windows form project on VB.NET and am required to take the user submitted text from the textboxes on the form, to a networked database. I am guessing using an SQL database, so how would I set this up and implement all of this? … Software Development vb.net | |
Hi all, How i changing the color of label caption dynamically, so it looks like highlight text changing color. Thank you. Software Development visual-basic | |
Hi all. I could really use some help on adding a node to the end of a doubly linked list. First off here is my node class along with the class where the adding should take place. For simplicity I did not add the other parts and classes of the … Software Development java linked-list | |
Hi all, Hopefulle someone outthere can help me identify whay i'm doing wrong. I'm sure it's something simple I have overlooked. I have the following templates in my xaml. [CODE] <Window.Resources> <DataTemplate x:Key="ModuleTemplate" > <StackPanel Orientation="Vertical"> <TextBlock Text="{Binding Path=fileName}"/> <TextBlock Text="{Binding Path=baseAddress}"/> <TextBlock Text="{Binding Path=entryPointAddress}"/> </StackPanel> </DataTemplate> <HierarchicalDataTemplate x:Key="ProcessTemplate" ItemsSource="{Binding … Software Development asp.net | |
I would like to implement an error reporting mechanism into my application: If an error happens the user should be able to directly send me this error message. I thought of doing this with JavaMail. My question is now: to send an email I have to authenticate on an SMTP-Server. … Software Development java | |
Qt ide gives error about"error: passing 'const QChar' as 'this' argument of 'QChar& QChar::operator=(const QChar&)' discards qualifiers" here for(int i=reqposition;;i++) { if(data.at(i)==',') break; temp.at(j)=data.at(i); // ERROR IS HERE j++; } what do i do to solve it! |
The End.