132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for tiger86

I am making a game where I need to take one image and make it into multiple images. then when I click on the image, I want one to dissapear at a time. I believe this can be accomplished via arrays. I am still pretty new to C++, so I …

Software Development c++
Member Avatar for tiger86
0
199
Member Avatar for shashi86

Please someone help to print function has to print numbers like Snack and ladder game when 2 variables rows and columns are passed to a function. ex: fun(4,3) 12 11 10 7 8 9 6 5 4 1 2 3

Software Development python
Member Avatar for TrustyTony
0
190
Member Avatar for eladreznik

guys i have an issue with scrolling a datagridview (VB.Net 2010) using the mouse wheel i created a mousewheel event an i am catching the mouse-wheel movement up or down i created a scroll event and set the boundaries for the scroll, but i have no idea how to combine …

Software Development vb.net
Member Avatar for lolafuertes
0
223
Member Avatar for rebellion346

Im getting an error that says unresolved external and i have no idea what to do, does anybody have any ideas? by the way im not sure if my code actually does what its suppose to do, its still in the works [CODE] #include <iostream> using namespace std; class Measure …

Software Development c++
Member Avatar for rebellion346
0
88
Member Avatar for kazuki05

hey guys! mind if you help me here? we were asked to make a grading system. here is my code.. [CODE] #include <iostream> #include <string> #include <cstdlib> #include <iomanip> using namespace std; void main() { system("CLS"); char fn[50],ln[50]; string *name, *enam, temp, *R, wN, fin, lan; double gr, *g, temp2, …

Software Development c++
Member Avatar for Anyzen
0
110
Member Avatar for haroldelam

[CODE]#include <iostream> #include <string> #include <iomanip> using namespace std; // //CLASS DECLARATION SECTION // class EmployeeClass { public: void ImplementCalculations(string EmployeeName, double hours, double wage); void DisplayEmployInformation(void); void Addsomethingup (EmployeeClass, EmployeeClass, EmployeeClass); string EmployeeName ; int hours ; float wage ; float basepay ; int overtime_hours ; float overtime_pay ; …

Software Development c++
Member Avatar for haroldelam
0
117
Member Avatar for Jake1905

I am trying to figure out how to set a float for a project I am doing. Example I am trying to set a float for a score but I would like the input to be set where you can't input a number over a 100. This is the code …

Software Development c++
Member Avatar for VernonDozier
0
126
Member Avatar for python_noobie

Hello: I've been attempting to create a treemap (binary search tree) insertion and display function for a bit and am puzzled by the recursive calls. I've tried quite a few things, but the problem seems to be in my mapInsert function. Here's all the code I've written so far in …

Software Development python
Member Avatar for python_noobie
0
367
Member Avatar for flyingcurry

The below is the main method, the wrapper method, and the array search method for a step recursive method used for finding the index position of the searched string. I am encoutering this problem when whatever search I put in, I get the return value of -1. Why and how …

Software Development java seo
Member Avatar for flyingcurry
0
166
Member Avatar for ceyesuma

Hello. I created a JTabbedPane on a panel and put it on a JInternalFrame of a JDesktop in SetObjects.java. Why can't I get a tabbcount for it after running an AbstractAction? [b]reference JTabbedPane[/b] [code] [/code] [b]reference JTabbedPane[/b] [code] M =(" --> in controlJMenuItems("+e.getActionCommand()+") var: e.getActionCommand() : xxxxxxxx<-- \n"); System.out.println(M); jtp=SetObjects.getCurrentJTabbedPane(); …

Software Development java java-swing
Member Avatar for ceyesuma
0
157
Member Avatar for JavaRookie88

Im having trouble creating a Word Decoder, Basically I'm trying to write a method that chooses a random character, and increases in by one place (a to b, b to c) and so on. Any ideas in how to approach that? Thanks, JavaRookie

Software Development java
Member Avatar for Eric Cute
0
178
Member Avatar for twitchybear

Everything works fine except when you roll a non-instant win or lose, you always win on your next roll #include <iostream> #include "Crapsfunctions.h" #include <conio.h> #include <ctype.h> using namespace std; void main() { double Money; double Bet; long Roll; long Roll2; long Point; long NumRolls; char Answer; //prototypes long throwdie(); …

Software Development c++
Member Avatar for WaltP
0
164
Member Avatar for kyojin

I need to create a menu, and then depend on the choice, carry out a certain task. But sumhow any number i put in become sumthing else so the switch become deafualt. Can sum1 help? [ICODE] import java.text.DecimalFormat; import java.util.Scanner; public class Lab0602_ATT { public static void main (String args[]) …

Software Development java
Member Avatar for Eric Cute
0
93
Member Avatar for Suzie999

Can anyone tell me where to get started to get an md5 or sha1 checksum of a given file. I've searced around and all I can find are utilities, I also looked at wincrypt but It seems to me that it just does passwords and strings and suchlike. Any help …

Software Development c++
Member Avatar for Suzie999
0
668
Member Avatar for zachattack05

I'm lost on this one. I'm creating a "Preferences" type form. On this form I have a tree view and a panel. I have created multiple user controls, each to be displayed in the panel when a certain tree node is selected. The problem I am having is finding the …

Software Development display
Member Avatar for zachattack05
0
899
Member Avatar for destruct0

Hi!!! I create my own custom control and everything is perfect except this event. I don't understand it. When i add my custom control to Window Form i add MouseDoubleClick event to this control. And when i start Application and try to double click on it is nothing happen. I'm …

Software Development
Member Avatar for acheo
0
3K
Member Avatar for patto78

The following is a recursive function designed to return the factorial of a number. [CODE] def factorial(number, target): if number == 1: return target else: target = target*number factorial((number-1), target) print factorial(7, 1) [/CODE] As you'll see if you run it however it doesn't return my 'target' variable (the factorial …

Software Development python
Member Avatar for patto78
0
205
Member Avatar for TheFeedingHand

So I'm doing this stack program , and basically when I try to print the elements in the stack, nothing happens... I'm totally lost : ( , any help would be appreciated. Oh and some function names are in spanish, llena means full, vacia means empty, the variable cuenta is …

Software Development c
Member Avatar for mg120
0
180
Member Avatar for knan

I have dictionary with single element lists. [CODE]dictionary={'a':['A'], 'b':['B'], 'c':['C']} [/CODE] How can i change it to [CODE]{'a':'A', 'b':'B','c':'C'}[/CODE]

Software Development python
Member Avatar for TrustyTony
0
150
Member Avatar for taylord69

i have to write a function (dayNumber) that returns the day number in a year for a date that is provided as input data. i cant use const, struct, or loops, it has to be very basic stuff. i have something written but i can figure out how to get …

Software Development c++
Member Avatar for taylord69
0
116
Member Avatar for techie1991

I was trying to code the assembly line sheduling problem using the dynamic programming approach. I have coded the program but i am facing problem with the 2-dimensional arrays I am using. For testing purpose, I wanted to initialize the array, but I was not able to get it. Moreover, …

Software Development assembly c++
Member Avatar for Fbody
0
216
Member Avatar for LoLFactor

I'm interested in making an .ini file parser and I want it to have an internal list that can hold it's individual entries. The catch is I want to make one list to hold all the values. That means strings, boolean values and int types. I have a class to …

Software Development c c# c++
Member Avatar for Momerath
0
218
Member Avatar for Ninoaoe

hi!!!! i'd like to ask if anyone knows how could i possibly use a string as a number...i mean: i've got something like cin>>word; but if that word is a number(like 1,2,3... etc) i have to use that number for going in that line. if user types ''hello'' its ok.but …

Software Development c++
Member Avatar for Ninoaoe
0
132
Member Avatar for Mr Tk

Hi I have a question about a problem I'm having with raw_input function in python. I'm writing a CL program that requires a comment to be entered by the user, however problems arise when someone makes a mistake entering said comment. [CODE=python]comment = raw_input(Enter comment: )[/CODE] User Input: Archie^?ve testing, …

Software Development python
Member Avatar for Mr Tk
0
3K
Member Avatar for bnath001

Howdy, I want to make a sql that goes to oracle. the sql should be "Select "cusip", "price structure" from tableA" (basically the columns are wrapped in double quotes. I used this synatax in C#: string mysql = "select "+'"'+"cusip,"+'"' + '"'+ "Price structure\"" from tableA" and I am getting …

Software Development c c# c++ oracle sql
Member Avatar for Kimpl
0
116
Member Avatar for knan

I dont know what goes wrong in this piece of code?!! I keep getting the following error. File "<stdin>", line 11 t1.append(list[temp]) ^ SyntaxError: invalid syntax [CODE]tl = [] for inlist in token_list: temp=[] for token in inlist: temp.append((zlib.adler32(token,65521)) tl.append(temp)[/CODE]

Software Development python
Member Avatar for Gribouillis
0
158
Member Avatar for Enders_Game

I have a class with a button, it runs the command automatically when the gui is constructed (which i dont want it to do) but then doesnt work again after. What am I doing wrong? Builtin commands such as endcommand work as they should. relevant excerpts (ignore the indent problem …

Software Development gui python queue tkinter
0
106
Member Avatar for comsians

hi i wannt ot make a programe in C inwhich user input current date and date of birth, output shows age in the number of years, months, days, etc., PLease help me!!!!!!!!!!!!!!

Software Development c
Member Avatar for comsians
0
366
Member Avatar for yap_1991

Hi, Im creating a GUI however i'm experiencing some difficulties. I want to have a text field and a button both placed inside a radiobutton. I've tried inputting ONLY the button, but the button is not displayed when i run the codes. Would be good if light could be shed, …

Software Development gui java java-swing
Member Avatar for di2daer
0
181
Member Avatar for br0wnm4n

Hello, I have been working on this code but I can't seem to make it work. I want to implement function index() that takes as input the name of a text file (as a string) and a list of words. For every word in the list, the function will print …

Software Development python
Member Avatar for br0wnm4n
0
250
Member Avatar for ricardo.crudo

I have this: [B]foo(cons char *p);[/B] foo not is my function, and I don't have access to your source code. I'm trying use foo so: [B]char val[32]; foo(val);[/B] The result of foo is zero and not the desired string. Other tries: This work: [B]foo("something here");[/B] This don't work: [B]foo((cons char …

Software Development c
Member Avatar for Ancient Dragon
0
175
Member Avatar for Shlaa

Okay, I started learning Python last weekend on Saturday with some tutorials and a book. With this being my first programming language my program won't amaze you :P The program I made is a calculator for working out how much turf a person would need given the length and the …

Software Development python
Member Avatar for Shlaa
0
138
Member Avatar for hassin

Write a program in java to a class called Employee which is having the following instance variables. name(string type) age(int type) designation(string type) salary(double type) The class Employee must have a parameterized constructor having only name as the argument and initializes the name variable. Proceed with same class.... write a …

Software Development java
Member Avatar for masijade
0
159
Member Avatar for Diogo Martinho

I am facing a very simple problem that many of you will be able to solve, however I'm having a hard time trying to figure a method to program this. I am trying to create a dynamic array with the many prices of different clothing for a shop I'm creating. …

Software Development c++
Member Avatar for Fbody
0
165
Member Avatar for myk45

Hello, Well, this is not a question directly related to programming, so kindly excuse me for that. i have a small doubt regarding endianess and dereferencing of elements This is what i tried: [CODE]#include <stdio.h> int main(void) { int s = 0xFFFFFAFF - 1; int *p = &s; unsigned char …

Software Development c
Member Avatar for Ancient Dragon
0
100
Member Avatar for heidik

Could anyone please show me a working example of how to find if a file exists but is empty or not? Thanks

Software Development c++
Member Avatar for Ancient Dragon
0
354
Member Avatar for hatux

Can somebody enlighten me why do i get an exception ? code is over here : [CODE] import java.io.InputStreamReader; import java.util.*; public class ObtainKey { public static void KeyAnalyzer(String input) { int idx = 0; int tokenCount; String inputArr[] = null; StringTokenizer st = new StringTokenizer(input); tokenCount = st.countTokens(); for …

Software Development java
Member Avatar for hatux
0
133
Member Avatar for hag++

Hi All, I am writing an MFC Tic Tac Toe app and I am getting a strange error when debugging it. This module loads a bunch of BOOL variables to keep track of whether or not the tile next to it matches (i.e is the tile next to me also …

Software Development app-store c++
Member Avatar for hag++
0
362
Member Avatar for j855

Is it possible to sort a list of numbers from largest to smallest? Like if I had a list of numbers in variable a

Software Development python
Member Avatar for j855
0
70
Member Avatar for i.am.wolf

So, our group was assigned a project to calculate the GPA of a student. We are using visual Studios 2010. Anyway, all seems to be good but I just cant figure out how to link the out put the GPA to its corresponding boxes. If you scroll down to the …

Software Development visual-studio web-browser
Member Avatar for ddanbe
0
372
Member Avatar for Spiderpig085

hi Guys, Just started java and so far not too bad but i tried to sort out packages today and got this error. Stuck on it for hours. I'm not sure if im importing or setting up the pacakages properly but that where I'm hoping you can help... Im dealing …

Software Development java java-swing
Member Avatar for Spiderpig085
0
209
Member Avatar for chris evans

Hi guys! I created a simple code to add records into an SQL database as shown below. It seemed to be working but then the next time i tried running it, i got no output. actually on clicking the button nothing happens at all. no warnings or error messages at …

Software Development open-source vb.net
Member Avatar for AndreRet
0
150
Member Avatar for chris evans

Hi, could someone please show me how or direct me to a source where i can learn how to connect and manipulate SQL Server 2008 database with VB.NET. I have created a database in SQL Server 2008 and i've created forms for viewing data on VB.NET but i dont know …

Software Development vb.net
Member Avatar for AndreRet
0
214
Member Avatar for Sunshineserene

Hi. I have a 2D array in a particular class file. Now, I want to equate a 2D array from another class to it. May I know how to do it? So far, this is what I've done: Example: [CODE]private double[][] residuescores = MatchApplet.mydouble;[/CODE] residuescores is from a class itself, …

Software Development java
Member Avatar for JamesCherrill
0
160
Member Avatar for Chalson

After i key in 20 different value of float, what command should i use so that i can determine the largest and smallest value from these numbers ?

Software Development c++
Member Avatar for PsychoLogic
0
201
Member Avatar for wilsonz91

Hi, I read a few post on passing arrays from one class to another but i can't understand. I tried doing it and i'm stuck with it, would really appreaciate it if you can help correct the following code: [CODE] //This is my super class public class Transport { protected …

Software Development java
Member Avatar for JamesCherrill
0
6K
Member Avatar for punchinello

Hi I'm new to MFC programming. What do I do if I want to make my window look better? Say, with a button that is not rectangular but oval? And maybe throw in some animation effects? Thank you very much!

Software Development c++
Member Avatar for punchinello
0
81
Member Avatar for ryan400

Here is my code, for some reason it goes to an infinite loop when i try and adjust the highest and lowest values for the Math.Random() method. The code works fine if i do not try to change those values based on if the guess was higher or lower than …

Software Development java mathematics
Member Avatar for ryan400
0
1K
Member Avatar for morgon

I have made a wery simple program but i still get a linker error I have one class Node.h #[CODE]ifndef Node_H #define Node_H #include <iostream> using namespace std; //class node has four fields: type, child1, child2 and parent. The type is -1 if it is a inner node, 0 if …

Software Development c++
Member Avatar for gerard4143
0
113
Member Avatar for SHENGTON

Hello, good evening. :) I'm having a hard time with my "Searching" codes. :( [b]The problem is:[/b] When I try to search the employee number after registering, my program will print "EMPLOYEE NUMBER NOT FOUND". I don't know where's the culprit. :( Here's the whole codes: [code=C]#include <stdio.h> #include <conio.h> …

Software Development c
Member Avatar for PsychoLogic
0
157

The End.