132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for vipin.luhach

***How To Search Value From Data Base and IF Data is Not Available then show a message "Data Is Unavilable" My Codes are as Follows :-*** private void Sf_Reg_search_ButtonActionPerformed(java.awt.event.ActionEvent evt) { String str2 = JOptionPane.showInputDialog(null, "Please Enter Staff Reg No: ","Enter Reg No For Search", 1); try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); con=DriverManager.getConnection("jdbc:odbc:HMS_DS","",""); …

Software Development java
Member Avatar for stultuske
0
219
Member Avatar for MOjo72

I am working on C++ coding for Shape.cpp and in the square I am getting scientific notation as the for the area and perimeter. Can anyone please tell me what I am doing wrong. Thank you. Here is my code #include <iostream> #include <sstream> #include <vector> #include <string> using std::ostringstream; …

Software Development c++
Member Avatar for ravenous
0
476
Member Avatar for diya45

i hve reservation form add function and add button public void addreserve() { string constring = @"Data Source=.\SQLEXPRESS;Database=htm;Integrated Security=True"; SqlConnection con = new SqlConnection(constring); con.Open(); DataTable dt = new DataTable(); SqlCommand com = new SqlCommand("insertreserveinfo", con); com.CommandType = CommandType.StoredProcedure; com.Parameters.Add(new SqlParameter("@Reservation_id", myreserv.Reservation_ID1)); com.Parameters.Add(new SqlParameter("@Guest_id", myreserv.Guest_name)); com.Parameters.Add(new SqlParameter("@Room_ID", myreserv.Room_no)); com.Parameters.Add(new SqlParameter("@Service_ID", …

Software Development open-source
Member Avatar for samsylvestertty
0
110
Member Avatar for diya45

i have a form whcih is room and in this there is when i add a data on it that is room id,room no and service type and room type then when i add the data like as room id=1 room no=2 room type=double service type=luxury then when i again …

Software Development open-source
Member Avatar for samsylvestertty
0
206
Member Avatar for Carc369

I'm used to if/else. Can someone tell me if this correct or not. It's not pulling up an error but it's not outputting what I want it to output either. Thank you! char pick; cin >> pick; if(pick == 'a' || pick == 'A') stuff inside here //For case switch... …

Software Development c++
Member Avatar for awaisahmad13
0
139
Member Avatar for vijaycare

Hi All, I would like to thank this community for the enormous help to develop my skills. Thanks. I have 2 databases and a single report form and a crystal reportviewer. The User can select the database which he want to work (Each of them belongs to different warehouse) So …

Software Development dataset microsoft-access vb.net
Member Avatar for john.knapp
0
477
Member Avatar for peepas

Windows Forms - C # I wonder edit text / numbers that I have added to a listbox. I to display the names in the listbox use this code *listBox1.DataSource = itemsfim;* To add one more name in the ListBox use: *itemsfim.Add ("Jorge - Portugal");* Now I would like to …

Software Development microsoft
Member Avatar for tinstaafl
0
206
Member Avatar for gAdIs90

#include <stdio.h> #include <string.h> struct mycar { char plate[10]; int ey,em,ed,eh,emin,qy,qm,qd,qh,qmin,wd,parked; }; struct mycar car[2]; int n; void main() { void input(); void display(); int menu(); void exit(); int op; n=0; printf(">>>>>>>>>>>>>>>>>>>>>>>>+<<<<<<<<<<<<<<<<<<<<<<<<<<<\n\n"); printf(">>>>\tCAR PARK SYSTEM MANAGEMENT SYSTEM \t<<<<"); printf("\n\n>>>>>>>>>>>>>>>>>>>>>>>>+<<<<<<<<<<<<<<<<<<<<<<<<<<<\n\n"); for(;;) { op=menu(); //printf("op=%d"); if(op==0)break; switch(op) { case 1: input();break; case …

Software Development c
0
78
Member Avatar for sheila.younkin.1

I am trying to write a program that reads words from files and then puts them into arrays and then does a count on certain words. I have moved stuff around and really I am not sure that I am even on the right track. Could someone please look at …

Software Development c++
Member Avatar for rubberman
0
291
Member Avatar for chdboy

Hi I'm using a simple insert statemnt in from two textfield into my database using this code Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click If (TextBox1.Text.Trim = "") Then MessageBox.Show("PLEASE DO NOT USE BLANK SPACES", "Data Entry Error") ElseIf (TextBox2.Text.Trim = "") Then MessageBox.Show("PLEASE DO …

Software Development open-source vb.net visual-studio
Member Avatar for Reverend Jim
0
859
Member Avatar for dsplayer14

I am reading a doc I found online about Perl, I am learning it for a project, and I was studying code that converts currency. The code: #!/usr/bin/perl use warnings; use strict; my ($number_to_convert, $first_currency, $second_currency, $rate, %rates); %rates = ( pounds => 1, dollars => 1.6, marks => 3.0, …

Software Development perl
Member Avatar for dsplayer14
0
164
Member Avatar for it@61@sec

I have a bash script (test.sh) which reads parameters from the command line. The parameters could look like this: param1 param2 param3&ext param4 param5 The problem is that when the script reads the parameters and then echo them I get the following: param1 param2 param3 No command 'ext' found did …

Software Development shell-scripting
Member Avatar for it@61@sec
0
970
Member Avatar for Depreciated

So you have finished a system after a significant amount of time. Everything seems to be in place. You have the queries for database and normalized the database. The system is probably bug-free(maybe for now). The design is neat and not confusing which can give the "user-friendly" touch. Everything seems …

Member Avatar for rubberman
0
187
Member Avatar for rocksoad23

Hello guys! I'm a beginner in C++ programming and I've a (stupid, I think) doubt about how to pass an object's class into another class. Suppose we have these two classes: class A {...} class B {...} and I want to use an object from A into B. For example: …

Software Development c++
Member Avatar for rubberman
0
319
Member Avatar for mIND.dEcEpToR

this is a very very basic question but while coding i got stuck. in c++ we use the statement: if (back_tracking(0, y + 1)) to check some condition but while coding in c# it says cannot convert implicitely int to bool! anybody kindly tell me whats the workaround in c#

Software Development c#
Member Avatar for Momerath
0
156
Member Avatar for hustk53

Hi Everyone ! I am newbie in C# and i have problem when start new project. My project include : One mainform and two child form ( Assetform and Loginform) and in Asset form i have a button call " Remove". here is some describe of how my program work …

Software Development
Member Avatar for tinstaafl
0
174
Member Avatar for visweswaran28

Hi, <DIV style="POSITION: absolute; TEXT-ALIGN: center; FONT-STYLE: normal; WIDTH: 141px; FONT-FAMILY: Arial; WHITE-SPACE: nowrap; HEIGHT: 76px; FONT-SIZE: 12pt; TOP: 268px; FONT-WEIGHT: 400; TEXT-DECORATION: none; ctrlProp="acknowledged:true;showDisableIcon:True;showTooltip:True;sizeableIcon:True;"></DIV> Consider the above string, Now I want to know the value of sizeableIcon (Either true/false),showDisableIcon (either true /false). Is there any way to pick those …

Software Development
Member Avatar for tinstaafl
0
171
Member Avatar for Sasquadge

So I need a little help on this, What this program is supposed to do is have the user input there checkbook.txt into the program which looks like this deposit:July 7:-:300 416:July 8:Albertsons:15.85 417:7/9:Checker Auto:19.95 418:7/10:Super Target:47.50 419:Dec 5:Home Depot:47.89 Once the users enters there data into the program it …

Software Development c++
Member Avatar for Super_android
0
174
Member Avatar for Nina 4 Ever

i need to perform port forwarding in a desktop application written in C#. i used this code : using System; using System.Threading; using NATUPNPLib; namespace iSpyApplication { public static class NATControl { public static UPnPNAT NAT = new UPnPNAT(); private static IStaticPortMappingCollection _mappings; public static IStaticPortMappingCollection Mappings { get { …

Software Development c# http-protocol
Member Avatar for TnTinMN
0
1K
Member Avatar for wannafzan

This is my assignment. I've done it 36 hours straight and I can't think properly so my program looks like kindergarden kid's program. Basically, we have to do a GUI for Pizza ordering. Everything works except for the amount. The output for amount is "0.00". I have to send it …

Software Development gui java java-swing
Member Avatar for wannafzan
0
2K
Member Avatar for zuni786

Hi First of all i would like to say is, i am a fresher to this vb.net.. having one project in hand. But as i dont know the code for using a datagridview i am asking your help. In my sqlserver table "EmployeeDetails" we have so many columns. In that …

Software Development sql vb.net
0
149
Member Avatar for arcticman452

I have a program that figures out what the total cost for gas is on trip. I now have another piece made where you enter the trip data to save it to a file. How do I make the main program call this new window so the user can enter …

Software Development java
Member Avatar for arcticman452
0
130
Member Avatar for chocolatesky

Hello, I have a homework assignment due for my Intro to Programming class, I have no idea what I am doing and wanted some help. I complete it in RAPTOR and generated the C++ code from there, but my professor doesnt want us to do it like that, he wants …

Software Development c c# c++
Member Avatar for chocolatesky
0
139
Member Avatar for jpreem

So Im using our university servers through an ssh connection. I have a bunch of files in a directory which I would like to run through a perl script. So I thought this simple script I concocted should do the trick. I have used similar script on my home computer …

Software Development perl shell-scripting
Member Avatar for jpreem
0
334
Member Avatar for danthegreat

#include <iostream> using namespace std; class Burger { private: double patty; double bun; double cheese; public: Burger(); double getPatty(); double getBun(); double getCheese(); void setPatty(double p); void setBun(double b); void setCheese(double c); double hamburgerCalc(Burger b); double cheeseburgerCalc(Burger b); double dcheeseburgerCalc(Burger b); }; double Burger::hamburgerCalc(Burger b) { double bun = b.getBun(); …

Software Development c++
Member Avatar for danthegreat
0
2K
Member Avatar for dangkhoaddt

I want find size of array by pointer in a function.example : //char array[] is a random array,i can alloc dynamic,so i can know size,i want access a random possition in array. char* pointer; void myfunc (char * array) { pointer = array; //how many elements in the array??? } …

Software Development c
Member Avatar for dangkhoaddt
0
202
Member Avatar for meenal9

I am confused "HOW to make a series of numbers in reverse orDer In java" I got the basic idea but i cannot join them together ...in this program compUtter Will identify weather input is binary or decimal .i am unable to make computer identify numbers in.please help wit Java …

Software Development java
Member Avatar for meenal9
0
288
Member Avatar for riotburn

I have the below class that yields this error for the lines I commented. The error I get is ISO C++ forbids taking the address of an unqualified or parenthesized non-static member function to form a pointer to member function. Say ‘&FD_Euro_Put::f’ The signature for Forward Euler is: Eigen::MatrixXd B::Forward_Euler(double …

Software Development c++
Member Avatar for rafea fheely
0
312
Member Avatar for CHOCHOCHO

I just started to learning how to use classes and specification files. For some reason i keep getting an error saying `length' undeclared (first use this function) #include <iostream> #include <fstream> #include <string> #include <cctype> using namespace std; const int MAXSIZE = 50; typedef string ItemType; class List { public: …

Software Development c++
Member Avatar for ravenous
0
158
Member Avatar for Magda6347

Dec 7, 2012 at 11:18pm Im trying to create a bank account. In the bank account the user creates an account and puts whatever amount they want to open account. after account is created they can go to withdraw or deposit and add or subtract additional monty from the account. …

Software Development c++ visual-studio
Member Avatar for ravenous
0
124
Member Avatar for silversurf

Hello, I am trying to build a pos and inventory system in vb 6.0 with MS-Access database. I do not have much experties in vb 6. Ok here is the question now, I want to build a report like income statement. I have two tables with name tblsales and tblexpense, …

Software Development visual-basic
Member Avatar for silversurf
0
363
Member Avatar for nah094020

Ok final project of semester is to make a maze with gui , i started with the disjoint class already but am a bit confused on how the walls or cells will work with disjoint sets, has in how do i go about creating them will this work? , my …

Software Development gui java
Member Avatar for JamesCherrill
0
683
Member Avatar for shahai.ali

hi i have the following problem after importing databse in c#. i have import a mdf database in C#. but it has exception after pressing `F5` for debugging. `A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. …

Software Development mysql
Member Avatar for shahai.ali
0
94
Member Avatar for moone009

I found this example online and cannot figure out why it will not work. I was wondering if anyone could help me figure out why this code does not work ive spend a few hours tinkering with it and no luck. I learn best by example and just basically need …

Software Development html-css java javascript vb.net
0
124
Member Avatar for javaprog200

Hello, I have a class (Buttons.java) which inherits from JButton and implements the ActionListener interface. The second file (ButtonsTest.java) creates a GridLayout of Buttons and adds them to the applet. The issue I am having is when I click on any of these buttons, the event is not registered. I …

Software Development java java-swing
Member Avatar for JamesCherrill
0
268
Member Avatar for tony75

Hi I would like to write program that calculate the sum of all integers from a minimum number up to the maximum number.by using the following formula? sum = 1/2 * number of integer * (minimum numbers + maximum number) How can I do it?

Software Development c c# c++
Member Avatar for rotten69
0
544
Member Avatar for Prysm[VA]

Alright guys, I've been looking at this on google and I can't seem to find an answer. Any help is definitely appreciated! Here is the code, then I will explain my problem. void printMenu() { cout<<"||============================||"<<endl; cout<<"||=========Main Menu==========||"<<endl; cout<<"||===1.Begin DNA Creation"; cout<<"||===2.Load the Files"; if(!dna1[].strand1){ cout<<"<0>";} else{ cout<<"<"<<sizeof(dna1.strand1)<<">";} cout<<endl; cout<<"=========||"<<endl; …

Software Development c++ programming-construct
Member Avatar for Prysm[VA]
0
460
Member Avatar for Darth Vader

Hello, I wonder if there is any faster method to find an index of an occurence within a string? The .IndexOf method in the below test, takes approx: 1050 milliseconds. Why this is interesting is that I have code that uses .IndexOf on perheps 100 places and have loops that …

Software Development
Member Avatar for mwatson81
0
275
Member Avatar for _Fletcher

I'm having some trouble with vpython for my first-year programming project. The code below is a solar system simulator and I'm having issues with pausing animations and restarting them. I also tried to add a feature where if you click on a planet it will refocus the camera on the …

Software Development python
Member Avatar for andrewie101
0
232
Member Avatar for rony001

how to create a pop up form for each row in datagridview that holds detailed info about that particular row of a column ? I want a editable pop up form with two text boxes and sum of both text boxes in the selected cell of the column . i …

Software Development vb.net
Member Avatar for rony001
0
2K
Member Avatar for Helianthus

Hi All, I have just started building a program that will allow a user to select a plant from a dropdown list and then click a button to view detail related to the selected plant in another form. I would like to be able to read from a sequential access …

Software Development vb.net
Member Avatar for Reverend Jim
0
161
Member Avatar for Programmer629

Hi! I want to know how to make my own file type. I allready have a program that i made but i want to create a file type that only this program can read. i want to name the file extension ".rttf", which stands for "Robot Talk Text File." ill …

Software Development file-system vb.net
Member Avatar for Reverend Jim
0
211
Member Avatar for Violet_82

Hi I am having problems running and compiling a program with more than one class, but I am not sure how to do it in netbean, it keeps complaining. I have the 2 following files called respectively Account.java public class Account { String name; String address; double balance; } and …

Software Development java
Member Avatar for Violet_82
0
300
Member Avatar for mIND.dEcEpToR

this is how my data in txt file: 1--2--3-- 3-4-4-5-- -7-3-4--- 7--5--3-6 --7---4-- 3-2--4-5- ------3-- 2-6--7--- 4---4--3- is my c# code to do file reading with the display too: public void populate_grid_by_file() { int counter = 0; string line; // Read the file and display it line by line. System.IO.StreamReader …

Software Development c c# c++ file-system
Member Avatar for tinstaafl
0
207
Member Avatar for Violet_82

Hi I am having some problem understanding the do-while loop in the following program, and I was hoping for some help: import java.io.File; import static java.lang.System.out; import java.util.Scanner; class DeleteEvidence { public static void main(String args[]) { File evidence = new File("c:\\cookedBooks.txt"); Scanner keyboard = new Scanner(System.in); char reply; do …

Software Development java
Member Avatar for Violet_82
0
200
Member Avatar for rodrigo.l.salazar.14

Hello so I finally was able to read intergers from a file and put them in an array. Now I have to put those numbers in different arrays. If they are even they go to the even array if odd go to the odd array. Now I thought this was …

Software Development c++
Member Avatar for vmanes
0
181
Member Avatar for Magda6347

Hi I have a project where Im creating a bank account. In the bank account the user is supposed to choose either checkings or savings from a combo box. once that is selected and the user presses submit button the selection is supposed to show up under a label in …

Software Development c++
Member Avatar for Ancient Dragon
0
112
Member Avatar for sofien.fkih

I did the coding to create a pie chart file in png format file, the pie chart shows the percentage but in the bottom of the file, I want the percentage to appear in the chart itself, This is the codes I have used, String query = "SELECT name,flag from …

Software Development dataset display java oracle sql
Member Avatar for Taywin
0
459
Member Avatar for inaxassan

The human body has many organs (heart, lungs, brain, and kidney, to name a few). We could think of the human body as complex object made up of simpler objects (organ). a) Create classes for heart and brain. Think about what the functions of the heart and brain are in …

Software Development oop python
Member Avatar for TrustyTony
0
297
Member Avatar for jg1405

I am not seeing why this code will not generate the output to my JFrame after it takes the input from the text file? How can I tweak this code to do that? Take input from file and display it on JFrame... JTabbedPane jtpane=new JTabbedPane(); JPanel jpan=new JPanel(); JTextArea txt=new …

Software Development java
Member Avatar for jg1405
0
1K

The End.