132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jhellr13

Hey guys, Working on a project to calculate the standard deviation of an array. Instructions call for a program that will allow the user to enter a list of test scores with 999 as a sentinel value. Then a method calcStDev is invoked with the scores array as a parameter …

Software Development java
Member Avatar for NormR1
0
366
Member Avatar for STiwari0130

I'm new to C#. Trying to learn and implement an RFID application. I'm reading a RFID using serial port and the data is available in rtbDisplay. 11 01 B0 00 01 03 01 E0 04 01 00 0C E0 10 88 7B 61 How do I extract certain data (RFID …

Software Development c c# c++
Member Avatar for STiwari0130
0
313
Member Avatar for SimpleMan78

I've used SQL authentication and windows authentication in my connection strings to SQL server just fine. I've got a login form that the user has to put their username/password in and it verifies to AD to ensure that is who it is and then logs in. Currently it is set …

Software Development sql vb.net
Member Avatar for SimpleMan78
0
120
Member Avatar for karthik.datt

I need to split the below string: line.long 0x0 " MIDR, Identity Code Register" I have used space , as the delimiters. the code should give output in such a way that Command Name: line Size: long Offset : 0x0 short name: MIDR Long name=Identity code register. The problem is …

Software Development java
Member Avatar for stultuske
0
142
Member Avatar for nuclear

I'm using SDL to make a game and I'm using frame independent movement, everything works fine with no gravity or acceleration: [CODE]boxOffsetY += yVel * ( DELTA.get_ticks() / 1000.f );[/CODE] The box moves accordingly, no matter what frame rate i use. But when i try to add gravity: [CODE]yVel += …

Software Development c++
Member Avatar for mike_2000_17
0
152
Member Avatar for bildersturmer

Hello, everyone, I'm new to wxPython I want to write a small program that link the menu in one frame with another frame that I created after. I've tried to use like EVT_BUTTON, but it won't work. How am I supposed to do this? Thx for any help

Software Development python
Member Avatar for vegaseat
0
105
Member Avatar for programing

in this code i have logical error its give me wrong output [CODE]import java.util.Scanner; public class OneFile { static final int MAX = 100; static final int READ = 10, WRITE = 11, LOAD = 20, STORE = 21; static final int ADD = 30, SUBTRACT = 31, MULTIPLY = …

Software Development java
Member Avatar for NormR1
0
178
Member Avatar for jhellr13

I have to do this project for school that finds the Standard Deviation. The first part of it, which has to build an array from scanner with a while loop, has been killing me today. The problem is that my teacher wants a program that will allow a user to …

Software Development java
Member Avatar for NormR1
0
1K
Member Avatar for lxXTaCoXxl

I'm developing a calculator, it will give all of the functionality of calc.exe; however it will have a few of my own adjustments that I use constantly and have to do on paper or with different methods on calc. I need help with subtraction, multiplication, and division the most. I'm …

Software Development
Member Avatar for lxXTaCoXxl
0
245
Member Avatar for RLS0812

While correcting errors in someone else's code, I decided to completely rewrite the original script, and improve upon it. This is the basic code for making 3D arrays using dictionaries. [code] ar = { (x,y,z):0 # creating the array for x in range(3) for y in range (3) for z …

Software Development python
Member Avatar for vegaseat
0
270
Member Avatar for sergent

I know that by default member functions of a class are inlined [CODE] class d { public: int a() { return 1545435; } }; [/CODE] And I also know that it's not allowed to declare functions in headers unless they are inlined. Is there a way to declare a function …

Software Development c++
Member Avatar for mike_2000_17
0
220
Member Avatar for SeniorAlexandro

Alright, I have Textbox where I want only Numbers and Letters and backspace allowed. I don't want copy and paste, or spacebar or other ascii charachters. Can anybody help me?

Software Development visual-basic
Member Avatar for SeniorAlexandro
0
333
Member Avatar for sun_2588

I am working on the Tkinter.......i need progress bar in determinate mode........ can some one please give simple example of it, i m getting confuse in start, stop and step method of the progress bar Thanks a lot....;

Software Development python tkinter
Member Avatar for Ismatus3
0
4K
Member Avatar for Kristo.lane

Hi guys, I have written a program that writes a .csv file readable in Microsoft excel. Is there a way I can launch the file with Microsoft excel once I compile and run the program? [CODE] #include <iostream> #include <cstdlib> #include <fstream> #include <cmath> using namespace std; int main() { …

Software Development c++ file-system ios microsoft
Member Avatar for Kristo.lane
0
270
Member Avatar for Skretch

Trying to add a key keylistener to a program i am making but it wont work. cant find the reason :/ any help would be awesome:) Display.class [CODE]package com.mono.main; import java.awt.Graphics; import java.awt.Graphics2D; import javax.swing.JFrame; import javax.swing.JPanel; import com.mono.main.handler.Controller; import com.mono.main.handler.Game; import com.mono.main.handler.InputHandler; public class Display extends JPanel implements Runnable …

Software Development java java-swing
Member Avatar for Skretch
0
352
Member Avatar for Despairy

I cant seem to find anything useful on the web except adding outside libraries for this one help is required. I wrote a program that you can say builds a database of users and their passwords. the program loads the users from an existing file already into a hashtable. now …

Software Development c++
Member Avatar for Caligulaminus
0
942
Member Avatar for dennysimon

hello all how to make window's short cut that call command line: java javaclassname.java thank you denny

Software Development java
Member Avatar for NormR1
0
202
Member Avatar for Wouto1997

[b]C# text encoder / decoder[/b] [i][u]Please note that I'm not a professional developer and I might make simple mistakes because of that, I'm also dutch, and 14 years old, so please keep that in mind before you reply. thank you C:[/i][/u] My brother came up with an idea to encode …

Software Development
Member Avatar for Narue
0
527
Member Avatar for Dorar

[B]My project is Housing reservation system for University I design the interfaces by VB and connect to my oracle data base account Oracle 11g, VB express edition are used The proble is with the login form [URL="http://im20.gulfup.com/2011-12-23/1324652639153.png"]http://im20.gulfup.com/2011-12-23/1324652639153.png[/URL] when I debug and enter the ID & password for User : according …

Software Development open-source oracle visual-basic
Member Avatar for dspnhn
0
513
Member Avatar for mynamewontfitin

Hey - Sorry if this is an irritatingly simple problem, but I'm a newbie to the Java language and I can't see where I'm going wrong with this. I get an error with my code when trying to define 'label3' - "cannot find symbol - class Jlabel". It seems to …

Software Development java java-swing window-manager
Member Avatar for mynamewontfitin
0
2K
Member Avatar for dynw

hi can someone help me to make a calculator as required? Create class Calculator. This class must contain the following features: constant PI constructor that accepts two integers, operand1 and operand2 method for writing values ​​and operand2 operand1 methods for calculating the four operations - addition, subtraction, division and multiplication …

Software Development c#
Member Avatar for mohamed.farag
0
229
Member Avatar for varun45

I am having difficulties with placing images on Buttons using Java Swing. I have placed all images in a package named icon. The frame is loading as well as the buttons. I cant seem to get the images on the buttons. Can anyone point out my mistake please. [CODE]public Launch(){ …

Software Development java java-swing
Member Avatar for varun45
0
990
Member Avatar for pushpap7

//create the images folder and past all images into that u want to display... import java.awt.Color; import java.awt.Dimension; import javax.swing.ImageIcon; import javax.swing.JFileChooser; import javax.swing.JFrame; import javax.swing.JLabel; import javax.swing.JPanel; import javax.swing.SwingConstants; class my { public static void main(String args[]) { JFrame f=new JFrame("Web layout..."); ImageIcon pic1 = new ImageIcon ("images/3d.png"); ImageIcon …

Software Development display java java-swing
Member Avatar for JamesCherrill
0
4K
Member Avatar for terence193

I am trying to store data from two variables in a text file .. and then try to get the data back and output it on screen but somehow the following program is not working as supposed to be. I first enter data in the two variables n1 and n2 …

Software Development c
Member Avatar for zeroliken
0
94
Member Avatar for squares86

I an a newbie to assembly language, been reading jeff duntemann's book, and I have been trying to write some code by myself too. There is an example in the book on converting binary values to hex values. I decided to re-write the code again by myself for self-practice but …

Software Development assembly
Member Avatar for squares86
0
163
Member Avatar for aldeene

my program freezes when I put this code on a button, but when I put it in the main it doesn't what could be the problem? protected void EstablishClient() { try { skt = new Socket("some.ip.of.me", 4444); out = new PrintWriter(skt.getOutputStream(), true); in = new BufferedReader(new InputStreamReader(skt.getInputStream())); txtRecvd.append("Received string: '" …

Software Development java
Member Avatar for aldeene
0
113
Member Avatar for nHulk

I am trying to import all the classes present in a user defined package, by using the statement as import mypack.*; but it's not working in my program. [B][B]Its Giving error : C:\Users\Nitin\java>javac AOTest.java AOTest.java:6: cannot access AOperation bad class file: .\AOperation.java file does not contain class AOperation Please remove …

Software Development java
Member Avatar for nHulk
0
203
Member Avatar for adnysam
Member Avatar for adnysam
0
167
Member Avatar for mnNewbie

I need to basically rewrite grep command: method is suppose to take an exact string and an exact filename as the 2 arguments grep<string><filename> then it has to search through the file for the string and print out the "line" and the "line number" the string is in. example #grep …

Software Development c file-system seo
Member Avatar for WaltP
0
290
Member Avatar for Dmiller071

The title says it all. Basically what I'd like to do is have a JComboBox drop down with a list of items. When the user clicks on that item it will redirect them, or open a new browser tab, of the url to that specific item. Quick example (these sites …

Software Development apple java
Member Avatar for Dmiller071
0
178
Member Avatar for tejaspandey

[CODE] #include <stdio.h> #include <stdlib.h> int main() { FILE *fp; char ch; fp=fopen("exp.txt","w"); while( (ch=getchar()) !=EOF) { putc(ch,fp); } fclose(fp); return 0; } [/CODE] I am using gcc compiler in linux mint This code is not working only exp.txt is created which is empty.

Software Development c file-system
Member Avatar for Gaiety
0
148
Member Avatar for fusionking

I am writing a C# program that reads in a text file of a list of events followed by a date and time, delimited by a comma and prints it out to a textbox along with how much time is left till that date and time happens. It must read …

Software Development c#
Member Avatar for BhuvanRam
0
348
Member Avatar for jhellr13

Hey guys I have to write this program for AP Computer Science. It involves writing a main where it brings in a txt file with values, and reads all of them. Eventually, I have to modify it to read the values in to an array. Right now, I can't get …

Software Development file-system java
Member Avatar for Trentacle
0
161
Member Avatar for sasho648

And the question is - how to include a window inside the window? I want to include at my main window with options and buttons one other with Direct3d graphics on another thread.

Software Development api c++
Member Avatar for sasho648
0
137
Member Avatar for kshahnazari

I am new to c# so please don't laugh at me :icon_biggrin: i have a database called database1 in my program , when i create a setup file and lunch it in another computer because the database isn't attached i will get many errors , how can i attach it …

Software Development sql
Member Avatar for hericles
0
94
Member Avatar for ThomsonGB

////////////////////////////////////////////////////////////////////////////////// // Now I have an idea how to get my strings from the file so that I can properly // play with them (with fstream I did not have the string "in my clutches" quite // the way I wanted it). However, now I have a problem with my …

Software Development c++
Member Avatar for ThomsonGB
0
358
Member Avatar for Morley93

Hi all, I'm a long time reader of the forums and thought this would be a good place to ask a question. For the record, I am very new to Java! Basically, I have a [I]MainClass[/I] which inherits JFrame, the constructor for which sets window size, title etc. It also …

Software Development java java-swing
Member Avatar for Morley93
0
555
Member Avatar for shwee

[code] main() { if() { if() { if() { something () /* something so that the program executes the last line means last printf without using goto ststement */ } } } printf("hello"); } [/code]

Software Development c
Member Avatar for Narue
0
165
Member Avatar for Raisefamous

Hi, I'm using Codeblocks as a compiler. So when i'm creating a new class by following File>New>Class it creates two files xxxx.h xxxx.cpp Ok, code is simple. [CODE]#include <iostream> #include "Sally.h" using namespace std; int main(){ Sally so; } [/CODE] Sally.h [CODE]#ifndef SALLY_H #define SALLY_H class Sally { public: Sally(); …

Software Development c++
Member Avatar for Raisefamous
0
223
Member Avatar for gerchi152

Hello! can you give me some ideas on how I can make the field values to field names?

Software Development vb.net
Member Avatar for adam_k
0
201
Member Avatar for puneet2

I have two For loop, first For loop does is creates a customer and input the customer info and then the second for loop within the first for loop does the follows which is capture the customer name and verify the with the data within the datatable. The problem I …

Software Development visual-basic
Member Avatar for hkdani
0
249
Member Avatar for madhub2v

hi Friends can you pl help me to create a simple snake game. give me with step by step creation. thanks.

Software Development gaming java
Member Avatar for Ezzaral
0
2K
Member Avatar for creative_m

Hi I have a class which has alot of tasks related to multiple classes. the tasks are add, modify ,delete, write on a file and read array from a file.all theses methods operates on objects of other classes as a member variables. In other words, I have to perform a …

Software Development java web-design
Member Avatar for creative_m
0
119
Member Avatar for raichand

Hi i am looking for simple intranet project in java with mysql.Can anyone post this kind of project or suggest some sites. Appreciated if u replay on this. Cheers!

Software Development java mysql
Member Avatar for Ezzaral
0
165
Member Avatar for Mudzy

I want to extend JFrame needed for my GUI program but i get this.. [URL="http://imageshack.us/photo/my-images/209/screenshot20111226at163.png/"]http://imageshack.us/photo/my-images/209/screenshot20111226at163.png/[/URL] how do i solve this?

Software Development gui java
Member Avatar for JamesCherrill
0
187
Member Avatar for Srinivas0

i am trying to write a program for friend functions but it isnt working. :( [CODE] #include <iostream> using namespace std; class Z; { private: int a; friend void fn(); }; void fn() { Z one; one.a=5; cout<<a<<endl; } int main() { fn(); return 0; }[/CODE] can someone please tell …

Software Development c++
Member Avatar for Srinivas0
0
137
Member Avatar for Chuckleluck

Alright, I decided to try ClanLib. I've been reluctant to use it, because it requires Visual C++, which is foreign to me. I usually use Code::Blocks. Anyway, I'm trying to get the hang of VC++. It seems to have a lot of features I haven't dealt with, like solutions. To …

Software Development c++
Member Avatar for Chuckleluck
0
491
Member Avatar for ohyeah

I've got a .txt file with lots of passwords in, in the following format: (passwords must be between 12-15 characters) password1 password2 password3 i want to use a text box that allows the user to enter a password & upon the correct password being entered they are allowed to proceed …

Software Development vb.net
Member Avatar for NewUserVB.Net
0
188
Member Avatar for sumit3gupta

Hi, I want to know how to make a C++ wrapper class. Ex. Plugin.hpp if i have coded for Plugin.h and Plugin.cpp

Software Development c++
Member Avatar for Mr_Null_andVoid
0
317
Member Avatar for auwi987

hi guys trouble again, i want to print year from 1980 up to 2050 using loop in richtextbox and apply newline every print. thnx in advance guys

Software Development
Member Avatar for auwi987
0
122

The End.