43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for jackly94

My Struct was looping and working well, Till i Added in a New Struct and add that to the Loop, Now its not Working that well plus not outputting the Details only the hours. could some one help me with this.. [CODE] struct Trains { int Train_Id; //train ID string …

Software Development c++
Member Avatar for raptr_dflo
0
132
Member Avatar for TheFearful

Hey guys, I am having trouble in writing this code. I don't know where to start other than the beginning basic things. I just need to know how to start this thing because I know it is a loop, but loops are my weakest things as of right now. Here …

Software Development c++
Member Avatar for raptr_dflo
0
337
Member Avatar for Raim

So basically, I'm making a Windows Form Application CLR which calculates a worker's wage. Problem is, when I select the schedule (day,night,afternoon,mixed), I use a button for each schedule respectively, which, upon click, calculates everything on the data you've input. While this is effective, I am being asked to use …

Software Development c++
Member Avatar for Ancient Dragon
0
399
Member Avatar for n0de

Hi, there is that thing that i need to handle atoi () function error.. Now for explanation atoi ( some const char * which is int (like '1') ) gives me that int, but if i write like this atoi ( 'n' ) then shit happens and it return's a …

Software Development c++
Member Avatar for MeduZaPaT
0
715
Member Avatar for diamondw

hey im trying to create a program where the user will type in a number then choose the units its in and units it will be converted to from 2 comboboxes. The output should be changing as different units are clicked without a button.Please tell me how to fix my …

Software Development vb.net
Member Avatar for diamondw
0
118
Member Avatar for RedexProGamma

Hi, I am NOW doing a short application that installs a program, without the program being embedded into the application. I have found myself at a loss for code, now that I cannont figure out how I can COPY the entire contents of a folder to a new folder, WITHOUT …

Software Development vb.net
Member Avatar for codeorder
0
445
Member Avatar for maria536

[CODE]#include <iostream> // required to perform C++ stream I/O #include <iomanip> // required for parameterized stream manipulators using namespace std; // for accessing C++ Standard Library members // function main begins program execution int main(){ double wage = 0, raise = 0, raiseMoney = 0; int years = 0; // …

Software Development c++
Member Avatar for maria536
0
1K
Member Avatar for scarlettmoon

Hi ~ Before posting my code, can someone tell me if it is possible to do a dual sort on an array of chars and an array of int, double or float? Would you have to use two separate sorts? Really confused here. I am trying to sort an array …

Software Development c++
Member Avatar for phfilly
0
529
Member Avatar for Liuhh00

hey guys lol i spent 5 hrs thinking about building this asterick pattern and i am still getting troubled by the spacing for the 3rd pattern , anyone can help me to reduce 1 spacing so the 3rd pattern isn't out of place?XD [CODE]#include <stdio.h> int main() { int c,c_2,c_3,c_4,c_5,c_6,c_7,c_8; …

Software Development c
Member Avatar for Liuhh00
0
134
Member Avatar for felix001

Does anyone know how I can base my re condition based on it not finding a match. I have the following at the moment ..... [CODE]if re.search(r'123', os.uname()[1]):[/CODE]

Software Development python
Member Avatar for felix001
0
90
Member Avatar for mkab

Hello everyone. I'm trying to code the cd shell command in c. I used chdir function to code it but the problem is that when I execute the program on the terminal it doesn't change the directory. I kept a series printfs and conditions to test if it changes, though …

Software Development c shell-scripting
Member Avatar for mkab
0
6K
Member Avatar for Túrin

So I was running a simple python program in IDLE, and I got this subprocess error. I looked it up on Google, and found much information about it. None of it really got me anywhere. I think the error has to do with AVG blocking IP 127.0.0.1. (I am using …

Software Development python
Member Avatar for jaclynn
-1
3K
Member Avatar for algrandjean1

Hello all, I am a beginning python user and I am a bit perplexed by something that I am writing up. What I have to do is assign buttons to colors (Traffic lightesque). There is a red, a green and an auto. The tricky part is that the "auto" button …

Software Development gui python tkinter
Member Avatar for woooee
0
282
Member Avatar for gahhon

[CODE] Film[] callFilms = new Film[100]; static int numberFilm = 0; [/CODE] [CODE] //Search Film Method public static void searchFilm(Film[] callFilms){ Scanner scan = new Scanner(System.in); int condition = JOptionPane.YES_OPTION; boolean check = true; do{ System.out.println(); System.out.println("Search Films"); System.out.println("============"); System.out.print("Please Key-in Item Code: "); String code = scan.nextLine(); for(int i …

Software Development java
Member Avatar for gahhon
0
89
Member Avatar for BoBok2002

Hi,I spent all night trying to figure this out. Could someone take a look and show me what I'm missing? I getting this compiler error: [B]unterminated #ifndef [/B]. But I have [B]ifndef[/B] at the beginning and [B]endif[/B] at the end of the class. [CODE]//Header file. //Class definition for teh stack …

Software Development c++ oop
Member Avatar for BoBok2002
0
43K
Member Avatar for StephNicolaou

Dear all, When printing a grid, for example a chess board, I was hoping it wouldn't have the same output as the console. When I want the position to be grid[x][y] = 5, 5, it will place the counter in the bottom right corner in a 5x5 grid, (5,1) instead …

Software Development java
Member Avatar for StephNicolaou
0
157
Member Avatar for Labdabeta

What is the equivalent of tan-1(theta) [inverse tangent] in Java?

Software Development java
Member Avatar for Labdabeta
0
413
Member Avatar for superjj

Hi I want to make an abstract method. But I always get the error " cannot declare a body because it is marked abstract." When I delete the return then I get the error than I need a return. can someone help me please [CODE] public abstract Graphics drawRectangle(Graphics drawarea) …

Software Development
Member Avatar for Mitja Bonca
0
181
Member Avatar for carlt

Hi all, I'd appreciate if somebody could shed some light on the following; I have a tabbed container, each tab has the same controls but for a different target. I am using a timer to control when to fire each event from the 5 different tabbed controls, my problem is …

Software Development vb.net
Member Avatar for carlt
0
137
Member Avatar for magnum_vf

Hi folks, (Python 2.4.x - I cannot install any modules including dateutil) Here's what I have so far. [code] mydate=['20111025.00', '20111026.12'] start_time= time.strptime(mydate[0], "%Y%m%d.%H")[:5] end_time=time.strptime(mydate[1], "%Y%m%d.%H")[:5] for myhour in datespan(time.strptime(mydate[0], "%Y%m%d.%H")[:4], time.strptime(mydate[1], "%Y%m%d.%H")[:4], delta=datetime.timedelta(hours=1)): print myhour [/code] What I'm trying to do is take the two values in mydate list …

Software Development python
Member Avatar for magnum_vf
0
6K
Member Avatar for wissam.ashkar

Hello Guys, I am building an application using C# as a front end(VS 2008). I have a main form which contains a main menu and other controls like labels, calendar etc.. the main form I am talking about starts as full screen, my problem is when I drag/drop/edit controls in …

Software Development visual-studio
Member Avatar for wissam.ashkar
0
193
Member Avatar for anand01

Hi all, I am having confusion on polymorphism 1)Is Method Overloading considered as polymorphism? 2)Is there two types of polymorphism(run time and compile time ) available? thanks in advance

Software Development java
Member Avatar for anand01
0
190
Member Avatar for mitchney

help me pls...i want to display the total sales within the date in the two dtpicker and by the category specified...when i run the program using my code an error occurs the no value given for one or more required parameters..which i cannot understand..pls. help me..here is my initial code... …

Software Development visual-basic
Member Avatar for mitchney
0
264
Member Avatar for joshThtch

Building a phonebook program for school--very much a work in progress. I still need to write a sort function, tweak my delete function, etc. But actually what I'm hoping you folks could answer is hopefully simpler--for some reason I seem to have a while loop that is executing twice, and …

Software Development c programming-construct
Member Avatar for joshThtch
0
216
Member Avatar for diamondw

hey im trying to create a program that will convert between metric and standard units.I chose length as my measurement so i have nanometer,millimeter,centimeter,meter,hectometer,kilometer,inc,feet,yard and mile. i wanted the inpu to be - number to be converted(text box) -unit number is in(combo box) -unit to convert to(combo box) i know …

Software Development vb.net
Member Avatar for diamondw
0
925
Member Avatar for gahhon

film class [CODE] import java.util.Scanner; // Creating Class Members public class film { private String itemCode; private String title; private String description; private String language; private String runningTime; private String productionCompany; private String status; //eg, pending, premiering, running, written-off // No-argument Constructor: Without Parameters public film() { itemCode = ""; …

Software Development java
Member Avatar for gahhon
0
351
Member Avatar for violette

Hi all :) I have two excel files for data(one is to retrieve data from outer source(file1) meanwhile the other one is for template(file2)) and 1 excel file for macro(file3). I would like to create a macro to copy data from the file1 to the template(file2) and save it as …

Software Development open-source visual-basic
Member Avatar for violette
0
204
Member Avatar for marvolo1300

Hi there, I have to create a card game as an assignment, and i am having trouble with a part of the assignment. Basically, there is an array, 'playerHand', which holds a set of integers. What i want to do is to add the elements of the array and then …

Software Development java
Member Avatar for marvolo1300
0
166
Member Avatar for caswimmer2011

Hey, I am now programming in a MacBook Pro and for the KeyCodes in the Robot Class, there is no set key for Command. Can I set a KeyCode to do the actions of the Command key? Thanks

Software Development java
Member Avatar for caswimmer2011
0
210
Member Avatar for mike2828

Hi i am new to java gui, i have trouble using color constructor. please tell me what the problem . thank you . [CODE]import java.applet.*; import java.awt.*; public class AnAppletSubclass1c extends Applet { Color c = new Color(5,25,205); public void Color(int r,int g,int b); public void init() { System.err.println("Hello from …

Software Development gui java
Member Avatar for Ezzaral
0
218
Member Avatar for pendo826

can anyone see why the status.health wont take away the 20 ???? [CODE]#include <iostream> #include <string> // To allow use of Strings. using namespace std; //char inventoryRequest = 'i'; //Function Definitions. void displayInventory(); void displayStats(); void statsObject(); void gameOver(); void stats(); void inventory(); void exitGame(); int playGame(); class status{ public://Access …

Software Development c c# c++ storage
Member Avatar for pendo826
0
198
Member Avatar for minghags

Hello. I have to do an program that writes an scale from num 1 to num 2. I managed to do that writes out from 1 to given number. Can anyone help me do that I can insert an scale starting number? Code: [CODE]#include <iostream> using namespace std; void prime_num(int); …

Software Development c c# c++
Member Avatar for minghags
0
257
Member Avatar for s_r_k

I'm doing a project for school and I'm having difficulty getting the average of two averages, using arrays. I have to get the average of high temperatures for a year, the average for low temperatures for a year, and then find the average of those average. We used 366 days …

Software Development c++
Member Avatar for s_r_k
0
156
Member Avatar for pendo826

Hi[QUOTE]just wondering how i would set up a menu so that i can call anytime when pressing "M". im nearly sure it would have to be a loop but im not quite sure how to do it. can anybody help? thanks [/QUOTE]

Software Development c++
Member Avatar for pendo826
0
150
Member Avatar for ayeshashahid

i have a serious problem with this malloc function used in C language.i have been studying the topic "new" for few days,and there i found a code in which malloc was used.i am trying to change it to new but my compiler always always CRASHES. the line which i think …

Software Development c++
Member Avatar for ayeshashahid
0
166
Member Avatar for Behseini

Hi Guys Can you please take a look at following app to see what I am doing wrong? [URL="http://www.mediafire.com/?38pwg0uwj0930e3"]Download App(WinFormsStarts)[/URL] What I want to do is running multiple modal forms AND keeping the MainApp form accessible until finishing all required modals.As you can see from the application, as soon as …

Software Development
Member Avatar for Behseini
0
260
Member Avatar for cgen

I need help understanding this algorithm Design a variation of algorithm TreeSearch for performing the operation findAl(k) in an ordered dictionary implemented with a binary search tree T, and show that it runs in time O(h + s), where h is the height of T and s is the size …

Software Development algorithm java
Member Avatar for cgen
0
423
Member Avatar for rahman86

hello guys in daniweb. i have a application windows based created in vb.net that contains crystal reports and access .accdb files. to be honest i have tried to publish this app for 11 times and still there to be some problem. the application will install but it cannot run. it …

Software Development microsoft-access vb.net visual-basic
Member Avatar for rahman86
0
733
Member Avatar for compulove

I know this question has been asked dozens of times, but the code I have been looking at has not helped me. So far I have been able to connect to the string and the database from where I need to check the username, but in my page it is …

Software Development asp sql vb.net
Member Avatar for compulove
0
242
Member Avatar for Joey_Brown

First of all, hello Im Joey and Ive recently started messing around with the Java language. Ill do my best not to bother you alot with my newbie questions :) So I need to create a method that returns some variables I have encapsulated, as String but without the last …

Software Development java
Member Avatar for Joey_Brown
0
161
Member Avatar for theadjectivenou

I need help trying to figure out what I am doing wrong. my teachers wants two different sentences to read as "Wow, (insert word 1) and (Insert word 2) are funny" and on the second line he wants them reversed to read "Wow, (insert Word 2) and (Insert Word 1) …

Software Development java
Member Avatar for Taywin
0
114
Member Avatar for TheChosen0ne

My exe requires a dll to run, I have to keep moving the dll to the exe's folder to run it properly :( How can I combine the 2 files together as one? :(

Software Development c++
Member Avatar for Stefano Mtangoo
0
152
Member Avatar for dwiniers

Hello there i need your expertise in VB6 i make some program using the navigation key and add, edit, delete, search command button. The program is almost 99% working. By the way im using adodc and access in my db and combo box using with search fields. My problem now …

Software Development visual-basic
Member Avatar for dwiniers
0
339
Member Avatar for neveragn

how do you promt the program from positive integars terminatd by -1 .. and then ask for smallest of these integars. I did everything except when I add (!= EOF) .. It shows the same prompt multiple times should I still keep the code or is there a specific error? …

Software Development c
Member Avatar for neveragn
0
258
Member Avatar for gahhon

[CODE] //Member Login public static boolean memberLogin(){ int memberPassword = 123; boolean password = false; int confirm = JOptionPane.showConfirmDialog(null, "Are You A Member? ", "Member Confirmation", JOptionPane.YES_NO_OPTION); do{ while(confirm == JOptionPane.YES_OPTION && password == false){ String tempCurrentPassword = JOptionPane.showInputDialog(null, "Please Enter Your Password", "Default Password = 123"); int currentPassword = …

Software Development java
Member Avatar for stevanity
0
209
Member Avatar for paulsoncall

Hi - I'm having a hard time figured out how to print the triangle shape below using loops. I did the two previous triangles with no issue but have no idea how to get the spaces in there. I'm really confused and would appreciate any help. [CODE] * ** *** …

Software Development java
Member Avatar for paulsoncall
0
263
Member Avatar for HASHMI007

Assume the following specification of a node of linked structure and the class [CODE]// LinkedStructure And the class.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include<iostream> #include<stdio.h> #include<stdlib.h> #include<conio.h> using namespace std; struct Node{ int info; struct Node *next; }; typedef struct Node * NODEPTR …

Software Development c++
Member Avatar for raptr_dflo
0
100
Member Avatar for diamondw

Whats wrong with my code?I want a code that shifts a word to an amount (dog to fqi)and the input in an input box.The ouput in a 20 column by n row array.And z if shifted by 2 would be b.Thanks [CODE]Function ShiftCipher(text) shiftamount = InputBox("Input how many numbers to …

Software Development visual-basic
Member Avatar for diamondw
0
144
Member Avatar for SoftwareGuy

Hi. I'm sure this question has been asked before, but I can't get the text searched for. If anyone can explain them, refer me to an article, or give me the correct search query I would appreciate it. Thanks.

Software Development c++
Member Avatar for SoftwareGuy
0
247
Member Avatar for Hikari123

This program runs very smoothly, except that it doesn't print the value of i and is obviously not running the second loop to calculate the margin of error but I don't understand why. Any help? [CODE] // This program was designed to calculate the value of pi import java.util.Scanner; public …

Software Development java
Member Avatar for Hikari123
0
442

The End.