43,549 Solved Topics
Remove Filter ![]() | |
I get an infinite loop when i input 1 and 5 in this program. Please help me detect the error. using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Graphs { class Program { static void Main(string[] args) { string[] cities = new string[10] { "Makati City", "Taguig City", "Imus … Software Development | |
please help.. how to program nodes(like in binary tree) the root node is (1) then left(LNode) is (2) and right(RNode) is (3).. then for (2)- LNode of (4) RNode (5).. for 3-- LNode(6) RNode(7)..so on.. how can i do that.. then the numbers are in the database.. Thanx Software Development vb.net | |
I want to know about function overloading in C# & how to do it? Can anyone tell me with a simple example. Since as i read it from a book i came to this conclusion. I thought it happens only when you use 1 function with same name & tried … Software Development | |
i've recently published an app but i keep getting this error on machines other than mine. unable to load DLL acbpdf8-64.dll, module cannot be found HRESULT:0x8007007E I've copied all the dll's into the /bin folder, so i get the debug and release folders, along with all the dll's, but still … | |
Hi I am trying to get a tkinter UI to allow me to do two things. * When I right click in a Treeview widget and my mouse pointer is over an item I would like the item to be selected as if the user clicked on it * When … | |
As a project after learning about classes, I'm trying to create a type of board game where the program tells you where all of it's pieces are, and then you tell it where you've moved your pieces, and then the AI moves its pieces accordingly. However I'm having a bit … | |
![]() | this might be a silly question :-) but just for reference asking that System.Drawing.Graphics is a reference type ? or value type ? I mean when creating objects like this Protected Overrides Sub OnPaint(ByVal e As System.Windows.Forms.PaintEventArgs) Dim i As Integer = 10 Dim g As Graphics = Graphics.FromHwnd(Me.Handle) g.DrawString(i, … Software Development vb.net |
God day! Any body has ha clear and good example on how to use Let and Get function? Thank you! Software Development visual-basic | |
Hello .. I wish i don't violate community rules :) I was used to work on the NetBeans IDE Now I am converting to eclipse The problem is that i can't neither create nor find the final executable jar file In NetBeans I just press "clean and build" then the … | |
Do you need to implement a class in order for an object to access the class's functions/methods? When should you implement a class? When shouldn't you? | |
My understanding of the C language is that the same identifier cannot be reused. However, the code below compiles on GCC without complaints, even when using the "-Wall -pedantic" flags. Is there something that I am missing? Does the standard say anything about functions/macros having the same name as typedef'd … Software Development c | |
Function cek_code(ByVal pid As String) As Boolean Dim sql As String = "select count(P_Id) from Profit_margin where P_Id = '" & ComboBox2.Text & "'" Dim cmd As New SqlCommand(sql, myConnection) Dim dr As SqlDataReader Dim value As Boolean = False Try myConnection.Open() dr = cmd.ExecuteReader(CommandBehavior.CloseConnection) While dr.Read If dr(0) > … Software Development vb.net | |
the question is: Wrtie a program to modify the elements of an array such that the elements that are multiples of 10 swap with the values present in the very next position. I wrote the following code: #include <iostream.h> #include <conio.h> #include <stdio.h> void main() { clrscr(); int a[20]; int … Software Development c++ | |
Good day! I just want to ask on what is the best ADO connection string to connect to MS Access fast? and what is the fastest way to create it? And also, where in the project to best put it so that all forms in the project will use it … Software Development visual-basic | |
please suggest me topics for mini project in c programming. Software Development c | |
![]() | I do have a function in C to give me a unsigned short random number from 0 to 65535. How can I make it to give me a greater number without much calculating? (r * 65536 + r) I've made a function in C to do that for me: static … Software Development c++ ![]() |
I have defined a procedure under the click event of the button as follows. [code] Private Sub btnSearch_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnSearch.Click [COLOR="Green"] 'Validate Department[/COLOR] If cmbDepartment.SelectedItem = Nothing Then MsgBox("Please select a department", MsgBoxStyle.Information, "Notification") cmbDepartment.Focus() Exit Sub End If End Sub [/code] I … Software Development vb.net | |
As usual I know I'm probably doing something stupid. I'm trying to write the program below but I seem to have handled my queue incorrectly. The problem could be in one of three places; the way i handle moving on to the next node, my addboard function or my printsol … Software Development algorithm c linked-list queue | |
I would like to make a memory allocation: `(*matrix)[i]=(int*)malloc(sizeof(int)*sz);` But I have got an error message: Invalid operands to binary * What should be the problem? Software Development c | |
Could some one point out what's wrong with the classes of this program? #include <iostream> using namespace std; class box { private: int height; int length; int width; public: box();//constructor int surface_area(); int volume(); void set_dim(int ,int, int); }; //implementation box::box(){ int height; int width; int length;} box::int surface_area(){ int … | |
![]() | Like you know the ones like Imovie Sony Vegas Pro Adobe Premiere Pro CS6 Adobe Premiere Elements 10 What programming language are they designed with? ![]() |
if I write the following code.. float a =1.3; double b=1.3; if(a>b) printf("hii"); else printf("hello"); the o/p comes hii...but if I change the values to 1.7 the output comes hello...can any1 explain the reason????if precision is to be taken into account then everytime double should be greater.. Software Development c | |
I'm trying to come up with a small block of code that simply takes a character value that is input by the user and then use an "if" statement to determine what is excecuted depending on what is entered. I just started C++ this week and have no prior experience … Software Development c++ | |
I've created this code which should look in the Songs folder and add any .mp3 file to a list. However when I test it it keeps saying File not found and pointing to the exact file it cant find with the name of the song while I dont mention this … | |
I have beeb unable to figure out how to get data from a list view. It needs to be a multislect, and I need to get the data from a specific column. my listview consists of a 3 column with data populated from a database. I am after the data … | |
![]() | Okay so there is this cool photo website that has awesome photo effects okay... So I'm Thinking of saving the websites info right click and save as html etc file. And I wanted to use those same effects trying to build a software out of It. Cause what If the … Software Development |
Hi there! What I'm trying to do is have multiple lists have the same length (size) so I can iterate easily over them later. I want to "extend" the size of the smaller lists to match that of the largest list without just tacking on entries, I want to distribute … Software Development java | |
Dim major As String = TextBox1.Text Dim depa As String = TextBox2.Text Dim sname As String = TextBox3.Text Dim tbStudent As DataTable Dim dcPrimaryKey(0) As DataColumn tbStudent = sqlDataset.Tables("Major") Dim c As Integer 'selecting the entire rows from dbase myCommand = New SqlCommand("SELECT count(*) FROM Major", myConnection) myConnection.Open() 'sqlquery1 = … Software Development vb.net | |
please someone help me..im doing my final project and below is my code for the registration form..after i fill up all my form and it will appear a msg box that i can only register once...the data is not being inserted in the database..im using ms access...please2....do help me...i dont … Software Development microsoft-access open-source regex vb.net visual-studio | |
Hello All, I have been developing a website that has a secure area. At the beginning of the secure page I wrote a scriptlet to check whether the user is logged in. I want to take this scriplet and put it in a javabean. Could any of you guys suggest … Software Development http-protocol java session | |
Hi, I want to read source directory and copy each file to the destination by skipping after each file based on interval value i.e., if i set the value of interval 2, then it should skip two files everytime. For Example: If there are 5 files in a directory, 1.txt, … Software Development | |
Hi, I have been looking at a few tasks I want to do using a MySQL DB and Python. Therefor I'm spending some time looking at the MySQLdb module for Python and how I can use it. I've worked out a few bits but I want to be able to … | |
hello, hello! im probably being really dumb again, but i can't get java to run keyPressed() when i press a key. do i need to initialize the keylistener somewhere? any input is appreciated!(even if it's not help) import java.awt.Graphics; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import javax.swing.JPanel; import … Software Development java java-swing | |
i am just trying to populate this array with some information. i have no idea why, but i am getting: java.lang.ArrayIndexOutOfBoundsException: 0 im probably just stupid 0_o... but, here is my code: private boolean populated = false; private int blockList[][] = {}; public void update(){ if(populated == false){ int a … Software Development java | |
Hi, I have a simple question On my page I have two text boxes, a button and a label. I have a database DB_rental which contains a table TB_credentials (empID, username, password) User enters the username and password in the textboxes and clicks the button. The application should check the … Software Development open-source | |
public int CalculateProduct(int num1, int num2) Requires a return type of int. However, in main, when CalculateProduct is called, no variable is assigned to accept the int being returned. I don't understand why. Thanks! using System; delegate void NotifyCalculation(int x, int y, int result); class Calculator { NotifyCalculation calcListener; public … Software Development printer | |
Hi All, I have managed to get my program working now using UDP to send a message to a sensor and get a reply.The last major issue i am having is the data i recieve back. data, addr = sock.recvfrom(782) # buffer size is 782 bytes This is my line … Software Development python | |
i created a custom installer for my mobile application, the problem is if device is not connected to cradle it tries to install the application next time the device is connected. i dont want it to happen, i want to check if device is connected to cradle. help please. come … Software Development | |
I am trying to create a program that converts a fahrenheit number to a celsius number, and convert a celsius number to a fahrenheit number. It takes user input and decides which sub-program to run depending on which letter is entered. Once it decides this, it asks for the number … | |
I'm coding a encryption program where I need to generate random prime. I wrote this code for(i=3; i<10000000; i=i+2 ) { for(j=2; j <= sqrt(i); j++ ) { if(!(i%j)) break; } if (j>sqrt(i)) { cout<<i << " "; } } This tests a number till is square root. Its good … Software Development algorithm c++ encryption | |
Hello! It's me again. I making a library software and I using DataBase. When I remove any record from database and then click save i got a error message: **Update requires a valid DeleteCommand when passed DataRow collection with deleted rows.** , and one line of code with yellow background: … Software Development vb.net | |
Hello. I working on my Library software and I using database for my project. When i click save icon I save my record and when I close program and open it again, database is empty. All my records always gone! But when i create new project again and make new … Software Development vb.net | |
Good day ma'am/sir, i just wanna ask how to add color in a just specific word? because i tried this one printf("You chose"); textcolor(RED); printf("RED"); but still the whole output is colored red. please help, THANKS! Software Development c | |
Hello , I have a 2D array. It has two columns. I have to find the top 3 elements of the second column and return the corresponding elements of the first column. for example say the 2 D array is as follows: 1 0.33 2 0.4 3 0.6 4 0.2 … Software Development java | |
hi all! i have two combo box in my program one has the subteam for example if you click the 1st combo box, the items would be A1 A2 A3 A4 A5 what i want to happen is that if i chose A1 only the members of team A1 would … Software Development vb.net | |
Hi guys, as you know we can get a value from array by giving an index: int x[10]; int i; for(i=0; i<10; i++) x[i]=i; print(x[1]); // output is: 1 but how can I change this code to this: int x[10]; int i; x['a']=0; x['b']=1; x['c']=2; . . . x['z']=23; print(x['c']); … Software Development c++ | |
Hello, I'm using images to show a sequence. For this I'm using image list and the code is Graphics g = this.panel2.CreateGraphics(); ImageList photoList = new ImageList(); photoList.TransparentColor = Color.Blue; photoList.ColorDepth = ColorDepth.Depth32Bit; photoList.ImageSize = new Size(40, 40); Graphics g1 = this.panel2.CreateGraphics(); Pen green = new Pen(Color.Green, 1); int j … Software Development assembly | |
I have a little problem related to the white spaces in my program. Well, the actual program I'm trying to make is something else. so this program is just to check whether the text is properly broken or not. The problem I'm facing is, for the first word in my … Software Development c linked-list |
The End.