43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for clyo cleopas

[CODE]#include <iostream> using namespace std; #include <iomanip> const double minimumFee = 7.00; const double hourlyFee = 1.75; const int numOfCustomers = 12; const int numOfMinsPerHour = 60; void inputAndValidate(int&,int&,int&,int&); void convertToMinutes(int&,int,int); void convertBackToTime(int&,int,int); double calcCharge(int,int,int); int main() { int entranceMinutes,exitMinutes,entranceTimeInMins,exitTimeInMins ; int minutesParked,parkedMinutes,entranceHour,exitHour,parkedTime ; int parkedHours; double charge ,totalCharges; int …

Software Development c++
Member Avatar for thines01
0
305
Member Avatar for fortozs

I am new to Python and I'm trying to make a simple updating window. Most suggest I should use wxtimer for the task. I have tried to get it going but it fails. Here is the code without a timer that works for me. I had been using time.sleep in …

Software Development python
Member Avatar for fortozs
0
951
Member Avatar for PratikM

Hey guys, I made a converter program and i was just wondering how to make it run on its own without debugging it or anything. So, Any Help Is Appreciated Thanks! If you want my code: [CODE]#include <iostream> #include <time.h> #include <string> using namespace std; float FTC (float); int main() …

Software Development c++
Member Avatar for PratikM
0
275
Member Avatar for arjen

help please..help me in my timer like the time they use in computer shop and when the player is already time out it will alert...[COLOR="red"]the idea like this if the player start 3:00:00 then it will appear in the textbox for the time - in and in the time - …

Software Development vb.net
Member Avatar for codeorder
0
637
Member Avatar for dantinkakkar

I need assistance in printing out a Quine. I googled it and stuff, but I didn't understand the code snippets I saw. Can anyone explain in a more lucid tone?

Software Development c++ java
Member Avatar for peter_budo
0
128
Member Avatar for dhija22

HI everyone,i am a biginer in java and i need your help...i have write a prgram but i cant execute can anyone help me for execute it the program is : package sensor; [CODE]public class sensor { private String Id; private int Kordx; private int Kordy; private char[] getId; public …

Software Development java
Member Avatar for dhija22
0
415
Member Avatar for thompsonSensibl

Hi there, I am not good with Java. Can someone explain this for loop for me please. For a for loop, to my understanding the syntax goes something like, [CODE]for(int i = 0; i < someNumber; i++) { //...some code... }[/CODE] but in this one I have seen, the for …

Software Development java
Member Avatar for peter_budo
0
145
Member Avatar for HASHMI007

[CODE]// bakers.cpp : Defines the entry point for the console application. // /* HEADER USED IN THIS PROJECT*/ #include "stdafx.h" #include<iostream> #include<conio.h> #include<stdlib.h> #include<string.h> #include<string> #include<stdio.h> #include<process.h> #include<fstream> #include<ctype.h> using namespace std; //Classes in this program class Bank { private : long Ac_no; string f_name , l_name ,City; char Ac_type; …

Software Development c++ ios
Member Avatar for Süspeñce
0
450
Member Avatar for naffan

Hi all, Wonder if someone could please lend a hand, I have a courses.txt file which is read into a Course String array I also have a program.txt (A list of 8 courses required to pass the program) There's a menu option to change the Program, however a condition of …

Software Development java
Member Avatar for JamesCherrill
0
216
Member Avatar for coroll

Hi all, I want to call a button1 click method inside a close button(which is provided by a form) click of a form. But there is no close button click event of a form. There is only From_closing event and Form_closed events.

Software Development
Member Avatar for Momerath
0
252
Member Avatar for mikejz88

I can't seem to get this to compile for nothing; I'm new to this c++ any help out there? [CODE]#include <iostream> int main() { //declare variables double average = 0; double sum = 0; double array[10]; int k; // User Input and Total of number input for (k =0; k …

Software Development c++ mathematics
Member Avatar for jonsca
0
184
Member Avatar for Vongola_Takeshi

Good Day! My professor in object oriented programming wants us to collect a JFrame form to a class.... he told us the code but it did not work...Hope you may help me...and thanks in advance [code]import javax.swing.JOptionPane; public class Firm { //---------------------------------------------------------- // Creates a staff of employees for a …

Software Development java java-swing
Member Avatar for Vongola_Takeshi
-1
9K
Member Avatar for Majestics

Is there any method in java to know size of decimal?? I mean 14 has 2 digits , 100 has 3 etc....... I m going to implement auto generated number like A0001 , now i want to change it on each new entry , so Does any one has any …

Software Development java
Member Avatar for Majestics
0
119
Member Avatar for PratikM

Hey guys, I just wanted to ask why this error kept on showing up, i looked at everything, but i couldn't find anything, so maybe one of your eyes will catch something. Here's my code: [CODE]#include <iostream> #include <time.h> #include <string> using namespace std; float FarenheitToCelsius (float); int main() { …

Software Development c c# c++
Member Avatar for pseudorandom21
0
401
Member Avatar for kkanedaa

Hello, I want to know how to compare a string value which is input by the user. The following code gives an error saying "Result of comparison against string literal is unspecified (use strncmp instead)". [CODE] while(valid == 0) { printf("Yes-No-Question\n"); scanf("%s", &yesno); valid = 1; if(yesno != "yes" || …

Software Development c
Member Avatar for kkanedaa
0
429
Member Avatar for aman rathi

In my program i want to execute same statement on case 3 and 5 in switch() i searched lot on google about this but get nothing please help me [CODE] case 3,5: [/CODE] I know it is wrong but if you have any idea about this than please help me.

Software Development java
Member Avatar for aman rathi
0
101
Member Avatar for nuclear

Hello. First of all i know that this was asked like a million times, but i just cant get the right answer anywhere, yes, even on google. So the thing is that i learned the C++ basics and my learning process was only in a Console Application. And now for …

Software Development c++
Member Avatar for nuclear
0
119
Member Avatar for bettybarnes

hi guys i have problem with my code here is my code [CODE] Public Sub increment() Dim dr As SqlDataReader If con.State = ConnectionState.Closed Then con.ConnectionString = (strconnection) con.Open() End If Dim str As String = "Select CUSTOMERID from tbl_Customer" cmd = New SqlCommand(str, objconnection) dr = cmd.ExecuteReader While (dr.Read()) …

Software Development vb.net
Member Avatar for MUDASSAR SIEMAB
0
1K
Member Avatar for uid1

I have the following XPath expression written in Java: [CODE] " pProbs = XPath.newInstance(/n-grams-sorted/n-gram[contains(.,"+content1+") or contains(.,"+content2+") or contains(.,"+content3+") or contains(.,"+content4+") or contains(.,"+content5+")]/@probability"); [/CODE] My problem is that not all of the contains() expressions return true. What I need is: If one of them returns 'false' (i.e.: there are no nodes …

Software Development java xml
Member Avatar for uid1
0
215
Member Avatar for dantinkakkar

I'm writing a java program that adds event handlers dynamically on the go on instructions by the user. My problem is, that how do I basically add them?

Software Development java
Member Avatar for peter_budo
0
144
Member Avatar for DesignGhosts

Hi guys, This might be a long shot but its worth a go....so im using LabWindows CVI, a ANSI C software development environment for "test and measurement, data acquisition, instrument control, and scientific analysis" application. Now the problem I have is running a .exe application from a button click event: …

Software Development c
Member Avatar for DesignGhosts
0
482
Member Avatar for Mike Bishop

i have a datagrid and want to format the cell background colours which is working fine. as you can see if the value of the cell is > 95 the cell goes green if the cell value is < 90 the cell goes red. i need help with anything between …

Software Development vb.net
Member Avatar for Mike Bishop
0
99
Member Avatar for NicAx64

hi , I just using 64 bit linux with my powerfull desktop computer. and I use Scientific linux as the destro,I use the RPM binary package to install gcc. and I using nasm also. I write simple example program in a nasm assembly (free) book.And the author gives some library …

Software Development assembly c++ redhat
Member Avatar for linuser
0
3K
Member Avatar for naffan

Hi All, I've a little problem with writing and saving to a file I'm close but I can't seem to grasp what i'm doing wrong here. Trying to save student object(s) to allstudents.txt This is my loadStudent method; [CODE]public student[] loadStudent() throws IOException, ClassNotFoundException //loads the accounts and returns them …

Software Development java
Member Avatar for naffan
0
174
Member Avatar for emorjon2

Hi All! I'm try to make a game in C++ with OpenGl. So far i've programmed the sprite and the platform. the next thing is to create a AI bot who will try to kill you in the game. but I've got the most bisarr problem with that: The AIBot …

Software Development c++ opengl
Member Avatar for emorjon2
0
233
Member Avatar for ankit_the_hawk

I have been experiencing problems in using the gets() command in C. Whenever I use it twice followed by scanf for eg: [code] char name[20],add[20]; printf("Enter name : "); gets(name); printf("Enter address :"); gets(add); printf("Enter age :"); scanf("%d",age); [/code] Here it skips name.(doesnot take input of name!) It doesnot input …

Software Development c
Member Avatar for thisun
0
13K
Member Avatar for sheennave

Hi! I am new in hibernate annotations so i am practising it on the console. In here i am using hibernate3.jar(came with Hibernate 3.5.1), hibernate-annotations-3.4.0.GA.jar etc. However when i run the main the application didn't start and following errors were generated. Any idea,please help.. !?? 0 [main] INFO org.hibernate.cfg.annotations.Version - …

Software Development java session
Member Avatar for sheennave
0
1K
Member Avatar for Simplified

Hi All I'm learning C at the moment using Code::Blocks running on Windows 7 (64-bit) and I'm having a bit of a problem with code that I've compiled. This code works and compiles just fine: [CODE]#include <stdio.h> int main() { char cards[] = "JQK"; char a_card = cards[2]; /* "K" …

Software Development c ide machine-learning
Member Avatar for Simplified
0
114
Member Avatar for sathya88

hi, am try to create a simple jar file... i got some error to run that jar file error =" Failed to load Main-Class manifest attribute from bala.jar" my code: [CODE]import javax.swing.JOptionPane; public class hello{ public static void main(String args[]){ String s= JOptionPane.showInputDialog("enter name plz...."); JOptionPane.showMessageDialog(null,"hello "+s); } }[/CODE] here …

Software Development file-system java java-swing
Member Avatar for sathya88
0
159
Member Avatar for Hendo

Okay, this may sound silly but I haven't done a console app in over two years. I have two quick questions: [LIST=1] [*]1 For a console app, does .NET need to be installed on a PC to run the app executable? [*]2 What is the line code to launch an …

Software Development
Member Avatar for gusano79
0
201
Member Avatar for Prankmore

I'm trying to determine then print the country of origin of a product based on its bar-code. I have isolated that part of the bar-code and stored it as countryCode, now what i am trying to do is determine its country then store the country name as a string so …

Software Development c
Member Avatar for Prankmore
0
201
Member Avatar for nomin-ginger

i have a very long string like this: [ICODE]TGTGCAACGTATATTCCAACGAAAAACCTGGAGAAGAAAAGAATAAGTAAAATGAACTAGAGGCTGATGGCACAGTAAACACAAATGCCTGAAGTCAAAATACATTCTTTATAAGCCCAAAGCG[/ICODE] i want to convert it into array but i wanna split it by length of 5 array elements: [ICODE]array[0] = "TGTGC"; array[1] = "AACGT"; ..... array[n] = "AAGCG";[/ICODE] any idea? plz....... help thanks :)

Software Development java
Member Avatar for sathya88
0
316
Member Avatar for tapandesai007

I have form where 4 buttons(Platinum, Diamond, Gold and Reset) are there, I have 3 Panel Control one for each of the first 3 buttons, what I want to do is that when I click on any one of the first three buttons the Panel for the respective buttons should …

Software Development dataset open-source perl
Member Avatar for nick.crane
0
349
Member Avatar for ChaseRLewis

My current project requires quite a bit of function pointer passing to guarantee the flexibility desired. Given how messy and annoying I find functions pointers to be I decided to create a wrapper class listed below. Works fine, however it would be nice if their was a method so I …

Software Development c++
Member Avatar for Narue
0
101
Member Avatar for Martin C++

Hello, Is there any infinty sign to assign to a variable ? I need my program to check if the value of one variable is smaller than the other, but i cant do it cause if i dont set a value to my variable at the beginning of the program …

Software Development c++
Member Avatar for Fbody
0
4K
Member Avatar for JoshuaBurleson

So I've finally fixed up the functionality of an address book I've been writing (not on to utilizing a GUI yet of course though.)However to save or reclaim the data from the last use of the address book I, obviously, need to write and reclaim it from a .txt file, …

Software Development file-system gui python
Member Avatar for JoshuaBurleson
0
252
Member Avatar for tapandesai007

I have added a panel control at the design time and I want to add some buttons in the panel at the runtime, the code for adding the buttons in working perfectly, but the problem is with the Panel control, when the Buttons are added at the run time, the …

Software Development dataset open-source
Member Avatar for tapandesai007
0
218
Member Avatar for lcfjoertoft

I am having difficulty with a SQL query in my project. I have 3 tables. T1: - Date - ID - Location_ID T2: - Location - Location_ID T3: - ID - Result From this I need the T1.Date and T3.Result based on Location in T2. So my I need a …

Software Development sql vb.net
Member Avatar for Netcode
0
237
Member Avatar for khentz

Hi, currently I am creating a seat plan system. On my seat plan system, there are many workstations(around 150+ per floor). each workstation is define by a linklabel. when a user click on a particular workstation, a new form will appear. And that form will pop up to show who …

Software Development vb.net
Member Avatar for G_Waddell
0
345
Member Avatar for Oneryavuz

i have some usercontrols in a dll and i need to use them on my other project i try to add reference method but its useless... icant see my controls on toolbox what should i do ?

Software Development vb.net
Member Avatar for Oneryavuz
0
93
Member Avatar for tapandesai007

I have a Windows Form where 225 buttons are added at the run time, also I have the database which have two columns (first column is the SeatNumber with the datatype nchar(4) and the other column is IsBooked with the datatype bit). The SeatNumber contains data like this, A1,A2,A3,A4................O13,O14,O15, The …

Software Development sql
Member Avatar for nick.crane
0
359
Member Avatar for ben1996123

Just tried to make a quick prime number checker: [CODE]#include <iostream> #include <cmath> using namespace std; void askForNumber(); bool checkPrime(); void printPrime(); void printNotPrime(); int numberEntered; int x = 2; bool isPrime = true; int main(){ askForNumber(); if(checkPrime(numberEntered) == true){ printPrime(); } else{ printNotPrime(); } return 0; } void askForNumber(){ …

Software Development c++
Member Avatar for VernonDozier
0
109
Member Avatar for ryan311

can anyone help me on how to done w/ this for example i choose 9/1/2011 i want to get the previous date 8/31/2011. help me please.

Software Development vb.net
Member Avatar for ryan311
0
116
Member Avatar for RenanLazarotto

Yay guys, it's me again. I am using the code from here: [url]http://www.daniweb.com/software-development/vbnet/code/370426[/url] to sort my listview items. But I want something more 'dynamic': when I click on a header column, I want that it changes the sorting based on the column that has been clicked. here is my code: …

Software Development listview vb.net
Member Avatar for codeorder
0
1K
Member Avatar for PratikM

Hey guys... I have this code and i need to make the temperature part work with a function but i don't know how. So Any help is appreciated. Thanks *edit* Also, if there is any way to make this simpler, then please tell. [CODE] #include <iostream> #include <time.h> #include <string> …

Software Development c c# c++
Member Avatar for PratikM
0
218
Member Avatar for secretply

This is part of the last coding that codeorder helped me with. I didn't include this in the last post because I thought this was something that I was going to be able to do. Unfortunately, it is not working properly. In addition to the controls being removed, the control …

Software Development vb.net
Member Avatar for secretply
0
147
Member Avatar for sheennave

Hi all, I'm using Hibernate, HSQL and Spring. But i have the following ugly errors. I don't know what to do. Any help will be appreciated. [code=text]org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mySessionFactory' defined in ServletContext resource [/WEB-INF/dispatcher-servlet.xml]: Invocation of init method failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate …

Software Development apache java java-jsp
Member Avatar for sheennave
0
415
Member Avatar for RenanLazarotto

Hello guys. I have an integer that is storing the result of a division between two numbers. I usually recieve an result that looks like [ICODE]5,2496874654[/ICODE]. How can I limit the variable length so it looks more 'approximated', like [ICODE]5,25[/ICODE]? Thanks in advance!

Software Development vb.net
Member Avatar for RenanLazarotto
0
155
Member Avatar for dreadiscool

Hi everyone! For a 'learning' experience, I'm looking to write my own webserver in C#. I know most people would just write me down and say "Why are you wasting your time, just use a premade webserver!". But that's not the point - the point is to learn. I want …

Member Avatar for dreadiscool
0
2K
Member Avatar for thecoolman5

hi, i have this code: [CODE]#include<iostream> #include<sstream> #include<string> using namespace std; int main (char argc) { string n1 = "141+246+3+64"; int n2; int pos = -1; char toFind = '+'; do { pos = n1.find(toFind, pos+1); if(pos != -1) { stringstream(n1) >> n2; cout << n2 << endl; cout << …

Software Development c c# c++
Member Avatar for thecoolman5
0
305

The End.