43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for emokidzz

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
0
189
Member Avatar for bLuEmEzzy

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
Member Avatar for bLuEmEzzy
0
122
Member Avatar for vinnitro

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
Member Avatar for vinnitro
0
178
Member Avatar for walid86

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 …

Software Development assembly pdf
Member Avatar for erici
0
3K
Member Avatar for Twist43

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 …

Software Development python tkinter
Member Avatar for Twist43
1
4K
Member Avatar for alex.ashton.58

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 …

Software Development gaming python
Member Avatar for alex.ashton.58
0
199
Member Avatar for sanjeewa.abeywardana

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
Member Avatar for samaustin141
0
187
Member Avatar for PinoyDev

God day! Any body has ha clear and good example on how to use Let and Get function? Thank you!

Software Development visual-basic
Member Avatar for AndreRet
0
2K
Member Avatar for Helmyano

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 …

Software Development ide java
Member Avatar for Helmyano
0
155
Member Avatar for Pyler

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?

Software Development c++ oop
Member Avatar for rubberman
0
342
Member Avatar for _avishek

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
Member Avatar for _avishek
0
238
Member Avatar for Dili1234

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
Member Avatar for Dili1234
0
165
Member Avatar for adityasingh95

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++
Member Avatar for adityasingh95
0
207
Member Avatar for PinoyDev

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
Member Avatar for AndreRet
0
1K
Member Avatar for chandnigandhi

please suggest me topics for mini project in c programming.

Software Development c
Member Avatar for np complete
0
181
Member Avatar for misi

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++
Member Avatar for misi
1
241
Member Avatar for kimbula...

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
Member Avatar for chickss
0
25K
Member Avatar for zeusprog

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
0
109
Member Avatar for kovacsakos

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
Member Avatar for kovacsakos
0
179
Member Avatar for Pyler

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 …

Software Development c++ oop
Member Avatar for WaltP
0
2K
Member Avatar for napninjanx

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?

Software Development adobe video
Member Avatar for napninjanx
0
132
Member Avatar for manishanibhwani

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
Member Avatar for rubberman
0
147
Member Avatar for logicmonster

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++
Member Avatar for lance p
0
312
Member Avatar for Robert955

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 …

Software Development c# gaming
0
190
Member Avatar for joel.hahn

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 …

Software Development listview vb.net
Member Avatar for Reverend Jim
0
943
Member Avatar for napninjanx

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
Member Avatar for AleMonteiro
0
166
Member Avatar for turt2live

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
Member Avatar for JamesCherrill
0
182
Member Avatar for Dili1234

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
Member Avatar for Dili1234
0
287
Member Avatar for linabeb

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 …

Member Avatar for Maligui
0
288
Member Avatar for fpsasm

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
Member Avatar for fpsasm
0
269
Member Avatar for jumboora

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
Member Avatar for jumboora
0
165
Member Avatar for rev_ollie

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 …

Software Development mysql python
Member Avatar for rev_ollie
0
8K
Member Avatar for 2concussions

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
Member Avatar for NormR1
0
308
Member Avatar for shanki himanshu

i am using strrev function and also included the header file string.h but i am getting the compile error **‘strrev’ was not declared in this scope**. what else is required?

Software Development c
Member Avatar for WaltP
0
2K
Member Avatar for 2concussions

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
Member Avatar for NormR1
0
298
Member Avatar for ezekel

Is it possible to hide the text of button during run-time?.

Software Development
Member Avatar for ezekel
0
69
Member Avatar for brian71289

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
Member Avatar for brian71289
0
127
Member Avatar for maurices5000

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
Member Avatar for maurices5000
0
232
Member Avatar for deepthought

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
Member Avatar for TrustyTony
0
1K
Member Avatar for serkan sendur

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
Member Avatar for irwanhassan
0
803
Member Avatar for coolikedat99

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 …

Software Development c c# c++
Member Avatar for NathanOliver
0
298
Member Avatar for np complete

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
Member Avatar for TrustyTony
0
243
Member Avatar for LD Company

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
Member Avatar for LD Company
0
208
Member Avatar for LD Company

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
Member Avatar for Netcode
0
177
Member Avatar for ronnel09

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
Member Avatar for ronnel09
0
131
Member Avatar for rajhans

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
Member Avatar for JamesCherrill
0
163
Member Avatar for sigridish

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
Member Avatar for Dili1234
0
623
Member Avatar for Rasool Ahmed

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++
Member Avatar for Rasool Ahmed
0
287
Member Avatar for srikanth2321

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
Member Avatar for joseph.a.mineo
0
147
Member Avatar for Vish0203

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
Member Avatar for Ancient Dragon
0
122

The End.