132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for NYCRAVEN

I have written a VB reservations program that writes back to a SQL 2008 database. When I write the reservation event back to the data base, I also write the reservation 'end time' back to the database as reservationtime + 4 hours in order to block off the event resource. …

Software Development vb.net
Member Avatar for NYCRAVEN
0
371
Member Avatar for schippi

Hello, My son is taking a java course in Hawaii. His text book is "Java Solutions by Lewis & Loftus 6th edition. He copied several text book examples and tried to compile them with JCreator and NetBeans 6.8, each compiler gave pages of errors. The question is " What is …

Software Development java java-netbeans
Member Avatar for JamesCherrill
0
344
Member Avatar for Sneaky Pete

Dear all, I hope that you can help me with a vb.net problem. In my program the user chooses multiple options. When a group of options is given, than the program wil check if the user has give the right start and end value. See the code below If Me.cboA.SelectedIndex …

Software Development vb.net
Member Avatar for Sneaky Pete
0
151
Member Avatar for nah094020

Ok cant seem to find the null pointer exception error on my code one moment its working fine the next when i add the 20 i get an error, and i dont know if this is what messing my find method. Between my tree is supposed to be a binary …

Software Development data-structure java
Member Avatar for Taywin
0
217
Member Avatar for razorsky

After much searching I cannot find a particular way to get a datafile into my structure. I understand how to create and manipulate the structure. C does not play nicely with strings is another thing I have noticed. I have tried many examples of how to do this but none …

Software Development c
Member Avatar for j.c.
0
9K
Member Avatar for getnit

Hello, I am trying to have a numeric box in WPF toolbox, I have the following code which is giving me the control in the tool box, but I am unable make it accept only the numeric input. protected override void OnKeyDown(KeyEventArgs e) { short val; if (!Int16.TryParse(e.key.ToString(), out val)) …

Software Development asp.net assembly
Member Avatar for Sahil89
0
624
Member Avatar for sgeep

Hey guys, I'm in an introductory computer science class that deals with Python. We're assigned to create a dice-rolling program using Tkinter, and I have the interface pretty much down, but I'm having trouble linking it to the dice-roller. Here it is. import random import Tkinter win = Tkinter.Tk() win.title("Die …

Software Development python tkinter
Member Avatar for TrustyTony
0
838
Member Avatar for andigirlsc

I have am either missing a brace or have an extra brace somewhere. This code is also incomplete as I'm still working on the program. The "else" error is a squiggly red line underneath the "else" for the customer does not have a discount coupon. Thanks! #include <iostream> #include <string> …

Software Development c++
Member Avatar for mike_2000_17
0
273
Member Avatar for hadas.beja

hello everybody, can you do something like this: dim x as integer=1 button_x.visibility=Windows.Visibility.Hidden i have about 24 buttons on my form that i need to change the visibility for. which buttons need to be changes - is a variable i get from database query. so i'll get several rows of …

Software Development vb.net
Member Avatar for hadas.beja
0
157
Member Avatar for chamnab

This is my designed form in VB.NET . What do you think about it ? Please give me some idea. [Click Here](https://www.dropbox.com/s/9ugkng13tz407k6/Untitled.png)

Software Development
Member Avatar for <M/>
0
130
Member Avatar for kamran.j

hello everybody; i have a problem, i want to convert a string which is an Equation to double, in order to use each part which is seprate by + or - ; how can i do that? thanks a lot for your helps.

Software Development c++
Member Avatar for kamran.j
0
223
Member Avatar for anisha.silva

hi how do i do this problem how do i put this in to an array p.assign(p1, A); p.assign(p1, B); p.assign(p2, _A); p.assign(p2, _B); so that it display as p1 A B p2 _A _B because everytim i call the assign method the array index are going to be 0,0 …

Software Development
Member Avatar for anisha.silva
0
153
Member Avatar for Inshu

I have a little problem to solve .. i have a array with x, y, z co-ordinates in it as a tuple. I am trying to find the distance between each point and sorting the points according to the min distance. Can soemone help me with the algorithm ??

Software Development algorithm python
Member Avatar for woooee
0
222
Member Avatar for warlord902

I have developed a application in java that connects to facebook on the basis of access token. I can produce access token manually by feeding in urls in browser. But I need something that automatically give me an access token. I am getting no idea, whether I can do it …

Software Development java social-media web-browser
Member Avatar for psychman
0
1K
Member Avatar for Learningvinit

A piece of C code was creating core dump. When i simply added a few fprintf statement and printed the value of variales used in code to a file, surprisingly the code ran successfully. I tried the scenario number of times and the result was same "when fprintf was present …

Software Development c
Member Avatar for Learningvinit
0
874
Member Avatar for HunainHafeez

this code is working for a counter of 6 bit and i need a counter of 48 bit ... if u have time kindly try it..... i try alot but not succeed #include<stdio.h> #include<stdlib.h> #include<float.h> #include<math.h> #include <time.h> #include <cstdlib> #include <iostream> #include<stdint.h> #include<conio.h> int main() { int a[64][6]; int …

Software Development c
Member Avatar for HunainHafeez
0
270
Member Avatar for Elixir42

Hi I can't seem to adjust the D3DXFONT_DESC properties. Sometimes it breaks at getDesc(...). I want to be able to have **each text row have their own font description and be able to change it**. Why is it not working??? Maybe I setting it in the wrong place or maybe …

Software Development c++
Member Avatar for Elixir42
0
370
Member Avatar for akocnivek

hi guys. can u please help me in my project? code for a java program that accepts input number and displays the largest among the individual digits of that input. The sample output is here. Input Number: 123456789 Largest Digit: 9 We cant still use arrays guys because we didnt …

Software Development java
Member Avatar for Taywin
0
167
Member Avatar for mcmanuel20

public class Calculate { Calculate() { int x,y,sum, multiply,devide; x=12; y=5; sum=x+y; multiply=x*y; devide=x/y; } public static void main(String[] args) { System.out.println("the sum of two numbers:" + sum); System.out.println("the multiple of two numbers:" + multiply); System.out.println("the devition of two numbers:" + divide); } }

Software Development java
Member Avatar for JamesCherrill
0
154
Member Avatar for getnit

I need a suggestion on the scenario I have, multiple application sharing same data. -I have a set of tools which is developed independetly, but there is a set of data they share. -Its around 7 Applications sharing some of the basic data and few data are specific to the …

Software Development
Member Avatar for Momerath
0
110
Member Avatar for Ibrahem.EzZzat

I started programming courses 4 months ago and I can't solve this problem according to it's required order . I need your help as soon as possible and I think it is easy for you :D thank's in advanced :) a) Given an unsorted array of integers, your task is …

Software Development algorithm java
Member Avatar for subramanya.vl
0
355
Member Avatar for stefilina

I have a problem with my combobox. I've set DataSource which contains a list of objects, DisplayMember and also ValueMember but there are times when the combobox displays the namespace where the object class is placed. For example: Project.Interface.Object cmbAuto.DataSource = Collections.ProfileList.FindAll(t => t.IsAuto); cmbAuto.DisplayMember = "Name"; cmbAuto.ValueMember = "ID"; …

Software Development
Member Avatar for stefilina
0
99
Member Avatar for W1nst0n

Hi guys, i am trying to add a image as the background for my project but cant get my code right, heres what I got so far //beginning of 1 import java.awt.Graphics2D; import java.awt.Toolkit; import java.awt.image.BufferedImage; import javax.swing.JPanel; /** */ public class makeB extends JPanel { private BufferedImage buffer; private …

Software Development image java java-swing
Member Avatar for mKorbel
0
394
Member Avatar for trd360

My assignment is to randomly generate a password based on the selection chosen by the user. So far, my code is unfinished but that's because I've run into a problem. For the second selection(Lowercase and uppercase letters). My password will display lowercase and uppercase letters but it won't be enough …

Software Development java programming-construct
Member Avatar for subramanya.vl
0
170
Member Avatar for babi.meloo

I need to create a palindrome tester program that ignores spaces, punctuation and uppercase/lowercase to determine if the string given to the user is a palindrome (same beginning to end as end to beginning). HERE'S WHAT I HAVE SO FAR: String str, another = "y"; int left, right; Scanner scan …

Software Development java mathematics
Member Avatar for JamesCherrill
0
2K
Member Avatar for latecomer

i'm having a hard time creating a program that will display the initials of a string provided by the user. The program should also display the number of words of a given string. i've tried this code, but the problem is, the program would only display the first initial and …

Software Development display java
Member Avatar for JamesCherrill
0
366
Member Avatar for Inshu

def CalcCentre(data): centre = array([0,0,0]) count = 0 for p in data: centre = add(centre, array(p[:3])) count += 1 centre = dot(1./count, centre) return centre

Software Development python
Member Avatar for Inshu
0
115
Member Avatar for |\|asrin

Hi, When i run my program below, i recieve this error: ***Debug assertion failed! Expression: BLOCK_TYPE_IS_VALID(pHead->nBlockUse)*** this exception occurs when returning from fitness function. #include <map> #include <algorithm> #include <vector> #include <fstream> #include<time.h> #include <math.h> using namespace std; #define generations 10000 #define popSize 120 // population size #define makeRandNumber ((double)rand()/RAND_MAX) …

Software Development algorithm c++
Member Avatar for |\|asrin
0
256
Member Avatar for ms. kj

cause of erorr enum,interface,class expected?give suggestions

Software Development java
Member Avatar for subramanya.vl
0
115
Member Avatar for savedlema

Hi friends! I have a piece of code that I think should be working just fine, but I wonder why it doesn't work, and I get an "Syntax Error in INSERT statement" error message. Here is the code to affect a table called "Users" in my Access database. Dim cmd …

Software Development vb.net
Member Avatar for savedlema
0
366
Member Avatar for NardCake

Hello! This is my first post, I'm new to java and I found when I search for things this site often shows itself on google results so why not join? Anyways I'm creating a text editor in java and I want to find out how to in for example windows …

Software Development java
Member Avatar for JamesCherrill
0
231
Member Avatar for foreverangel02

Hi everyone, I have a problem with connecting vb.net to oracle database. At first I used VB.net 2010 express, but is does not support oracle so uninstalled it and replaced it with VB.net 2010 ultimate trial edition. Can you please give me some codes on how to properly connect vb.net …

Software Development oracle vb.net
Member Avatar for Pgmer
0
292
Member Avatar for sach_ak47

Hi guys i am new here i want to help about: how to convert digit(number) into word for example: Enter a number:123 Output:one hundred twenty-three

Software Development java
Member Avatar for stultuske
0
2K
Member Avatar for judd

Hai Experts, I am having difficulty in saving/storing multiple values in a listbox. Briefly, I have a combobox to choose from, where the value selected will be added to a listbox. From the listbox(with multiple entries),I wanted to save it to a field in my SQL DB. I've been stuck …

Software Development vb.net
Member Avatar for Nicholasamarq
0
2K
Member Avatar for hwoarang69

first buid array with images's --90 images PImage pic[]; void setup() { size(900,900); pic = new PImage[90]; for(int i = 0; i < 90; i++) { pic[i] = loadImage("section_"+i+".jpg"); } frameRate(0.5); smooth(); } than prnt image on screen int i = 0; int counter = 0; int flag = 0; …

Software Development image java
0
85
Member Avatar for Yarra

hi, so i coded a projectile motion java applet, not only with this but with many other programs i get problems which seem to me to be a memory issue. But the first time lets say I shoot hte projectile it will not show the screen until it has landed …

Software Development java
Member Avatar for Yarra
0
149
Member Avatar for Delnith

Using the code below I need to implement it such that p_poly has only one term of any degree and contains no terms with zero coefficients. I have tried to implement a temporary variable to no avail and was wondering if anyone else had an idea or possibly lead me …

Software Development c
Member Avatar for Delnith
0
90
Member Avatar for salford6129

I was asked in my C# class to write a simulation of a Tic-Tac-Toe game, and although the assignment does not request what I'm asking about, I'm a little curious about something. It just wants us to use an array to hold a random 0 or 1, and then 0 …

Software Development
Member Avatar for Momerath
0
1K
Member Avatar for mike12255

I am writing some code that is manipulating strings. In this program there are two functions one to get the first/last name and one to get the middle inital. the first and last name function works properly however the middle inital function is not. This function should take an inital …

Software Development c++
Member Avatar for Ancient Dragon
0
181
Member Avatar for james5050

hi i have been trying to draw a stick figure, but i don't know how to start, pls i need a help.

Software Development python
Member Avatar for vegaseat
0
844
Member Avatar for ashley9210

I am looking at python and I want to allow the user to click on the centre of the screen and create a circle, this is what I have. Any help will be very appricated. import from graphics * def blueCircle(): win = GraphWin("Click Here") p = win.getMouse() circle1 = …

Software Development python
Member Avatar for vegaseat
0
113
Member Avatar for triumphost

I have a void pointer that I casted to a char*. I'm trying to put different data types in that char* without having to cast so much. This includes doubles, floats, int's, etc.. char* Data = static_cast<char*>(GivenPtr); switch(reinterpret_cast<int>(Data)[0]) //Or should it be reinterpret_cast<int>(Data[0]) { case OBJECT: //defined as 301; { …

Software Development c++
Member Avatar for triumphost
0
155
Member Avatar for Carc369

Basically my assignment is create the best Boggle board. Basically so far I've successfully created a randomly generated board, read in the dictionary, allocated dynamic memory for the dictionary, counted the frequency of each letter (for example 'a' has x amount of characters in the dictionary), and found the percentage …

Software Development c++ file-stream
0
156
Member Avatar for shanna62

Hi, I'm new to the C++ programming world and am having a bit of difficulty understanding the difference between a container and container adapter. I thought a container such as a vector, deque and list that hold objects. And an adapter is defined as something that converts something else such …

Software Development c++ queue
Member Avatar for shanna62
0
141
Member Avatar for mickeyVeliki
Member Avatar for chandan127

#include<stdio.h> main() char a,m; printf("1st\n"); scanf("%c",&a); printf("2nd\n"); scanf("%c",&m);

Software Development c
Member Avatar for zeroliken
0
768
Member Avatar for shawn.widjaja

good afternoon gents, first semester cs student here. i'm having a world of confusion to create an X having the left formed with "+", the right side formed with "X" and the center with an "*". with an integer of 7, the output should look like: +-----X -+---X- --+-X-- ---^--- …

Software Development c c# c++
Member Avatar for deceptikon
0
156
Member Avatar for Elixir42

Hi I dont understand why this int keeps corrupting ::Draw works fine but the variable m_EndRow ends up as a funny number. The class is supposed to print debug info to my screen. ::AddText adds a row of text which is then printed in DrawTable. Simple problem if you already …

Software Development c++
Member Avatar for Elixir42
0
166
Member Avatar for darkocean

I need to export DataTable to Excel file. Is tehre anyone help me? I dont want to listview to excel... Regards.

Software Development listview
Member Avatar for deepanbecse
0
2K
Member Avatar for Otter992

Basically part of my project was to take the rows of pixels from a picture and make each row display twice, and the same for the column, and then eventually do them both together. However, I am having trouble with my loop to duplicate the rows or column. What I …

Software Development ide java
Member Avatar for Taywin
0
198

The End.