43,549 Solved Topics
Remove Filter ![]() | |
I've been trying all day to write an array into a file but it doesnt work. The code I'm using is: [CODE] fstream myfile; myfile.open ("array.txt"); for(int i=0;i<=9;i++) { for (j=0; j<9; j++) myfile<<array[i][j]<<endl; } myfile.close();[/CODE] What am I doing wrong? This works if I knew what I was writing … Software Development c++ | |
hi, I have a button control problem: [CODE] public void Display1() { listbox.Items.Clear(); Dictionary<string, double> sortList2 = new Dictionary<string, double>(); Dictionary<string, double> sortList8 = new Dictionary<string, double>(); string getText = textBox2.Text; Array arr; StringReader re1 = new StringReader(getText); string[] firstString = new string[textBox2.Lines.Length]; string[] secondString = new string[Comset2.Items.Count]; sortList8.Clear(); foreach … Software Development | |
I have to create an app that computes the amount income tax that a person has to pay, depending on salary. Income tax should be calculated for each portion of income in each range. Here are the following income ranges and taxe rates: Not over $7825=10%income tax $7825-31852 = 15%income … Software Development pay-per-click vb.net | |
Hi i have a C++ DLL. What i am doing is that i am passing memory address to my C++ dll where it write message on that address and i want to read the message from that memory address. Here is my C++ function. [code] int _stdcall Test(int res, wchar_t … Software Development vb.net | |
Hey everyone, I am writing a program that needs to take 10 integers and display them, then it needs to sort them in order from lowest to highest and then display them again. I was trying to use selection sort to sort them, but I think I set it up … Software Development java | |
Hello, folks! So i'm trying to add a tooltip to a treenode, But with no luck. I've tried things like: [CODE]Treeview.nodes(0).tooltiptext = "Hello" [/CODE] Software Development vb.net | |
Hi everyone, I have a 2d array whith 50000 lines and 14 columns, and I have to sum/multiply each value of a column for a fixes numbers, like this: a[1][14] = 0 a[1][14] + 2 = 2 a[2][14] = 2 a[2][14] + 2 = 4 a[3][14] = 5 a[3][14] + … Software Development c++ | |
Hello ,I have one problem making one simple program(actually I am new in this language). So I have two webbrowsers.How I can every New Window that is opened in webbrowser1 to be opened in webbrowser2 instead? Thanks in advance Software Development | |
Hello I am currently stuck on trying to collect some string items from a richtextbox and then count how many items there are. I then want to relocate one of the string items if there are more than three into another richtextbox. I currently have been attempting to capture the … Software Development vb.net | |
I have read that OO supplies it's own python and uno.py [for 3.3 under ..\basis\program] - but there are ways to incorporate it into your current version such that a script can issue [COLOR="Green"]import uno[/COLOR] w/out issue. I have tried scripts that supposedly permit this and tried to work through … Software Development python | |
The dictionary part isnt working. can anybody help?? [CODE] string path = @"C:\1\"; string[] file1_Lines = File.ReadAllLines(path + @"TraceSet.csv"); string file2 = File.ReadAllText(path + @"SBoxOutput.csv"); string[] file2_Lines = file2.Split(new string[]{"\r\n"}, StringSplitOptions.RemoveEmptyEntries); //creating 2 lists for average values of file1 and file2: List<float> averageFile1 = new List<float>(); List<float> averageFile2 = new … Software Development | |
hello Can any one please tell me how to highlight a selected row in C1TrueDbGrid Software Development | |
hello, Can any one help me in C1TrueDBGrid? I want to add a dropdown column in my C1TrueDBGrid which has different values for each row and on index change it changes value another cell of the row Thanks in advance Software Development | |
I have implemented the addActionlistener for the Add Contact button in this GUI setup (please try running this code in your computer to know what i am talking about) and when i click on Add contact, the new frame pops up, i enter the details in the New contact frame, … Software Development gui java java-swing | |
Guys I've been reading on PEP 8 and I see that one should use it especially to make sure that programs are standard. Please can anybody help as to how i can install it with my python 3.2 and how to use. Thanks in advance. Software Development python | |
Hi, I have a list of base types which stores multiple derived types. The following code shows a simplified setup. [CODE]#include "Base.h" #include "DerivedA.h" #include "DerivedB.h" #include <iostream> #include <list> void main() { std::list<Base*> base; std::list<Base*> *basePointer = &base; for (int i = 0; i < 10; i++) { basePointer->push_back(new … Software Development c++ programming-construct | |
Hey all. I'm making a program which uses many buttons and a textfield. I need help and some explaining on how to organise components within a panel. For example,using [CODE]mainPanel.add(BorderLayout.NORTH,display); mainPanel.add(BorderLayout.CENTER,background); mainPanel.add(BorderLayout.EAST,buttonBox); mainPanel.add(BorderLayout.WEST,buttonBox2 );[/CODE] All components (the buttons within the background panel,the buttons within buttonbox1/2 and the display field) are … Software Development java | |
Good day, i have a problem regarding about adding a record to my database, i want to insert a record that not exist on my table, the record that i want to add to a field is not related to other table. This field should be related to other table … Software Development vb.net | |
My program starts 5 different threads when it is opened. One or more of them is not stopping correctly and is causing my program to remain alive even after the main form has closed. Before I go through trying to find which one is doing it is there some way … Software Development | |
Hi, i have a convert problem: [CODE] double v3; foreach (String cvt in sortList2.Keys) { if (!(sortList8.ContainsKey(cvt))) { sortList2.TryGetValue(cvt, out v3); sortList8.Add(cvt, v3); String.Format("{0:0.00}", sortList8[cvt]); sortList8[cvt] = (v3 * 100 / textBox2.Lines.Length); // how to convert the result to 2 decimal? } } IDictionaryEnumerator enumerator2 = sortList8.GetEnumerator(); while (enumerator2.MoveNext()) { … Software Development | |
i got this error 'convert datetime to string format yyyymmdd vb.net' this is my code [CODE]Dim ExpDate As String = dgvBlock_Extend.Rows(icnt).Cells("Extend Door & Lift Expiry Date").Value.ToString("yyyyMMdd")[/CODE] the value is 4/6/2011 12:00 AM i wnt to convert to format yyyyMMdd how i'm going to solve this error? Software Development vb.net | |
I have a main function and I want to call another function inside my main, but it gives me an error like this: error C2601: 'ComputeCentroid' : local function definitions are illegal I know that this is an error because the '{' for my main is still not closed before … Software Development c++ | |
First of all, I'm 17 learning C++ on my own! I've been enjoying Daniweb. and I did like to thank the community for that! Thank you all! Here goes my Problem... I have a small program that calculates time between two instances and it worked fine... so I decided to … Software Development c++ daniweb-bug session | |
I was doing some work in python and I typed in ^ instead off ** without thinking and found some confusion as to what ^ does I did a bit of testing to find: 10^2 = 8 0^2 = 2 -5^2 = -7 11^2 = 9 9^2 = 11 -10^2 … Software Development python | |
Hello, Before I begin, I have had a quick look around for a solution to this problem however time is not something I have lots of right this moment so I am going to post this and hope that by the time I return to complete my work there is … Software Development open-source | |
I'm attempting to create a one line Caesar cipher decryption program in python and i'm afraid i've come to the end of my knowledge and well past it. this is the closest working code i've got: [code]def test3(): print("The decrypted text is: "+"".join(map(lambda x: chr(ord(x)+y),x)))[/code] as you can see it … Software Development encryption python | |
Hi everyone, I'm trying to make the autocomplete work on a list of items entered into a textbox separated by semicolons. I have a list of authors the user can choose from and it autocompletes as they type the name no problem, but what I'd like to do is after … Software Development vb.net | |
Hello. I don't know if somebody has asked this before, but is there any python equivalent to the Java .jar files? I have read about py2exe, freeze, and module distribution, but it's not what I'm looking for. I need a file that can contain everything in my program (and modules … Software Development python | |
i has create system registration that use vb.net 2008 & accessdatabase (oledb connection) i set ID as primary key,when i insert new ID but if ID already in database i will get error cz data duplicates..so anyone know any code that will promp mesej like this "Data already in data … Software Development vb.net | |
Hey Everybody, I keep getting these warnings when I compile my program: 19: warning: extra tokens at end of #ifndef directive 19: warning: missing whitespace after the macro name both apply to the same line number, which has nothing to do with the ifndef statement. I tried looking for an … Software Development c++ | |
i hve build 1 system inventory using vb.net 2008...can i run execute file from browser...maybe like in asp.net.. Software Development vb.net | |
i have an array like this: [B]String[][] data= {"s", "w","s", "y", "r", "r", "y", "p"};[/B] i wanna do some action if there was no similar array element before that particular element, for example, do something if [B]data[0]=="s"[/B], then do something if [B]data[1] == "w"[/B], but skip when [B]data[2]=="s"[/B], because [B]"s"[/B] … Software Development java | |
Hello im a newbie having problems. I have got two arraylist with values in them. I want to subtract each value from the oposite value in the second array list to get a new list C which i am going to plot on a graph. For example ArrayLists A,B A … Software Development | |
Trying EVERYTHING but I don't know what the *heck* I'm even supposed to try because there shouldn' tbe a *bleeping* PROBLEM. The file is being opened fine, I guess, because I tried changing the file path and then got an error. It's just not reading the DATA. THERE'S NO REASON … Software Development c++ | |
anyone help with this? I have a unique id on each line of sql, i want to be able to update a row from a table i tested and tested this but unable to get this working. does anyone know how i am able to do this? [CODE] Dim PINV … Software Development open-source sql vb.net | |
All, I am using VB.NET in VS10. After I add items to a list box I'd like it to scroll down so that the most recent items are visible. I tried this with no luck: [CODE]StatusListBox.SelectedItem = StatusListBox.Items.Count - 1[/CODE] Can anyone tell me how to make the box always … Software Development vb.net | |
![]() | hi i was wondering if (and how) you can create nested methods in c#. c# seems to do it with size and other things. something.Size returns a value but also something.Size.X returns a value. how can i do something like this myself? Thanks Ollie Software Development ![]() |
Sorry if the title is a bit off, I couldn't think of what to call it. I've created projects in VS, and they all run perfectly fine. However, I now just want to create the source files then compile via the command line. I've done this rather easily, but now … Software Development c++ ide visual-studio | |
Hey guys, Here's the thing. I have a database in MS access. I have made an application that has to access this DB. Now this database is on another machine. Lets call it pc1. pc1 and my machine are in same wireless network. But when i try to connect to … Software Development microsoft-access | |
Anyone got any idea how to sum values of a column instead of a row??? ie 1 2 3 4 2 3 4 5 4 3 2 1 [B]7 8 9 10[/B] Software Development mathematics | |
I want to use the code i have and turn it into a function that i can call in the main program. I have to do a similar function a second time and want to be able to call them into the main program instead of having one big long … Software Development | |
Hi, i have some problems with arraylist: [code] ArrayList arr=new ArrayList(); string a="1 2"; // how to split this and store to arraylist? [/code] How to split the string "1 2" and store into arrayList arr? Software Development | |
hi all, i m a newbie in this forum and vb.net application, but i want to learn this language. please help with your post. Thx all. :) this my question : How i can make my font to looks [B]Bold[/B], [I]Italic[/I] or [U]Underline[/U] in rich text box with vb.net ?? … Software Development vb.net | |
Hello, i query data from database using jdbc, and there will be a lot of data.how can i solve 1 by 1 of the data?currently, my code just solve the last data. this is the pseudo: [CODE] JDBC connection query data = ResultSet{userid,task_id} while (Resultset()) userid, task_id count++ end close … Software Development java | |
hello I want to read images from a folder in my D:\ drive and place their names in dropdown box so that when i click on image name it opens in a picturebox. I am new at using c# can anyone help me in this regard thanks Software Development | |
Hey everyone , I have a Mid semester Exam next week and I need to study the basics of programming a C++ programs. can anyone recommend or help me with some basics or link me something which could help me revise things faster and make it easier. i am sturggling … Software Development c++ | |
[B]For the error and my question, skip to the bottom. I just posted all of the code in case it's needed.[/B] [CODE]/*********************************************************************************** * * File: Customer.java * * Author: Austin Smith * * Date: 04/04/2011 * * Description: The Customer class handles all client information * such as name and … Software Development gui java java-swing | |
Hi all, i have a table "Contracts", with fields CompanyNumber, MaturityDate and other fields. i have a form in vb.net, with a textbox that should check if the entered company number exist in my db, if it does it should check whether the maturity date is bigger or less than … Software Development open-source vb.net | |
I have been trying to make my program load the images while using web start with no success. The following code is inside an extended JButton class. Image is a string containing the address of the desired image ("0.jpg", for example), I know that this would only work if the … Software Development java | |
How to write the recursion code in calculating the sum of the array elements at odd value? I understand the factorial example using recursion, but I am having a really big trouble when writing the recursion codes to perform anything else on my own :/ Please help with this task … Software Development java |
The End.