132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sha11e

I want it to do the following: Ask for a number between 1 and 5, if user inputs anything lower, higher, or something that isn't a number, it should give an error message and then ask for a input again. This code will spam the error message forever, what have …

Software Development c++
Member Avatar for Jason Giggs
0
119
Member Avatar for _neo_

Hello! I'm new in java. I need some help, guys. How can I determine in Java next run time of cron-like job? For example, if I have crontab entry without command, like [I]"*/15 * * * *", every 15 minutes "5 */2 * * 1", every Monday at 00:05, 02:05, …

Software Development java
Member Avatar for _neo_
0
3K
Member Avatar for lttleastig

Hello I want to open a program and press the START button in that program and it has to run on a server so have to use remote desktop any ideas on how i could approach this? Thanks, Phi7iP

Software Development visual-basic
Member Avatar for AndreRet
0
134
Member Avatar for neosonic

Hey all, I have a picture box, and I want to detect whether the ctrl key is being pressed. Since I want to simulate... ctrl and left click for multiple selections. what I have done: 1. set beingpressed as boolean 2. in keyDown event, I set beingpressed to true 3. …

Software Development visual-basic
Member Avatar for AndreRet
0
746
Member Avatar for abelingaw

Ok i have this form used for registering user for my program (User and Admin type) When i run it, i get an error that says "Invalid Property Value" This is my code for my GetUsers function called on my Form_Load event [CODE] Public Sub GetUsers() ' On Error GoTo …

Software Development listview visual-basic
Member Avatar for AndreRet
0
145
Member Avatar for aviavyne

Hello, I have a problem which goes like this. I need to be able to design a simple class, which i have done, and it must represent any numeric value, which includes a decimal and negative value. So i need to overload the operators, because the '%' will make an …

Software Development c++
Member Avatar for Clinton Portis
0
256
Member Avatar for knellgust

[CODE]#include <iostream> using namespace std; class NumDays { private: double hours; double days; public: NumDays(double h=0) { hours=h; days=h/8.0; } void setHours(double h) { hours=h; days=h/8.0; } double getHours() const { return hours; } void setDays(double d) { hours=d*8.0; days=d; } double getDays() const { return days; } NumDays operator …

Software Development c++
Member Avatar for jonsca
0
101
Member Avatar for unika010690

i have a project my next task is to display the item selected from my listview to the textbox in the other form heres my code on the listview Public Class listemployee Private Sub listemployee_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load ' Create the column headers. ListView2.Columns.Add("EmployeeID", …

Software Development display listview vb.net
Member Avatar for codeorder
0
6K
Member Avatar for brycematheson

I'm making a Sudoku game. When reading in from a file, I would like to convert all of my "0" to blank spaces. However, no matter what I do, those "blank spaces" always turn to "32" because, that's the value of a space on the ASCII Table. How do I …

Software Development c++
Member Avatar for xikkub
0
166
Member Avatar for coco24

Hello all: The task is to: Create a row of Alien attackers, class RowOfAlien, patterned after the partially filled array. Put five Aliens in the row. When the row hits the left or right of the screen, the Aliens snake downwards (see demo). Note that this is different from the …

Software Development java
Member Avatar for coil
0
181
Member Avatar for berwick53

I've been learning C/C++ and I'm currently doing an ATM project. It all works fine but I would like to improve it so when i quit the program and it will load the data used previously. currently I use a struct like this [CODE]struct database { int pin, sort, account, …

Software Development c++ file-system
Member Avatar for taylorc8
0
178
Member Avatar for JeremyJ

Hi, Can someone help me with the CURL library using GCC on Cygwin? I can't find anything in the documents that explain exactly how to compile with g++. For instance: g++ -I curl CurlSample.cpp gives me errors such as: /tmp/ccrXZUYr.o:CurlSample.cpp:(.text+0x17): undefined reference to `_curl_easy_ init' I'm using gcc version 4.3.4 …

Software Development c++
Member Avatar for JeremyJ
0
749
Member Avatar for ndkv

I have problem how to calculate mutiple checkboxes on the panel. ex: 24 roses with a bear: This costs $72 or 1000 points and $12. 14 Lilies: $24 or 360 points [CODE]import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; import javax.swing.border.*; import java.io.*; import java.text.NumberFormat; public class customerInfoGUI extends JFrame …

Software Development java java-swing
Member Avatar for quuba
0
1K
Member Avatar for b1izzard

Hi all, I want to compile the cobol program with a click of a button in toolbar provided if its compiler location and command to compile is specified. e.g [CODE] c:\cob>cobol hello.cob 'command line equivalent [/CODE] VB equivalent: [CODE] Dim command As String command = "cd " & app_path 'app_path="c:\cob" …

Software Development shell-scripting visual-basic
Member Avatar for b1izzard
0
183
Member Avatar for pichi20

Hey, I'd appreciate if someone would help me modify this code so the descending order can be displayed on the screen , here it is.... [CODE] #include <iostream> // ostream #include <vector> #define SIZE 10 using namespace std; int partition(vector<long unsigned int> & a, int start, int end) { unsigned …

Software Development c++
Member Avatar for pichi20
0
1K
Member Avatar for Toxic_Rice

Hello, everybody! I am kind of new to the forums, and I will do my best to follow the rules when posting a new thread. I am to create a program that is supposed to generate 30 random integers between 10 and 200, and insert them into a Heap. The …

Software Development algorithm c++
Member Avatar for Toxic_Rice
0
237
Member Avatar for akamini

Hi This code, compiles fine but results in a segmentation fault and when I comment out the part which adds the null character then the segmentation fault doesn't appear and it removes whitespace from the beginning but not the end. [code] #include <ctype.h> #include <string.h> #include <stdio.h> char *trim(char *s) …

Software Development c
Member Avatar for Narue
0
192
Member Avatar for nitins60

Hello friends, I am new to java and enum use. Actually I need to give only 3 options to customer for Payment Type. So i thought of using enum and making the limited members of Payment [CODE]enum PaymentType { CHEQUE, CREDITCARD, CASH }; public void Customer(String name, PaymentType paymentType) { …

Software Development java
Member Avatar for quuba
0
107
Member Avatar for newbiecoder

hello I have a piece of code starting like that: [CODE] #include <iostream> #include <conio.h> #include <stdlib.h>[/CODE] When I have try to compile this with g++ with a command as:[B] g++ new.cpp[/B] I get this error: new.cpp:2: fatal error: conio.h: No such file or directory I couldn't find where is …

Software Development c++
Member Avatar for skorm909
0
116
Member Avatar for adams161

I'm a little self taught at java. I have a package: package: package org.newdawn.spaceinvaders there's folders like org and newdawn are created and nested. the main is Game.java at end of those folders. How do i run it? i went to the end folder and typed java Game that didn't …

Software Development java
Member Avatar for adams161
0
95
Member Avatar for adiiz

[B]I have this XML code and I want to print value of UserName and Email on console.Can you help me??[/B] [CODE]<?xml version="1.0"?> <USERS> <User> <UserName>abc</UserName> <Email>abc@gmail.com</Email> </User> <User> <UserName>abc</UserName> <Email>abc@gmail.com</Email> </User> <User> <UserName>abc</UserName> <Email>abc@gmail.com</Email> </User> <User> <UserName>abc</UserName> <Email>abc@gmail.com</Email> </User> </USERS>[/CODE]

Software Development c# xml
Member Avatar for Diamonddrake
0
348
Member Avatar for gnarlyskim

Next project in my C++ course is to create a class Polynomial to add, subtract, multiply by a scalar, and multiply by another polynomial. I've written my code, and it works fine when I run it, but there's an application that is provided by our instructor to compare my .exe …

Software Development c++
Member Avatar for Calista Flock
0
2K
Member Avatar for rebellion346

So, when I run the program and try to list all the information I get an interesting error message that pops up: ----- Debug Assertion Failed! Program: ...ocuments\Programs\C + + Programs\Checkbook\Debug\Checkbook.exe File: f:\dd\vctools\crt_bld\self_x86\crt\src\tccpy_s.inl Line: 19 Expression: (((_Src))) != NULL ----- Though I have an idea that it probably has something …

Software Development c++ file-stream ios
Member Avatar for rebellion346
0
234
Member Avatar for CHawk619

I have a couple of C++ labs that I need to finish before the end of the semester and I have been beating my head against this computer for days and I am not getting the code to work. I need some serious help. I need to get these done …

Software Development c++
Member Avatar for CHawk619
0
165
Member Avatar for digan

Can anyone see any way of improving this? [CODE]//____________________________________________________________________________________________ // START #include <iostream> using namespace std; int maxQ, total1; //____________________________________________________________________________________________ // CLASS(ES) class Queue { int array[]; public: //variabes int count; //constructors Queue(); Queue(int q); //functions void add(int i); void take(); }; //constructors initialization Queue::Queue(int q) { array[maxQ]; count = …

Software Development c++ queue
Member Avatar for arkoenig
0
96
Member Avatar for PieterA

Hi all I'm having a List of Entity's here which I would like to traverse. I want to call the function DisplayEntity for every node. Here's the catch: I have expanded the Entity class (same name different namespace) to have SDL data and methods. So basicly what I'm trying to …

Software Development c++
Member Avatar for PieterA
0
197
Member Avatar for kerp

Hi everybody, this text turned out to be rather long and maybe not so clear, please excuse me. I'm currently using the winsock library to send and receive data in an application made with WinAPI, I'm not using MFC. I'm using asynchronous sockets (I think that's what it's called) which …

Software Development c++ microsoft windows-api
0
181
Member Avatar for corrwee

Hey guys I'm having some trouble with a homework question from Zelles python. I have to make a Set class then test a variety of methods. However my teacher wants us to just use lists and not actually sets. I'm getting an error for the setElements method, it keeps saying …

Software Development python
Member Avatar for SgtMe
0
248
Member Avatar for Philosophy

I am just wondering if there is a way to put the following code into a loop or two so that it is easier on the eyes and doesn't take us so many lines. I have not been able to think of a way to do this with so many …

Software Development c++
Member Avatar for Philosophy
0
438
Member Avatar for shishh

I have a problem when I try to compile my code. Sorry in advance for non-english language in code.. npipe.c:78: warning: passing argument 1 of ‘sprintf’ makes pointer from integer without a cast /usr/include/stdio.h:361: note: expected ‘char * __restrict__’ but argument is of type ‘char’ npipe.c:80: warning: passing argument 2 …

Software Development c
Member Avatar for gerard4143
0
590
Member Avatar for killerpopiller

Problem with storing extracted values in SQLite - How to adress or index list of values for proper insertion into table. The Regex works fine: input logging data looks like: 0.0.0(06026104) 1.6.1(0.1501)(1011111000) 1.6.1*32(0.1446)(1010190800) 1.8.1(02484.825) 1.8.1*32(02449.574) correct regex output: 06026104 0.1501 02484.796 [CODE] with open("usage.log") as fp: for line in fp: …

Software Development python regex sqlite
Member Avatar for killerpopiller
0
244
Member Avatar for ems11

Hi i am in the final stages of my hangman program and need some pointers. I've gotten to a point where i am stuck and need a fresh pair of eyes to help me go over some of my problems any advice given will be greatly appreciated. [CODE]import java.util.*; import …

Software Development apple java
Member Avatar for jon.kiparsky
0
130
Member Avatar for shiftee

Hi all, I have a simple question that I can't find the answer to i'm using the following Exam.java (interface) ExamImpl.java (implementation) ExamFactory.java (interface) ExamFactoryImpl.java (implementation) The ExamFactory interface says the newExam() method return type is "Exam" The ExamFactoryImpl code currently returns "ExamImpl" Is this a problem?? i.e. Are Exam …

Software Development java user-interface
Member Avatar for JamesCherrill
0
286
Member Avatar for amari ♥

hi guys! please help me understand anything about recursion and iteration ways of coding. :) (maybe some overview, details or something) thank u. we haven't had any further discussion about this. ;p but our teacher gave an exercise that goes like this: make a program that gets the summation of …

Software Development c programming-construct
Member Avatar for saad749
0
227
Member Avatar for Sal Shah

PLEASE COULD YOU HELP ME IN CREATING A DOT GAME IN JAVA? ******************************************************* THIS IS MY ASSIGNMENT *************************************************** Design and develop an interactive visual 'stand‐alone' event‐driven Java application implementing the “Dots Game”. This is a two‐player game in which each player clicks in turn on a dot from a matrix …

Software Development java
Member Avatar for Sal Shah
0
116
Member Avatar for Joey_Brown

Hello. I have encountered a following problem "find all duplicate letters in a 2d char array and replace them with '@'" So for instance if I have this : a a b c The output would be @ @ b c So. I have come up with the following algorithm …

Software Development algorithm c c# c++ printer
Member Avatar for Joey_Brown
0
125
Member Avatar for enchuk

Hello everyone, i need help with using recursion in writing quite a simple code, but i'm kind of lost with recursion. The assignment is: When the user enters a certain amount of whole positive numbers and presses enter, the main function calls to the recursive separate functions that do the …

Software Development c
Member Avatar for enchuk
0
113
Member Avatar for destruct0

Hi !!! I wish to use multi dimensional List<T> is this possible? Can i do this somehow? Thanks in Advance !!!

Software Development
Member Avatar for croker10
0
96
Member Avatar for koushikG

I can't resolve a question.write a stucture in html that can call a perl script.please help.

Software Development html-css perl
Member Avatar for d5e5
0
194
Member Avatar for coril

So far, I have: [CODE]def printSquare(x,y): for z in range(0,x): print(x*y)[/CODE] printSquare(3,'%') prints out something like this: %%% %%% %%% instead of using the '*' operation, is there a way to print x numbers of y separated by commas (for better spacing) ie: print(y,y,y)?

Software Development python
Member Avatar for Gribouillis
0
574
Member Avatar for brycematheson

I'm creating a Sudoku game, and according to the rules of Sudoku, there cannot be the same number in any row or column. My question is this: How do I compare a value with an entire row or column in an array? For example: I have a 9x9 array that …

Software Development c++
Member Avatar for Fbody
0
132
Member Avatar for mikesr

Hi! I'm wondering how to perform: "To read and write call interrupts using instruction int (e.g. int 10h)." (in nasm x86) for example: [CODE] bits 32 extern _printf, _scanf global _main section .data message db "Hello!", 10, 0 section .text _main: pushad push dword message call _printf <--- how to? …

Software Development assembly
Member Avatar for Tight_Coder_Ex
0
870
Member Avatar for flasp

Hello this problem is from the beginner book C++ Primer Plus 5th edition.. The problem sounds something like this: Write a short program that asks for your height in feet and inches and your weight in pounds(Use three variables to store the information). Have the program report your body mass …

Software Development c c# c++
Member Avatar for flasp
0
1K
Member Avatar for notmasteryet

I am suppose to use arrays where i read in data from a text file and i have to set these functions to it. any clues on how i would approach it. my main concern is how to read data from a file using class while using arrays. i know …

Software Development c++
Member Avatar for muze
0
149
Member Avatar for gouzou

Hi to everyone! I have a problem with the following code. Can someone please point to me the error? #include <stdio.h> struct network{ char *name; }network1; int counter=0; main() { void add_network(); add_network(); printf("You typed: %s\n", network1.name); printf("counter is %d\n", counter); } void add_network() { char network_name[150]; puts("Give me the …

Software Development c
Member Avatar for gouzou
0
155
Member Avatar for akinfemi

string.indexOf(letter) checks for the first occurence. what can check for all occurences public class Hangman extends ConsoleProgram { private static final int MAX_NUMBER = 9; private RandomGenerator rgen = new RandomGenerator(); HangmanLexicon lexicon = new HangmanLexicon (); private static boolean end; private HangmanCanvas canvas; private static int x = 30; …

Software Development java
Member Avatar for JavaDad
0
233
Member Avatar for DallasFan3

[ICODE]Ok, I am typing up a program in which will play hangman with a user. I have done most of the program, but I have to let the program randomly choose a word from the list of words stored in your array. Afterwards, it should clear the screen and display …

Software Development java
Member Avatar for JavaDad
0
414
Member Avatar for Tiancailee

i am having errors when i compile this code such as: main_class.h(31) : error C2228: left of '.x' must have class/struct/union 1> type is 'float' main_class.h(31) : error C2228: left of '.y' must have class/struct/union 1> type is 'float' main_class.h(31) : error C2228: left of '.z' must have class/struct/union This …

Software Development c++ linked-list
Member Avatar for Tiancailee
0
135
Member Avatar for kdcorp87

i convert some opengl code from visual c++ 2006 to visual c++ 2010 i mean visual studio framework. problem is in visual studio 10 they r running but mainloop is not working, i mean windows r supposed to wait for key input but it shows and gone at instant. no …

Software Development c c++ opengl visual-studio
Member Avatar for Fbody
0
409
Member Avatar for DallasFan3

Ok, Iam now doing my last assignment for my class. Thank god. lol Well I have to make a problem that will write an interactive Java program that allows the user to play the game of Hangman with words that are given to me from a file. Here is what …

Software Development java operating-system puzzle unix
Member Avatar for jon.kiparsky
0
618

The End.