132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for wee_shark

Hi all, I'm new to java applets. This is basically my first bigger applet. It works 100% fine when I run it in the applet viewer. As soon I start it in a web browser it stops working half way through. The code below is a short version of my …

Software Development java java-swing web-browser
Member Avatar for wee_shark
0
97
Member Avatar for Myko17

Hey guys, Just trying different little programs. I was looking though a book on Visual Basic .Net and came across a little password-protection program (A very simple one). Problem is, that this was written for VB6, not the 2008 version, so i did a little editing as shown below: [CODE] …

Software Development vb.net visual-basic
Member Avatar for apegram
0
98
Member Avatar for dalymiddleboro

/** * Simple math application using a scanner input * @version 1.00 2010/1/26 */ import java.util.*; import java.text.*; import java.io.*; public class mathopr { public static void main(String[] args) { double num1,answer1,answer2,answer3=0; String myname; String reply; char replyChar=; Scanner input = new Scanner(System.in); DecimalFormat df= new DecimalFormat("00.00"); while (replyChar=='y'){ System.out.println("Please …

Software Development java
Member Avatar for AndreiDMS
0
87
Member Avatar for Dimitar

I think I have a good starting point on this, but I still need some help :) First I need to ask the user for the limits of integration and the error tolerance, (that's already done). So when I divide the trapezoid (when the end points are connected) in 2, …

Software Development c++
Member Avatar for nezachem
0
163
Member Avatar for Chetan_

I have to give this in around 10 hours and i still have lots to do. Please report any bugs; Its a scientific calculator, also supports [B]sin, cos,tan and log [/B] Take care to [B]put the entire expression under brackets[/B] For example, a valid input will be:- (5+4*-3+sin(43+7)+cos(90/2)) I've attached …

Software Development c++
Member Avatar for Chetan_
0
205
Member Avatar for techno_weenie

Hello i need some help with parsing a string as i'm very new to C and only started learning it a few days ago. I wish to parse the string "Jan 15 05:46:07 gateway kernel: IN=eth0 OUT= MAC=00:80:c7:c3:c7:be:08:00:03:23:2a:a8:08:00 SRC=80.232.253.76 DST=80.234.144.54 LEN=48 TOS=0x00 PREC=0x00 TTL=108 ID=43600 DF PROTO=TCP SPT=3329 DPT=135 WINDOW=16384 …

Software Development c file-stream
Member Avatar for techno_weenie
0
152
Member Avatar for Monster Killer

i am trying to make a quiz using Visual c++ I am trying to make it so that each tab has a different question and when you press a button it goes to the next tab. Is there a way to do this? If not is there another way i …

Software Development c++
Member Avatar for Monster Killer
0
134
Member Avatar for doha786

hi, i m facing a small prob in GUI, need to save my output to a particular folder. below this code showing the square of any integer in TextField named: "resultField". i've a button "save" that need to save the result from that TextField, suppose in my "c:\Repository " folder …

Software Development gui java
Member Avatar for BestJewSinceJC
0
156
Member Avatar for bharatk

Hello I have created a multidimensional list in python I used the following code: [CODE] r =[(300, 4), (5, 6), (100, 2)][/CODE] I tried sorting it in ascending order using r.sort() and I get [(5, 6), (100, 2), (300, 4)] I want it to get sorted based on each on …

Software Development python
Member Avatar for bharatk
0
100
Member Avatar for blue:

[code] #include <iostream.h> #include <fstream.h> #include <math.h> void main () { cout<<"**********************welcom*******************"; float n,j,q,d,h,t,i,m,f,b,v; cout<<"\n num of eng = "; cin >> j; n=j ; q=0; d=0; h=0; t=0; v =0 ; for (i=1;i<=n;i++) { v = i; cout<<"\n\n ** Engineer ID "<<v; cout<< "\n\n insert Salary = "; cin>> …

Software Development c++
Member Avatar for blue:
0
117
Member Avatar for amlanjyoti.s

Hi there again, looks like I ran into trouble again. Well, programming doesn't look simple to me. What I want to know is how do I invoke an executable file from a c# application? Are the procedures same in both console applications and windows application?

Software Development c#
Member Avatar for amlanjyoti.s
0
488
Member Avatar for jlego

Not sure if anyone has experiance with Active Reports In vb6, i used acive reports 2.0 and used a simple ado connector with dsn - user - pass to connect to a database and pull the data needed. Active reports 6 seems to be different and i am having problems …

Software Development asp.net vb.net
Member Avatar for scottwilleke
0
227
Member Avatar for shaider6192

help.. my program closes everytime i run the combination calculator..

Software Development c
Member Avatar for shaider6192
0
87
Member Avatar for daviddoria

I want to make a type to differentiate degrees and radians. I wanted something like this to produce a compiler error: [code] #include <iostream> typedef double Degree; typedef double Radian; void MyFunction(Radian angle); int main() { Degree foo = 3.0; return 0; } void MyFunction(Radian angle) { std::cout << "Success." …

Software Development c++
Member Avatar for Narue
0
109
Member Avatar for youngwolf0

I'm fairley new to programming in general being a fresh IT graduate. Some software I am developing needs to be able to compress a folder in to a .zip file and later extract it while maintaining its file structure. I am able to do this but extracting the file takes …

Software Development java
Member Avatar for ~s.o.s~
0
187
Member Avatar for chern4ever

[CODE]import javax.swing.JOptionPane; public class test{ public static void main(String args[]){ String numT = JOptionPane.showInputDialog(null,"Please enter a value."); double num1 = Double.parseDouble(numT); System.out.println("Fahrenheite = "+num1+"\nCelcius = "+convertFtoC( num1 )); } public static double convertFtoC ( double num1 ){ return ((5/9)*(num1-32)); } }[/CODE] why the value return is zero? hrm... can anyone …

Software Development java java-swing
Member Avatar for fardoonmuhafiz
0
177
Member Avatar for guravharsha

Hi everyone I have one we application developed using java,servlet and jsp. i am running it using Apache tomcat server 5.5. When i am running it on my local machine, i am given path as [B][url]http://localhost:8080/student/[/url][/B] where as student is name of application. Now if i require run same application …

Software Development apache java java-jsp
Member Avatar for jwenting
0
113
Member Avatar for #define

hello every body! i have very simple question, i google it alot but i didn't find the satisfactory answer my question is what is the reason that [B][I][U]int, float,char,double,boo[/U][/I][/B]l are of [B][I][U]4,4,1,8,1[/U][/I][/B] byte respectively in C++? are [B][I][U]arrays built in[/U][/I][/B]? if yes then kindly explain......thnx alot

Software Development c++
Member Avatar for Narue
0
110
Member Avatar for fuggles

Does anyone know of a good tutorial on how to send data through a USB port? I've lately been trying to link my programming skills with my electronics skills. Thanks for your help. :)

Software Development c++
Member Avatar for Salem
0
87
Member Avatar for phpangel

hi guyz i need ur help, i have this game with 5 files: 2 header files 3 cpp source files, we i compile it i get this error: error C2065: 'i' : undeclared identifier plz check the attachment, the files are there appreciate the answer :).

Software Development c++
Member Avatar for tux4life
0
958
Member Avatar for shaider6192

hello! Im making a program that makes the numbers you input be divided into diffrent denominations which is in peso. example: i input: 1500 so the output will be BILL QTY 1000 1 500 1 my problem is, after it displays the output, I want the program to ask you …

Software Development c
Member Avatar for Narue
0
309
Member Avatar for youngwolf0

I'm fairley new to programming in general being a fresh IT graduate. Some software I am developing needs to be able to compress a folder in to a .zip file and later extract it while maintaining its file structure. I am able to do this but extracting the file takes …

Software Development java
Member Avatar for youngwolf0
0
159
Member Avatar for Izarian

Okay, so C++ has no specific byte class, but what they do have is an unsigned char class to convert ints/doubles/floats to binary/bytes. In trying to convert some Java to C++, I am trying to keep some of the function signatures the same or close to the same, and in …

Software Development c++
Member Avatar for Salem
0
280
Member Avatar for sexyzebra19

I've just read up about pointers, so wanted to see if I can try and use them in my program. I have the function "equation", which at present is t^2. I also have the function "gauss", in which I am going to use the equation t^2, (code for this is …

Software Development c++
Member Avatar for sexyzebra19
0
96
Member Avatar for Monster Killer

I am trying to create a button that turns off a panel but when i debug it i get 'error C2064: term does not evaluate to a function taking 1 arguments' [CODE] private: System::Void go_MouseClick(System::Object^ sender, System::Windows::Forms::MouseEventArgs^ e) { this->panel1->Visible(false); this->panel1->Enabled(false); }[/CODE] I would really appreciate some help. Thanks

Software Development c++
Member Avatar for Monster Killer
0
100
Member Avatar for emompong

Hi! I am planning to create a system for my case study wherein i can Add tags from images and search for it by [B]"tags"[/B] such as [B]photobucket. [/B] For example i open an image to my system, and it's file name was [B]"WhiteHouse.jpg"[/B] and i added or[B] tagged[/B] it …

Software Development image vb.net
Member Avatar for emompong
0
139
Member Avatar for hpdp

Hi, I have the following XML <ext-link xlink:href="http://....com">www....com</ext-link> in my xslt, when I have ... <ext-link xlink:href="{@xlink:href}"> .... When I ran it, it gave me error " namesapce error : namespace prefix xlink for href on ext-link is not defined. I tried to use "xlink\:href", it didn't work. How to …

Software Development xml
Member Avatar for hpdp
0
105
Member Avatar for NicholasE

Dear all, I would like to make a small script that does the following: I have a file that at some point there is a section: ... ... a heading is here .... 1 2 3 4 5 6 7 8 9 10 22 22 336 11252 12 25 3 …

Software Development python
Member Avatar for NicholasE
0
96
Member Avatar for denniskhor

I tried below code... it's doesn't work as well... any got solution for this? Thanks. [CODE]using (OleDbConnection con = new OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\"" + fileName + "\";Extended Properties=Excel 8.0;"))[/CODE]

Software Development c# sql
Member Avatar for denniskhor
0
584
Member Avatar for shaider6192

HI! can someone help me get the codes for this program.. Im still new to TC.. heres the criteria: 1. This program is for selling bread 2.There are 4 types of bread namely a b c d and each cost 1 2 3 4 respectively 3.each bread has a stock …

Software Development c
Member Avatar for shaider6192
0
137
Member Avatar for Skeen

So I'm working on this game, and I've been using "glaux.h" to load my textures, however I'm interrested in using JPEG's, so I found an example to do this on: [url]www.morrowland.com[/url], however, when I compile it (after fixing the errors), then I get this, on the linking state, any help …

Software Development c++
Member Avatar for Skeen
0
109
Member Avatar for InnocentVamp

Hello folks, I have some doubt regarding the creation of header files and libraries using C. Suppose I am defining all the functionalities related to the Stack and I wan to create it as library, for eg. stack.C which will get me the object file, Stack.o in Linux OS and …

Software Development c
Member Avatar for Narue
0
172
Member Avatar for hanhhanh23

I have to do my project in computing which requires extract data from excel to VB for further processes. I am a beginner. I know a little bit about VB and Pascal. Thank a lot

Software Development pascal vb.net
Member Avatar for hanhhanh23
0
32
Member Avatar for MxDev

Hi guys, How to show certain files according the selected extension in openFileDialog() object??? Thanks [EL-Prince]

Software Development
Member Avatar for Kiran.dks
0
185
Member Avatar for webdragon89

I have n!/((n-r)!r!) which I figured out how to make recursive: [CODE]int crn (int n, int r) { if (r==0||r==n) return 1; return (n-1)+(n-1,r-1); }[/CODE] how do I make it non-recursive?

Software Development c++
Member Avatar for Agni
0
121
Member Avatar for Stefano Mtangoo

This is not seek for IDE thread but rather want just to know your beloved IDE. For Me, up to recently I used Eclipse but now I'm trying IntelliJ Idea community. Not very used to it but looks promising. What about you friend?

Software Development ide java
Member Avatar for jwenting
0
151
Member Avatar for NickRx

Hey, I'm new to programming in C++ So I just got done writing this and everything seems fine to me, but I got an errors. I've had many problems with compilers in the past, but I'm not sure if this is from the code or the compiler. If it helps …

Software Development c++
Member Avatar for Nick Evan
0
113
Member Avatar for GeekByChoiCe

I have created a CustonControl (NOT a usercontrol) and defined a DependencyProperty as following: [CODE=vb] Public Shared ReadOnly HelpBrushProperty As DependencyProperty = DependencyProperty.Register("HelpBrush", GetType(String), GetType(ComboBox_with_helpBrush), New UIPropertyMetadata("Select..."), New ValidateValueCallback(AddressOf StringProp_Validate)) Public Property HelpBrush() As String Get Return DirectCast(GetValue(HelpBrushProperty), String) End Get Set(ByVal value As String) SetValue(HelpBrushProperty, value) RaiseEvent PropertyChanged(Me, New …

Software Development vb.net
Member Avatar for GeekByChoiCe
0
124
Member Avatar for makdu

Hi , i am creating a consol application. In this, when ever an error comes, i neeed to pop up a message. So i used messagebxo.show. For this i have added [B][COLOR="Green"][COLOR="green"][COLOR="green"][COLOR="Red"]using System.Windows.Forms;[/COLOR][/COLOR][/COLOR][/COLOR][/B]. but i am geting the follwing error. I have made the output type for the application as …

Software Development assembly
Member Avatar for vivek4020
0
119
Member Avatar for vegaseat

A lotto simulator with a twist, you pick the winning numbers and the computer buys the lotto tickets. Anyway, the computer at least generates the tickets and checks how many of them would match the winning numbers you selected. Let's assume you would be the state lotto commissioner and your …

Software Development python
Member Avatar for lyndon enero
0
7K
Member Avatar for Dashien

Hey all; I had a serious problem occur; after compiling and programming something in python for months, my computer crashed, and the 3 back ups I had of the program crashed within 24 hours after mine, so I lost ALL DATA. The only data I have is the exe program …

Software Development python
Member Avatar for vegaseat
0
133
Member Avatar for rashu007

Hello. I am not getting the right idea to the oracle table in the list box so can anyone please tell me how can i list the oracle sql plus table's column in the listbox. Thanks in Advance.

Software Development oracle sql visual-basic
Member Avatar for debasisdas
0
218
Member Avatar for sidra 100

plz chk my code its giving error at line 45,49.also does it satisfies the requirement Problem Statement: Suppose we have a class named as Train it has two constructors, two methods, and a single attribute each of which described as follows:· One attribute:maxSpeed – an int value representing the maximum …

Software Development c++
Member Avatar for sidra 100
0
127
Member Avatar for jemz

hello please help me..can you give some idea on how to declare variables in local....and also how to declare variables in public...hoping for your positive responds

Software Development visual-basic
Member Avatar for codefixer
0
112
Member Avatar for notsogood

Hi everyone, I am writing an[URL="http://www.8puzzle.com/8_puzzle_problem.html"] 8-puzzle Problem[/URL] Solving Program that utilizes the [URL="http://en.wikipedia.org/wiki/A*_search_algorithm"]A* (A Star) search algorithm[/URL]. I've come this far in completing the desired program, and somehow summed up to this: (entire source code posted below). But I can't compile it just yet due to this builder error: …

Software Development algorithm c++ ide puzzle
Member Avatar for thomas_naveen
0
131
Member Avatar for RahulV

[INDENT][B][COLOR="Red"]URGENT[/COLOR][/B][/INDENT] Hi FRIENDS, Pls help me with this. I need to display a form/dialog with any grid which contains only checkboxes in the first column and data in the other two columns. And my goal is to retrieve ONLY the data from the columns where the checkboxes are checked. pls …

Software Development sql visual-basic
Member Avatar for QVeen72
0
762
Member Avatar for ankush.mukherje

I have a list box in my vb form. The list box is dynamically filled with components from my ms-access table. Now the user can select one, two or many options. For example: The list box has many softwares. 1. If user selects Windows XP and Office 2007 then those …

Software Development sql visual-basic
Member Avatar for ankush.mukherje
0
512
Member Avatar for asa88

i need to write a class for driver.cpp file [CODE] // Chapter 13, Programming Challenge 3 Driver // #include "Car.h" #include <iostream> #include <string> using namespace std; int main() { // Loop counter int count; string myMake="Porsche"; // Create a car object. Car porsche(2006, myMake); // Display the car that …

Software Development c++ visual-studio
Member Avatar for asa88
0
138
Member Avatar for noey699

Everything compiles fine but it does not identify a straight. It will find straight flush though. A hand consists of 5 objects of the class CARDS which has 3 int variables(Value, Suit, Position). When I send a straight through it it goes all the way through to else and returns …

Software Development c++
Member Avatar for noey699
0
154
Member Avatar for The-IT

Hello, I decided I want to make a game where you have to move a ball through a maze and make it to the end without hitting any walls, some of which are invisible!! The game is extremely far from completion, and will be until I learn how to overcome …

Software Development python
Member Avatar for The-IT
0
101

The End.