132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for behrad kiani

I try to converting bytes with 8 digits into ASCII code for example if user enter "0000111" the program convert it to it's ASCII code and shows 'p'(the value of character c in the code below became 'p') [CODE]public static void main(String[] args) { Byte bytes; char c; Scanner input=new …

Software Development java
Member Avatar for JamesCherrill
0
325
Member Avatar for silent.saqi

using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Data.SqlClient; using System.Data.Sql; using System.Data; using CrystalDecisions.CrystalReports.Engine; using CrystalDecisions.Shared; namespace test { public partial class WebForm1 : System.Web.UI.Page { string username; string fname; protected void submit_Click(object sender, EventArgs e) { username = nametxtbox.Text; fname = fnametxtbox.Text; CrystalReport1 …

Software Development asp.net assembly
Member Avatar for silent.saqi
0
228
Member Avatar for Beennn

First off im sorry if this is the wrong place to be asking. Im looking for some advice on where I should start, heres some background information on my experience. Iv been software developing for several years now working with websites, computer applications and computer games and have an understanding …

Software Development c machine-learning robotics
Member Avatar for Beennn
0
230
Member Avatar for dineshswamy

im solving a problem in linked list.how to check loop inside a linked list. i ve done implentation. always it goes without any error. but sometimes it encounters segmentation error. i dont find wny error or warning other than that.please try to help me figure out [CODE] #include<stdio.h> #include<stdlib.h> #include<string.h> …

Software Development c linked-list
Member Avatar for zeroliken
0
135
Member Avatar for Hawk123

i tried to customize the column name because the column name in my datagridview comes directly from the table column name, which is kindda odd. i browse throught this forum and other forums on howto's but i get this wierd error. [CODE] Dim dgTS As New DataGridTableStyle Dim ColStyle As …

Software Development vb.net
Member Avatar for Hawk123
0
531
Member Avatar for shuchi0113

int main(){ int near * ptr=( int *)0XFFFF; ptr++; ptr++; printf(ā€œ%pā€,ptr); return 0; } Output:0003 why the op is 3 and how to convert 0XFFFF into its decimal equivalent?

Software Development c
Member Avatar for shuchi0113
0
586
Member Avatar for TrickyT

Writing my second program for a class. It requires the following: [COLOR="Green"]Create a non-GUI-based Java application that calculates the payroll for a department in an organization. [COLOR="Green"]The application should display text that requests the user input for the name of the department, the number of employees in the department, and …

Software Development gui java
Member Avatar for TrickyT
0
144
Member Avatar for sw8revenge

gud day... i just wanna ask if someone could give me a sample code of a user's activity log ..where it records the time of login and logout of the user .. and also records the users deleted, created and updated data... .tnx :D and should i also create a …

Software Development vb.net
Member Avatar for sw8revenge
0
1K
Member Avatar for lianpiau

I want display 1 record become 4 record for print label purpose. For Example, Model A quantity is 100 pcs, every package only can 25pcs. so I want display as attach picture in datagridview in C#. quantity records is based on Quantity / ItemPerPackage.

Software Development display
Member Avatar for thines01
0
182
Member Avatar for edwords12

I want to know what to do if i have some content in a text file, i wish to preprocess it by removing certain things. from the file the text file has content as shown below sub_401000 proc near [B]; [/B]CODE XREF: sub_4021FD+7Fp [B]; [/B]sub_403366+40Dp ... loc_401019: ; CODE XREF: …

Software Development python
Member Avatar for sorry711
0
170
Member Avatar for vincenzorm117

I have been having trouble developing a function that frees all of the memory associated with structs of a linked list. Im not asking for a clear cut answer, just an idea or a function that can aid. F.Y.I. the linked list contains a head struct and a tail struct …

Software Development c linked-list
Member Avatar for sorry711
0
237
Member Avatar for zerose

I'm doing speech recognition application. Now my application can recognize my speech command, but somehow my application still not working. Is it because i did not trigger an event like .getSource()? This is part of my program: [CODE] public void resultAccepted(javax.speech.recognition.ResultEvent e) { try{ Result r = (Result)(e.getSource()); ResultToken tokens[] …

Software Development java
Member Avatar for zerose
0
220
Member Avatar for SeniorAlexandro

Alright, I have a Form with a Media Player in it. Which plays a Song. [CODE]AxWindowsMediaPlayer1.URL = My.Computer.FileSystem.CurrentDirectory & "\Music.mp3" AxWindowsMediaPlayer1.Ctlcontrols.play() AxWindowsMediaPlayer1.settings.playCount = 999 Me.Opacity = 0 [/CODE] It's playing in the background since the Form is hidden. When I play it [B]in[/B] Debug, everything works fine. When I run …

Software Development vb.net visual-basic
Member Avatar for SeniorAlexandro
0
693
Member Avatar for VB 2012

Okay Ive found some code on how to display Virtual and Physical Memory but its not working :'( any help :@ Here i show the timer will start : [CODE] Private Sub TabControlMemFreePlus_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TabControlMemFreePlus.SelectedIndexChanged If Me.TabControlMemFreePlus.SelectedIndex = 1 Then LoadStorageToolStripMenuItem.PerformClick() Call UpdateProcessList() …

Software Development vb.net
Member Avatar for codeorder
0
180
Member Avatar for deathmagnetix

Write an application that computes the cost of a telephone call. The inputs are the time the call was placed (this should be written as a 24-hour time, e.g., 2149 for a call placed a 9:49p.m.), the duration of the call in minutes, and the distance in miles of the …

Software Development java
Member Avatar for deathmagnetix
0
170
Member Avatar for starlight849

I'm using the printf function to display some textual information. It is possible that the string may contain different symbols such as $#%^&* somewhere within the text. I know that to handle the % that I need to use a %% to make the string evaluate correctly. for example: [CODE] …

Software Development perl
Member Avatar for starlight849
0
203
Member Avatar for nickliutw

I'm creating a program by using the generic array that allow user to define the capacity or use the default capacity. I'm running some problems with casting and methods is not exist errors when I tried to store the data into array. Here is my constructor and methods class: [CODE] …

Software Development java
Member Avatar for stultuske
0
102
Member Avatar for vyrte

hello everyone! i'm writing a program where i want to choose a random double but not greater than "i" which is a specific value --lets say 60--i'm doing the following: [CODE]double b = rand()%i+1[/CODE] and i get the error while compiling : [I][U]invalid operands of types 'int' and 'double' to …

Software Development c++
Member Avatar for vyrte
0
241
Member Avatar for Fungus1487

below is a very simple encryption class which shows how to encrypt sensitive data (very simply) this example converts a string to hexadecimal form and back again with some simple error handling. please leave some feedback if you find this useful

Software Development encryption vb.net
Member Avatar for enelramon
0
370
Member Avatar for Karlwakim

Hi everybody, I am currently learning c++, and i would like to know more about java. As you know, c++ has no built-in functions to build GUI apps, does java have built-in functions to build gui apps ? Or we need 3rd party libraries ? Thanks

Software Development gui java
Member Avatar for Karlwakim
0
164
Member Avatar for mitrious

I have a node class that has a Node* parentNode atribute. My constructor is as follows: [CODE]Node::Node(Node* p,const State& s, int d) : parentNode(p), currentState(s), depth(d){ }[/CODE] BUT with this constructor I get a problem: I'm using this class to run a AI Search and at depth 3 it generates …

Software Development c++
Member Avatar for mitrious
0
213
Member Avatar for Zssffssz

I'm trying to write an echo like thing doing this : [CODE]> echo Muffins Muffinst > echo two muffins two muffins[/CODE] The problem Is that the program isn't being started from command line, The > is my programs input prompt (trying to write a very simple command line) How would …

Software Development c++ ubuntu unix
Member Avatar for WaltP
0
259
Member Avatar for stakeMyHeart

im creating a prototype for a hotel using netbeans ide 7.0. I used the drag and drop in designing the buttons, panels, label etc... then what i want to happen is when the button is clicked a jpanel/ jframe that i did will appear. How would i do that? I …

Software Development gui java java-netbeans
Member Avatar for stultuske
0
288
Member Avatar for KasmIR

[CODE]for ( i=0;i<a;i++ ) { qin.Echo(); qin>>b; if(b == (char)8) { total--; cuv[i-2]=cuv[i-1]; cuv[i-1]=0; i--; } else if(b!=char(13)){ // for key enter total++; space++; cuv[i]=b; } else break; } [/CODE] If pressed once or twice "backspace" works, but if pressed for more than two times, not working, first i checked …

Software Development c++
Member Avatar for KasmIR
0
81
Member Avatar for jasonrefan

Hello, I am trying to validate that the user has entered data into the JTextField to be saved to a text file. My method is: Data saved to Text File Data loaded into an array upon execution Data saved to array, then written to Text File. My addProperty Method: [CODE] …

Software Development java
Member Avatar for jasonrefan
0
138
Member Avatar for james6754

[CODE] class Matrix { public: int M; int N; double *ptr; Matrix(int m,int n)//constructor takes two ints { M = m; N = n; ptr = new double[M][N]; assign(M,N);//call function } void assign(int M,int N)// method { for(int i = 0; i < M;i++)// i is a row { for …

Software Development c++
Member Avatar for james6754
0
145
Member Avatar for tobo

hello i have a problem to solve for a commandline-programm: there are several types of inputs to get and these can look like: keyword1 <double> value1 <double> value2 keyword2 <double> value1 keyword3 <double> value1 ... I just can't figure out how to do it! thanks!

Software Development c c# c++
Member Avatar for tobo
0
322
Member Avatar for jpsider

I'm working on a school project, beginner stuff. I need to output the data with 2 decimals. I've tried several variations of [CODE] printf("%4.2f" + variable) [/CODE] But it seems when I use more than one variable it craps out or wont compile. Thoughts? [CODE] public class Conference4 { public …

Software Development java
Member Avatar for jpsider
0
131
Member Avatar for Despairy

Hi, lets say i have [CODE]class Players{ public: vector <strings> info };[/CODE] and class that inherits from it [CODE]class son:public Players{ };[/CODE] now in the main function i make 2 of those so now i have 2 vectors in memory that vector holds the same data for all of the …

Software Development c++
Member Avatar for Ancient Dragon
0
260
Member Avatar for themenucha

Hi!!! I'm trying to pass 2d array to function and i can't. In general i'm trying to print chess board in action. The board is an integer.I need a function that gets 2d array in specific place and returns correlatedm char. const int pawn = 1; const int rook = …

Software Development c
Member Avatar for themenucha
0
354
Member Avatar for hszforu

So here is something i am trying to do: 1.Store a mathematical expression eg. 23*32+12 in the String datatype. 2.Now i have to calculate the value of that expression. So i thought of converting the string to integer using parseInt , but for this the string need not contain *,+ …

Software Development java
Member Avatar for hszforu
0
314
Member Avatar for harinath_2007

I want to make my program sleep for 30 miutes or 1 hour . I can do that by using Thread.sleep() but is there any alternate way?

Software Development java
Member Avatar for harinath_2007
0
136
Member Avatar for Upoma

i am going to develop a java project with tomcat6.How to implement calender data type in date field? please help as soon as possible..

Software Development java
Member Avatar for JamesCherrill
0
186
Member Avatar for SoulMazer

Hi, I'm a beginner to C++ and am having some trouble with my list. I first define a struct named "bullet' like so: [code=c++]struct bullet { bool alive; bullet() alive = true; };[/code] Then, I create a list of objects of type "bullet": [icode]list<bullet> bullet_list;[/icode] In my program, I frequently …

Software Development c++
Member Avatar for saravmittar
0
197
Member Avatar for jot121

[CODE]import java.util.ArrayList; public class CSStudent { String[] requiredGeneralClasses = {"biology", "calculus", "chemistry", "english", "physics", "psychology", "economics"}; String[] requiredInMajorClasses = {"algorithms", "data structures", "numerical analysis", "graphics, databases"}; String[] completedClasses; int[] gradeForCompletedClasses; public CSStudent() { completedClasses = new String[10000]; gradeForCompletedClasses = new int[10000]; } public void completeClass(String classs /*class*/, int gradeOnHundredPointScale) { …

Software Development java
Member Avatar for NormR1
0
125
Member Avatar for Clinton Portis

Fun game for the raging compulsive alchoholic gambler, such as myself. Although the game may vary among casinos, the basic premise is the user picks 10 numbers out of 80. The computer will randomly draw 20 numbers out of 80. If you matched with any of the computer picks, you …

Software Development algorithm api c++ windows-api
Member Avatar for PrimePackster
0
1K
Member Avatar for iPanda

I'm trying to open a program while I'm in a python script using the subprocess.call() function, It opens the program but for some reason the program doesn't allows that and just throw an "Unhandled exception" error, I know the problem is probably in the program so there may be any …

Software Development python
Member Avatar for iPanda
0
244
Member Avatar for Vampiricx3

Hey guys, I'm trying to build an Employee system GUI, and right now i'm trying to create a JComboBox to display all of the Employees, but whenever I compile, I get the following errors.. [code]nathan@ubuntu:~/Desktop/Employee GUI [Java]$ javac RectangleProgram.java RectangleProgram.java:42: cannot find symbol symbol : constructor JComboBox(java.lang.String) location: class javax.swing.JComboBox …

Software Development gui java java-swing ubuntu window-manager
Member Avatar for JamesCherrill
0
149
Member Avatar for dennysimon

hallo how to detect windows regional setting ,using java code thank you denny

Software Development java
Member Avatar for JamesCherrill
0
137
Member Avatar for Momiji Sohma

Hi,I want to write a program that calculate the increment and new salary of employee based on the average of three evaluation points.(using pass by reference/pass by value). I've done the coding but the output is wrong. I think there's a mistake on the call function. #include<stdio.h> float get_increment(float *a); …

Software Development c
Member Avatar for zeroliken
0
128
Member Avatar for mt1

I have a MainWindow which has a button that triggers a transition to the next UserControl: [CODE]private void Button_Click(object sender, RoutedEventArgs e) { NewPage newPage = new NewPage(); pageTransitionControl.ShowPage(newPage); } [/CODE] On this UserControl (NewPage), it has a back button which should transition the current UserControl away, so it goes …

Software Development asp.net
Member Avatar for pritesh2010
0
122
Member Avatar for PutingPanday

please help with my project here it goes... I want the every text in my label to be different color example label text is Visual the color of V is black and the rest will be red and if I press the key i the letter i will be black...

Software Development vb.net
Member Avatar for codeorder
0
325
Member Avatar for jman2011

I am new in programming. I have this problem in coding. i somehow have the idea but i could not simply do it in codes. can anyone add to complete my program. The problem is I enter 10 numbers and i need to sort them ascendingly. #include<iostream> using namespace std; …

Software Development c++
Member Avatar for jman2011
0
87
Member Avatar for cdea06

What i'm trying to do is use a loop that prompts the user to re-enter a new string of numbers if what he previously entered is not within the specified range of 1-16. What I have is not working as expected. What am I doing wrong? [CODE] /* Program assignment …

Software Development c
Member Avatar for WaltP
0
263
Member Avatar for Thermalnuke

can someone explain to me how to convert for example g = h + A[i] into an LC-2200 assembler?????

Software Development assembly
Member Avatar for Thermalnuke
0
69
Member Avatar for StickyTape

I use Visual Studio 2010 Ultimate. After fixing one of my problems, I ran into another. I have 2 files in my project named, let's say, A and B. The problem is when I try to run the code from B, VS outputs code from A. Any ideas on how …

Software Development c++ visual-studio
Member Avatar for Crosby Grant
0
2K
Member Avatar for Odanaga

Hello, everyone! I made an account on this website because I'm having trouble with a particular program. I'm supposed to be writing a Polynomial class with a linked list to hold coefficients and an integer for the degree. I keep getting a fatal error LNK1561, though, and I don't know …

Software Development c++ linked-list
Member Avatar for Odanaga
0
393
Member Avatar for freedomflyer

I think I have the logic mostly down for this part of the program. However, I am using an implementation of a header file, and in [B]BST::Insert[/B] I am handed a [B]const std::string &v[/B]. For all I know, it is doing the right job passing it off to [B]InserRecursive[/B], but …

Software Development c++
Member Avatar for freedomflyer
0
136
Member Avatar for vaironl

Hello forum, Vaironl here. I have a little problem, in a fairly big piece of code. I'm making a recipe application, which is working fine, but there is one minor error. If I minimize the screen and restore it, some of the components inside it are somehow re sizing of …

Software Development java java-swing
0
69
Member Avatar for apeiron27

hi i have this line in my code that seems to slow down as my loop progresses.. for i in range(start, end): nPack = struct.pack('<I',i) at first it takes about 0.00something second but later it starts to take like 0.12 sec. i have huge no of different start and end …

Software Development python
Member Avatar for woooee
0
347

The End.