132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for nickx522

I cant round up minutes and switch them to hours?...for example if a car was parked for 241 minutes(input has to be in minutes) and rate was $2/hour and first 120 minutes were free i would need to charge for 5h and i dont know how to round up right …

Software Development c c# c++
Member Avatar for nickx522
0
164
Member Avatar for Clandry

Making Change|Programming Assignment 5 Write a complete C++ program to do the following: 1. Read a single input record from the text le transactions.dat containing the initial number of each coin and currency type in a till from which change for purchases in a shop is to be made. Echo …

Software Development c++
Member Avatar for dylank
0
228
Member Avatar for bmos31

I'm having trouble getting a recursion template reduceArray() function to divided elements in an array. I have +,-, and * working fine, but division is not working for me. The function should take the given elements and divide as follows ((((4/2)/7)/1)/9) Here's my code...any tips? [CODE]#include<iostream> using namespace std; template<typename …

Software Development c++
Member Avatar for bmos31
0
227
Member Avatar for gotjeff5

Hey I am trying to do a tic tac to game, and im getting a few errors that I don't understand, Please help me. Here is my code: [CODE] #include<iostream> using namespace std; const int num_rows = 3; const int num_colm = 3; void xPlayer(char board[][num_colm], int); void oPlayer(char board[][num_colm], …

Software Development c++
Member Avatar for gotjeff5
0
139
Member Avatar for ccube921

I don't know what the problem on line 12 is. [CODE]void mkbrd(void) { for ( int y =0; y<8; y++) //accesses all columns in the array { for ( int x=0; x<8; x++) //accesses all rows in the array { brd[x][y].x= char (65+x); //assigns columns names A-H brd[x][y].y= y+1; //assigns …

Software Development c++
Member Avatar for gerard4143
0
73
Member Avatar for mikeyj9009

I really need help. The output is supposed to read a text file with the coordinates and print them to a text file, but I am not sure what lines of code to write and where to insert them. Here are the coordinates that are in there own text file: …

Software Development python
Member Avatar for woooee
0
102
Member Avatar for y9john

This is my first time posting or really doing anything here on daniweb. I have read a lot of other posts and you all are very knowledgeable and respectful. So if I don't do something that I need to as per the forum regulations let me know. I have a …

Software Development c
Member Avatar for y9john
0
670
Member Avatar for sonsofliberty84

I am having some problems finding a good example of a program that runs as a system tray icon, does anyone have one or know where to find a good one with a well readable source code file that I can look at? And I would prefer it to be …

Software Development c++ visual-studio
Member Avatar for Ancient Dragon
0
292
Member Avatar for Klaurac

Hey Say I have a login and the main form. If the login window is closed then the other form shouldn't load. I tried using a if condition to suppress initializeComponent but it still shows the main form, but empty. How would you do that?

Software Development
Member Avatar for Momerath
0
116
Member Avatar for ARGF

I am trying to edit a code we were given and it's not working for me when I incorporate the scanner code Basically every place where the code says 'public static void', it says there is an illegal start of expression I HAVE to use methods for this code I …

Software Development java
Member Avatar for ARGF
0
148
Member Avatar for johnt68

Hello:) I am asking the user to input a numerical grade into one textbox and then I want to show the corrosponding grade in the textbox below when they push a 'calculate' button. I have put it the code below and I am puzzled because I have listed 6 conditionals …

Software Development
Member Avatar for johnt68
0
149
Member Avatar for n0de

Hi, my dad asked me two write a litlle program. Nothing special, except i have problems with string to float conversion... Here is the code i wrote: [CODE=c++] #include <iostream> #include <fstream> #include <sstream> #include <string.h> #include <stdlib.h> #include <cstring> #include <iomanip> using namespace std; // main() { string sKBP, …

Software Development c++
Member Avatar for n0de
0
243
Member Avatar for Archenemie

Ive made this keylogger because lately my computer crashes ALOT and it records keystrokes in real time, i thought that even if my computer crashes im not going to loose my work, only maybe that last 4 or 5 characters, but the log file gets written to in a seeminly …

Software Development c++
Member Avatar for Archenemie
0
149
Member Avatar for jrw89

I've been following a few tutorials to create Makefiles and came across one at [URL="http://www.cs.colby.edu/maxwell/courses/tutorials/maketutor/"]http://www.cs.colby.edu/maxwell/courses/tutorials/maketutor/[/URL] which I managed to get working across some simple functions and programs:[CODE]IDIR = include CC=g++ CFLAGS=-I$(IDIR) ODIR=obj _DEPS = hellomake.hpp DEPS = $(patsubst %,$(IDIR)/%,$(_DEPS)) _OBJ = hellomake.o hellofunc.o OBJ = $(patsubst %,$(ODIR)/%,$(_OBJ)) $(ODIR)/%.o: %.cpp $(DEPS) …

Software Development c++
Member Avatar for gerard4143
0
148
Member Avatar for mtmalleus

Hey guys. I'm new to Python. I kinda blundered into a CIS major at the university I attend, and I have to say, I haven't enjoyed the Python class so far. It's so... esoteric. I'm having a TON of trouble grasping what the rest of my class view as simple …

Software Development algorithm python
Member Avatar for Schol-R-LEA
0
185
Member Avatar for Cheese Man 808

Hey guys, I'm having a bit of trouble with my program. It seems that out.print(translationText) only prints out the last line in theStringBuilder translationText. It's really werid, because System.out.print(translationText) prints out everyline from the StringBuilder translationText. I added append to be true for the FileOutputStream object, but now it just …

Software Development java
Member Avatar for Cheese Man 808
0
1K
Member Avatar for anraevlus18

Hi, I am very new to perl..I want to install a cpan perl module OLE-Storage_Lite-0.19 in a linux machine. The installation instructions does not specify any thing about the @INC path. Will the make file find the proper directory by itself or do we have to explicitely mention it? INSTALLATION …

Software Development perl
Member Avatar for richieking
0
167
Member Avatar for Mr.BunyRabit

Hey There, its Ruan. uhh, i need help, as i did indeed hit a brick wall. at the moment, i can connect to a database through textboxes, ill put the code at the bottom. What i want to do/know, is, How or What is the code or manner to read …

Software Development dataset open-source vb.net visual-basic
Member Avatar for Mr.BunyRabit
0
119
Member Avatar for Sonia11

Friends, I have a major problem with recursion. My question is how do you reverse a string in java by applying recursion. It's quite easy working wthout recursion by using using StringUtils.reverse, but I really really need help with recursion on this question.!!!!!!Please!!!!!

Software Development java
Member Avatar for cale.macdonald
0
108
Member Avatar for Mykal73

hopefully I can explain this well. I have an application built in vs 2008. The main form is a MDI form with a datagrid for record selection. When the user double clicks on the datagrid it opens a child form with the selected information. the problem I'm having is once …

Software Development vb.net
Member Avatar for Mykal73
0
160
Member Avatar for eri24

Hi, i need help or advice on how to start a code i have to write. This is the details of the program with an example: [url]http://www2.cs.uh.edu/~acl/cs1410/prog6.pdf[/url] Any help or advice on how to go about this would be greatly appreciated.

Software Development c++ pdf
Member Avatar for eri24
0
220
Member Avatar for mallak alrooh

Hello : I have this question and I solve the half of it I wont your help in other codes.. We have do a code for every commend ... In this project you will develop many commands that are related to file operations, as in the following list (red colors): …

Software Development java open-source
Member Avatar for kramerd
0
119
Member Avatar for TheSecOrg

How can I change the color of the font or text? I've tried area.setFontColor, area.setColor, comic.setColor. area is the JTextArea. comic is a font. arial is a font. I have a [code]final Color red = new Color(); red = Color.red;[/code] but I don't know how to set the Font or …

Software Development java
Member Avatar for Ranjitdani
0
146
Member Avatar for printmatic

Firstly, Hello everyone! Ok so I am going through exercises in my Java book and am having a problem with this one question. Basically, it wants a user to input a telephone number as letters capital or lower case, spaces or not... eg. Get-Loan which would be 438-5626. So the …

Software Development gui java java-swing
Member Avatar for kramerd
0
273
Member Avatar for sneha sirohi

hi friends, i am newbie for vb.i made a program in which i want to use two forms.i made two forms and wrote code for two.in form1,when i am clicking ok next form should appear so i wrote like-" // Private sub ok_click() Form2.show End sub // now the next …

Software Development visual-basic
Member Avatar for Bukho
0
1K
Member Avatar for Mona..

Hi.. I want help in C++, I want to read a file reversly and write it in a new file, how can I do that? Thanks for your time..

Software Development c++
Member Avatar for Mona..
0
132
Member Avatar for bob200707

Hello everyone, I was given a code that was not in the correct order. I have the first half of the program in the right order I believe but need help with the rest. The program is supposed to output the total time an employee spent on the job each …

Software Development c++
Member Avatar for bob200707
0
103
Member Avatar for ploogle

Hello all! What I need to do is open up an Audio Stream that will let me output audio (WAV encoding) to my computer's microphone input. It'll be used specifically to allow my program to "speak" to other programs' mic-in. I tried outputting normally, then connecting my headphone port to …

Software Development audio
Member Avatar for MLKPro
0
929
Member Avatar for krazyito65

[code] class Node { private: int integer; Node *pointer; public: Node(int x = 0, Node *y = NULL) { integer = x; pointer = y; } int getInteger() { return integer; } Node getPointer() { return *pointer; } }; [/code] [code] private: Node *stack; Node *top; int listSize; int pushedValue; …

Software Development c++ linked-list
Member Avatar for krazyito65
0
222
Member Avatar for Ranjitdani

we planned to rewrite our System in Java, Which was previously running in Stored procedure. More than 5 Applications calls the procedure which inserts and updates some set of records after the post transaction which has been done in the background. Now we planned to take the stored procedure out …

Software Development java
Member Avatar for Ranjitdani
0
117
Member Avatar for lewashby

[CODE]import pygame from pygame.locals import * from sys import exit pygame.init() screen = pygame.display.set_mode((640, 480), 0, 32) font = pygame.font.SysFont('arial', 32) font_height = font.get_linesize() while True: for event in pygame.event.get(): if event.type == QUIT: exit() screen.fill((255, 255, 255)) pressed_key_text = [] pressed_keys = pygame.key.get_pressed() y = font_height for key_constant, pressed …

Software Development python
Member Avatar for woooee
0
6K
Member Avatar for Fbody

I am trying to sort a vector that is a [B]protected[/B] member of a templated class into a Descending order based on the [I]second[/I] member of the contained std::pair objects. The vector has the following declaration:[CODE]vector< pair <const T, int> > mode; //holds pairs to define the mode(s) of the …

Software Development algorithm c++ dataset
Member Avatar for Fbody
0
3K
Member Avatar for pakunoda

I tried [CODE]DBCC CHECKIDENT('Customer', RESEED, 0)[/CODE] but there's an error. Incorrect DBCC statement. Check the documentation for the correct DBCC syntax and options.

Software Development
Member Avatar for Momerath
0
108
Member Avatar for haojam

Dear Sir, I would like to extract only unique terms from all sdrf.txt files but this python code outputs unique terms for every file individually. Like Array Data File , Array Design REF ... are repeated in most of sdrf.txt files so i don't wanna print it as unique terms. …

Software Development open-source python
Member Avatar for woooee
0
249
Member Avatar for brycematheson

I've been trying to get this stupid function to work for days and just cannot get it. My display looks like this: [code] Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 …

Software Development c++
Member Avatar for Lerner
0
161
Member Avatar for zhuangdeyouxian

[CODE]/*Task: Two ordered linklist contain number. eg.1->2->3-> and 2->3->5 **Print** union of them eg.1->2->3->5 ,remove duplication, can't change linklist Problem : 1. append() might need to be modified. 2. dnot't know how to use append() to complete the task. */ #include <stdio.h> #include <malloc.h> #include <string.h> #include <stdlib.h> typedef struct …

Software Development c linked-list
Member Avatar for Martin B
0
125
Member Avatar for realproskater

My problem is that my program doesn't print out the first number in the sequence. Like if i ask it to print out 10 numbers it will only print out 9 numbers and skip the first number that it should start with. example of the output is at the bottom …

Software Development c++
Member Avatar for kes166
0
135
Member Avatar for pakunoda

This is my code [CODE] string srch1; string srch2; if (cb1.SelectedItem.ToString() == "Book Title") { srch1 = "Book_Title"; } else if (cb1.SelectedItem.ToString() == "Call Number") { srch1 = "Call_Number"; } else { srch1 = "Accession_Number"; } if (cb2.SelectedItem.ToString() == "Ascending Order") { srch2 = "ASC"; } else { srch2 = …

Software Development dataset
Member Avatar for pakunoda
0
142
Member Avatar for vbx_wx

[code] string& f() { string str = "name"; return str; [/code] I need to return a reference to a string,but i am confused how to return corectly from f(),any help ?

Software Development c++
Member Avatar for Ketsuekiame
0
109
Member Avatar for pakunoda

I thought i already assigned it? [CODE] string srch1 = ""; string srch2 = ""; if (cb1.SelectedItem.ToString() == "Book Title") { srch1 = "Book_Title"; } else if (cb1.SelectedItem.ToString() == "Call Number") { srch1 = "Call_Number"; } else if (cb1.SelectedItem.ToString() == "Accession_Number") { srch1 = "Accession_Number"; } if (cb2.SelectedItem.ToString() == "Ascending …

Software Development
Member Avatar for pakunoda
0
113
Member Avatar for Roger101

Hi I am trying to parse a file in perl and decode a HEX code. Ex: 0x0001 0x0002 0x0003 . . . 0xFFFF I need to convert these hex to binary and make decision based on it. 0x0001 - 0000 0000 0000 0001 0x0003 - 0000 0000 0000 0011 0x0007 …

Software Development perl
Member Avatar for d5e5
0
1K
Member Avatar for ajay_p5

Hello Everyone I am having some trouble in parsing a XML document with a perl script. I have a file like the attached file(I have just taken a part of the original file as it is too big to be posted overhere and is hard to analyze manually). Now, what …

Software Development file-system perl publishing xml
Member Avatar for richieking
0
329
Member Avatar for john22

Hi, I am very new to Perl Scripting. I used Shell scripting before, but very little knowledge of Perl Scripting. I am given at task at my work: Here is info: I need to write a program that will listen to a port which will connect from Telnet. Also, the …

Software Development perl shell-scripting socket-programming
Member Avatar for richieking
0
466
Member Avatar for jcfans

May i know how to sort a datatable?My code that show below got any problem? why the datatable cant sort by qFundCode? Firstly,my program is add sum datarow where qFundCode show below are to datatable. qFunCode WER WER WER THS THS THS AG AG AG After this,i add another datarow …

Software Development vb.net
Member Avatar for lolafuertes
0
202
Member Avatar for 0pawix

[CODE]#include <iostream> #include <string> #include <conio.h> using namespace std; int main(){ string ans =""; string ans2 =""; char ch; cout << "Enter 1stplayer:\n"; ch = _getch(); while(ch != 13){//character 13 is enter ans.push_back(ch); cout << '*'; ch = _getch(); } char chs; cout << "\nEnter 2ndplayer:\n"; chs = _getch(); while(chs …

Software Development c++
Member Avatar for rpdm
0
129
Member Avatar for Xufyan

In this program i have input name and code in super class and print it, it also print in sub class [iCODE]Manager[/iCODE] I created the object for super class to input name and code, and another object to input Manager's Data, but in the output the Name is showing null …

Software Development java
Member Avatar for JamesCherrill
0
140
Member Avatar for ZigZagMan

Hi guys, new here, and new to python. And I thought I would ask for a bit of guidance on this piece of code I'm working on. The following block of code is supposed to output all positive factors of the entered integer. However, it does not work properly. The …

Software Development python
Member Avatar for TrustyTony
0
75
Member Avatar for gabs

[COLOR=#444444]hi![/COLOR] [COLOR=#444444]I wrote this code that test multiple windows. I actually need this for another program, but I'm trying to figure out how creating windows work. so in this code I created two windows, and in one of them I create another two. but when I run it, it keeps …

Software Development c++
Member Avatar for Ancient Dragon
0
161
Member Avatar for AngelicOne

I am using a datagridview for the output of the results and I have made 4 combobox each have its condition, asceding and descending, starts and contains with, search from table.. I am writing this with lots of code, is there any way to make this short? [CODE] string bncw …

Software Development dataset
Member Avatar for rohand
0
101
Member Avatar for sah

[CODE] // CLASS: BackGroundMusicGP Collapse using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; using System.IO; namespace BackGroundMusicGP { class BkGrndMusic { private string _command; private bool isOpen; [DllImport("winmm.dll")] private static extern long mciSendString(string strCommand,StringBuilder strReturn,int iReturnLength, IntPtr hwndCallback); public void Close() { _command = "close MediaFile"; mciSendString(_command, null, …

Software Development
Member Avatar for Momerath
0
132

The End.