132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for acepeda

Hey Guys I'm a newbie programmer and looking to see if someone can help me out with a lil program I'm developing.I want to track orders for my small furniture factory. I want to create a tracking number based on the OrderNumber+ProductID+SeriesNumber.It should look like this: 10085-88-01 The SeriesNumber is …

Software Development vb.net
Member Avatar for Netcode
0
82
Member Avatar for dancks

The original question I posted on Yahoo Answers: [url]http://answers.yahoo.com/question/index;_ylt=Au6uML15p1p500urP_yfL9fsy6IX;_ylv=3?qid=20111002100030AAILsNC[/url] I can't get this code to return anything: In NewVector.java: a class that extends Vector: [code]public Object getSmallest() { Object obj = elementData[0]; try { String a = (String)elementData[0]; for(int i=1;i<elementCount;i++) { String b = (String)elementData[i]; if(a.compareTo(b)>0) { a = b; …

Software Development data-structure java
Member Avatar for JamesCherrill
0
200
Member Avatar for aldeene

what's wrong with my code? i'm new to java, can someone help me? the data is not showing. [CODE] public class GUI { private static JTextField fname = null; private static JTextField lname = null; private static JTextField search = null; private JPanel panel = null; private JPanel tablePanel = …

Software Development gui java mysql
Member Avatar for mKorbel
0
168
Member Avatar for dwiniers

Hello there i need your help and expertise. Anybody can help me how to make a code or how to make a word running like marquee in a text box. Thanks in advance! br

Software Development visual-basic
Member Avatar for dwiniers
0
217
Member Avatar for neeraj goswami

[B]i have written one programm in c using structure to enter name and account number of the emplpyee.the programm shows an error which is filename.c:11 error:expected identifier or "("before"["token..i am not able to get the error...please clearify it.[/B][CODE] #include<stdio.h> #include<conio.h> #include<stdlib.h> main() { struct wipro { char name[20]; char accnum[10]; …

Software Development c
Member Avatar for neeraj goswami
0
284
Member Avatar for zzou

hi The question to which am using the for loop is as follows: Write a C interactive program that will encode a word or sentence entered by a user. The encryption will be done as follows: For any word or sentence (note: blank spaces, special characters are ignored here, i.e …

Software Development c encryption
Member Avatar for kings_mitra
0
140
Member Avatar for RM@Bowdoin

I implore you to ignore the poor formatting, ignore the overall functionality even; my problem lies with trying to call the Scanner scan within flow method from readBoolean and readBoolean2D methods. It says it cannot find variable scan. How can I access this variable? [CODE] import java.util.*; import java.io.*; public …

Software Development java
Member Avatar for ~s.o.s~
0
339
Member Avatar for Dewey1040

I'm creating a fibonacci program in mic1, which is a little more readable than other assembly languages so even if you don't know the language it shouldn't be hard to figure out what the code is trying to do if you are good with stacks and recursion. This is the …

Software Development assembly
0
392
Member Avatar for ynwa

import java.awt.*; import java.awt.image.*; import java.awt.geom.*; import java.lang.Exception.*; import java.io.*; import javax.imageio.*; import javax.imageio.ImageIO; import java.net.*; import java.net.MalformedURLException; class Blur1 { public static void main ( String [] args) { float[] matrix = {0.111f, 0.111f, 0.111f, 0.111f, 0.111f, 0.111f, 0.111f, 0.111f, 0.111f, }; BufferedImage sourceImage = null; try { URL …

Software Development java
Member Avatar for stultuske
0
609
Member Avatar for anand01

Hi all, can any one tell me how to find unique values in array list? Thanks in advance..

Software Development java
Member Avatar for anand01
0
3K
Member Avatar for theCompiler

im creating a cartesian plane i will plot the points but how am i supposed to determine if the points create a single straight line ? tnx

Software Development c
Member Avatar for kings_mitra
0
323
Member Avatar for YaelGD

Hi, I need to draw a right triangle, based on the height and the base of it. An Isosceles one is easy to draw, but a randomly chosen relation between the height and the base (which gives me a right triangle other than 90, 45, 45) needs to be based …

Software Development c++
Member Avatar for sungaw
0
2K
Member Avatar for vidit_X

I need to write a program, which prints out all the prime numbers between two numbers. The first input specifies the number of test cases, followed by the limits. Here is an example.. [QUOTE] Input: 2 1 10 3 5 Output: 2 3 5 7 3 5 [/QUOTE] I wrote …

Software Development c++
Member Avatar for Rashakil Fol
0
158
Member Avatar for cig_buttz

I wanted to create this program which lets the user choose from the 4 number systems, binary,decimal,hexadecimal, and octal. inputs a number for the chosen number system, then converts it to the other three number systems. Help anyone?

Software Development java
Member Avatar for josephbeluan
0
127
Member Avatar for paraclete

I'll preface this by saying that I'm fairly new to Python (after having 2-3 years of C++ under my belt), but for some reason I can't figure out the reasoning behind global variables and when/how I should be using them. For instance, there is a project for school that we've …

Software Development python
Member Avatar for paraclete
0
227
Member Avatar for anonimous

[CODE]If ListView1.SelectedItems.Count = 0 Then MsgBox("Plese Select a Product") Else Dim price As Double Dim quantity As Integer Dim total As Double price = ListView1.FocusedItem.SubItems(3).Text quantity = ListView1.FocusedItem.SubItems(2).Text If txtProductName.Text = "Happy" Then If txtQuantity2.Text > 20 Then total = price * Val(txtQuantity2.Text) * 0.95 total = Format(total, "0.00") execute("insert …

Software Development vb.net
Member Avatar for Capritarius21
0
113
Member Avatar for jefroxnergal

First of all I want to thank "codeorder" for sharing me this code.. [CODE]Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click With Form2 .TabControl1.SelectedTab = .TabPage2 .ShowDialog() End With End Sub[/CODE] This code actually works in normal windows form but when I try to implement this code to …

Software Development asp.net vb.net
Member Avatar for jefroxnergal
0
242
Member Avatar for pythonhelp11

I need to create a code that will extract the dob from a array of string, like this [iCODE]finddob(["name:bob grade:a dob:1980","dob:1976 name:kate grade:c"])[/iCODE] [CODE]def finddob(listofstrings): recordnum = 0 while(recordnum < len(listofstrings)): yearstart = listofstrings[recordnum].find("dob:") + 4 yearend = listofstrings[recordnum].find(yearend) year = int(listofstrings[yearstart, yearend]) if(year > 1990): print("Is over 21") else: …

Software Development python
Member Avatar for woooee
0
427
Member Avatar for d3fined

Hi, I have just recently started using python and I couldn't figure out two problems regarding finding the first three occurrences of spaces using while loops. I have trouble understanding the concept of while loops. How would i write a program that reports the first three occurrences of a space, …

Software Development python
Member Avatar for TrustyTony
0
182
Member Avatar for Ruchi224

Hello.. I am using MS Access 2003 and vb.net to develop a windows application of inventory management. I have used datagridview in the form and using FillBytoolstrip option, can filter data using type. But i have no idea as to how can i update the database to reflect the latest …

Software Development vb.net
Member Avatar for Phasma
0
611
Member Avatar for evlmangesh

Hi guys, This code has been on my back since a few days now and I kinda need help on it ASAP. Basically what I wanna do is use PipedInputStream and PipedOutputStream to accurately time thread create operations. So I have to calculate System.nanoTime() in the run() method of the …

Software Development java
0
100
Member Avatar for Blink383

I cannot get past this error. I had taken out the dataSort method which allowed it to compile, however I need the data to sort for my assignment. When it compiled the data was not passing through my constructors, I got no data output. Any assistance is greatly appreciated . …

Software Development apple java java-swing
Member Avatar for Taywin
0
372
Member Avatar for Stang51

Hi, I'm new here I searched for any possible way to fix my issues, but I have not found anything that I can understand, so I figured I would post my code here. In my C++ class I was asked to take a craps program and modify it to take …

Software Development c c# c++
Member Avatar for Stang51
0
1K
Member Avatar for khevz09

MY problem is ..... Given an input 'n' came from the user and display a pattern. but my code is very long .... my code is only for 1-10 numbers i need to display any numbers that input of the users can u give me some short code or advice …

Software Development c++
Member Avatar for cejay2b20
0
1K
Member Avatar for justincuppen

Hello I need help figuring out how to write a loop program that behaves a certain way, I have been beating my head off of walls trying to figure this out and it is probaby so easy.. This is the expected behaviour: $ ./a.out Enter some text on 1 or …

Software Development c++
Member Avatar for justincuppen
0
127
Member Avatar for justincuppen

Hello I am attempting to write a program that will convert temperature from c to f and vise versa. However I need this program to stop when choice == 'q' and i am having a horrible time with it. here is the code that i have been working with. any …

Software Development c++
Member Avatar for vidit_X
0
148
Member Avatar for bobytch

Good Day Everyone here is my code so far [CODE] #include <graphics.h> #include <stdlib.h> #include <stdio.h> #include <conio.h> void vp(int x,int tc,int bk,char *text); void square(int x,int y,int size); void main() {//=========================================================== int gdriver = DETECT, gmode, errorcode; initgraph(&gdriver, &gmode, "C:\\TC\\BGI"); //------------------monitor-------------------- setbkcolor(0); setcolor(15); square(300,160,150); square(300,160,148); square(300,160,130); square(300,160,131); setaspectratio(2,5); int …

Software Development c c++
Member Avatar for vidit_X
0
285
Member Avatar for GSLENK

Program runs fine with me, the cout's work. IDK what this means every cout from line 17 to 71, and the system ("pause") on line 72 are all warning marked as ambigious. It started happenning when i put the "while (occupiedRooms > rooms)" in. I think thats when the errors …

Software Development c++
Member Avatar for vidit_X
0
345
Member Avatar for toneatles

Hello all, I have a assignment for school that I am having trouble with. I have to write a program that will list all primes numbers of an inputted number. I have the code and it compiles with no errors, but when I run it after i input the number, …

Software Development c++
Member Avatar for vidit_X
0
186
Member Avatar for linux

This is for a CS course I am taking. I'm stuck. I need to write a program that takes a number and tallies up how many cycles it takes of multiplying the digits until it is a single digit number. ie: 715 = 7 * 1 * 5 = 35 …

Software Development c
Member Avatar for linux
0
124
Member Avatar for Shwetha Dali

Here is my code to draw a star..But i have a problem..its printing only half star. using System; using System.Collections.Generic; using System.Text; using System.Collections; namespace triangle { class Program { int k = int.Parse(Console.ReadLine()); static void Main(string[] args) { Console.WriteLine("Enter The Value:"); int k = int.Parse(Console.ReadLine()); int m = k; …

Software Development
Member Avatar for JuhaW
0
744
Member Avatar for juniorsilver

I designed an application with vb2010 and i would like it to run on a Windows XP platform without the trouble of installing the .NET framework 4.0 and the VBPowerpacks module. I tried copying the DLL files of what i needed and placing them in the application folder, but it …

Software Development vb.net
Member Avatar for juniorsilver
0
207
Member Avatar for Skrell

After MANY hours searching online documentation, i still cannot find some simple examples of using the subprocess module to execute commands in the windows console and read back in the output from said command(everything is for unix). So for example, if i wanted to do something like use 7z.exe to …

Software Development python unix
Member Avatar for Skrell
0
108
Member Avatar for bckc

Hi guys, I started learning C a few days ago, watching as many youtube tutorials as possible but there aren't many tuts on youtube :/ Can anyone recomend me a good book or list of tutorials? I started to read "The C Programming Language" by dennis ritchie but It's a …

Software Development c
Member Avatar for cse.avinash
0
178
Member Avatar for SI THU

hi! anybody help me please, i write shutdown code,it ok but when i convert exe file shutdown code is not work. my shutdown code is [CODE] shell "shutdown -s -t 30"[/CODE] please help me thanks

Software Development visual-basic
Member Avatar for KingGold171
0
142
Member Avatar for temmyb

So I cant get the division to work on my c++ homework. This is a diceroll game and im trying to get sum1=num1/diceRoll to get the percentage of # of times divided by the amount of time the dice is being rolled. It keeps giving me 0 because I assigned …

Software Development c++
Member Avatar for temmyb
0
211
Member Avatar for gedas

hey, i have no experience with pearl programming what so ever, but at work i have to use the code below to change csv to xls files. could someone tell me in the code below which line specifies the .csv file name that i need to change in order to …

Software Development perl
Member Avatar for JeoSaurus
0
369
Member Avatar for Vidgie65

These are the errors the compiler is giving me on these lines od code - any help understanding or fixing this issue ???? \extpersontype.h(35) : error C3646: 'extPersonType' : unknown override specifier \extpersontype.h(37) : error C2091: function returns function \extpersontype.h(44) : fatal error C1903: unable to recover from previous error(s); …

Software Development c++
Member Avatar for Moschops
0
265
Member Avatar for computerchip

[B]Hello, I am a new CSC 111 student. I have this problem where I am supposed to create "interactive forms", but I'm having trouble figuring out how to do the height, the "time" portion of the form, and it doesn't seem to cooperate interactively. I have the problem and my …

Software Development python
Member Avatar for TrustyTony
0
189
Member Avatar for syaminismail

1) Write a full program for the bubble sort algorithm. User is required to enter specific input numbers and the program will be able to sort the given numbers in ascending order. Write down in a table the time (according to your system clock) that it takes for the program …

Software Development algorithm c++
Member Avatar for Narue
0
224
Member Avatar for ARaza110

[CODE]public class cation { public static void main(String[] args) { new cation().run(); } public void run(){ harada hara=new harada(); insert(hara); insert(hara); } public void insert(harada hara){ if(hara.left==null){ hara.left=new harada(); } else{ insert(hara.left); } } class harada{ harada left; public harada(){} } } [/CODE] Can someone please explain, recursion in objects …

Software Development java
Member Avatar for ARaza110
0
172
Member Avatar for Master Mascus

[CODE]// Including the libraries to be used #include <stdio.h> #include <stdlib.h> #include <string.h> // Defining the End of line #define EOL '\n' //Declaring Global variables (for the sentence and the output sentence- final) char sentence[100]; char final[100]; int i,j,ans; int start() // Defining the start function { printf ("\n"); printf …

Software Development c c# c++
Member Avatar for Narue
0
126
Member Avatar for cloris

Am a final year student doing a project on a Library management system using rfid. My problem is, how am going to make the rfid system work with my vb6 program. i.e the codes required and probably the plugins i would need to have to make this possible.

Software Development visual-basic
Member Avatar for emond
0
145
Member Avatar for dospy

i've seen many programs using printf( ) for outputing(probable ported from C) but anyway, is there any difference between printf and cout? also i've seen many functions(expecially in windows.h) using w_char*(wide char string) as arguments or return value(and it bugs me because it makes difficult to use with strings) what's …

Software Development c++
Member Avatar for dospy
0
271
Member Avatar for ntrncx

1) what exactly is the difference in a constructor if you put reference on it? example[CODE]ConstructorX(string first):firstName(first)[/CODE] with [CODE]ConstructorX(string &first):firstName(first)[/CODE] 2) [CODE]const Array &operator=(const Array&)[/CODE] the first const what exactly means?the const in the parenthesis is that the object is constant if its at the end means the function cannot …

Software Development c++
Member Avatar for dospy
0
225
Member Avatar for judeabao

heres's my code : [CODE]/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package javaapplication11; import java.awt.*; import java.awt.event.*; import javax.swing.*; /** * * @author Jayson Jude */ public class JavaApplication11 implements ActionListener { private JFrame window = new JFrame("Tic-Tac-Toe"); …

Software Development java java-swing
Member Avatar for Taywin
0
165
Member Avatar for niyasc

Following is the code written to implement a employ manipulation system using pointer to structures . It makes some allocation problem in dev-cpp while work well in turbo c. Can you help me to understand the problem[CODE] // Implement pointers to structures to produce employ manipulation and produce output //as …

Software Development c
Member Avatar for Narue
0
187
Member Avatar for vedro-compota

hi guys) please tell me - why the Turbo C show the error - [QUOTE]LINE_MAX is undefined [/QUOTE] for code = [CODE]/* */ #include <stdio.h> #include <alloc.h>/* */ #include <stdlib.h> #include <limits.h> main() { char a=''; char * ch; char * inputstr; printf("\nPlease specify the input string \n"); / fgets …

Software Development c
Member Avatar for vedro-compota
0
2K
Member Avatar for Singlem

Hi I have a issue that my application in currenlty doing number validation with an issue. [-d0-9] and checking that the lenth is 10 characters, all that is working as it should. The issue I'm having is: '0000000000', '1111111111',....,'9999999999' that passes my checking but is there a Regular Expression to …

Software Development
Member Avatar for Singlem
0
117
Member Avatar for DSTR3

I have a map that is not returning the correct number. First it did, then it didn't now it's just messed up. Any help is appreciated.Thanks. [CODE]struct file_data { std::wstring sLastAccessTime; __int64 nFileSize ; }; int GetFileList(const wchar_t *searchkey, std::map<std::wstring, file_data> &map) { WIN32_FIND_DATA fd; HANDLE h = FindFirstFile(searchkey,&fd); if(h …

Software Development c++ pdf
Member Avatar for MonsieurPointer
0
274

The End.