132,729 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for chade25

First let me say, please don't post code back all fixed. If you see where the error is, just tell me where it is and I will look to find it. Thanks, much appreciated! [CODE] /* void processCmdLine(void) Function: parses the command line using gettok(), and constructs an argument list. …

Software Development c
Member Avatar for chade25
0
144
Member Avatar for TrueVb.NetNoob

Hi Everyone! Is there anyway to create A program which can demonstrate the following function: A capsule machine(Similar to a candy machine),when you,say,insert a coin into it and can randomly pop out a capsule containing an item in it? How(or any possible way)is to code the probability for a particular …

Software Development vb.net
Member Avatar for TrueVb.NetNoob
0
126
Member Avatar for yasirjani

I have made the treasure hunt game using 2D array. where '#' are the walls '*' is the border of the game. i want to place '@' as tresure at random postion between the spaces of 2D Array of size [20][20]. i know i have to use #include<time.h> time_t t; …

Software Development c++
Member Avatar for yasirjani
0
108
Member Avatar for aniyishay

Hey guys, Im trying to learn python and i decided to try and make a text based tic tac toe game. I dont have the matching up yet (where the rows say there are 3 in a row they win). But I have this so far and as you can …

Software Development python
Member Avatar for aniyishay
0
2K
Member Avatar for Kesarion

What I want to do is get my screen into a pixel array(array or rgb structs). I got a program running that loads a .bmp and does this but I want to skip the manual printscreen and loading and get it straight into an array. I searched a lot for …

Software Development c++
Member Avatar for Mephesh
0
249
Member Avatar for crapgarden

Is this: A)[CODE]while (!isLegal(move, board))[/CODE] the same thing as: B)[CODE]while (isLegal(move,board) = !!)[/CODE] ?

Software Development c++
Member Avatar for crapgarden
0
147
Member Avatar for madzam

I try to modify the below code by using the Arrays but unable to success , would someone help me please. Thanks [CODE]//Outputs the lowest, highest, and average of inputted temperatures //using an array structure #include <cstdlib> #include <iostream> #include <iomanip> using namespace std; int main() { //input variables float …

Software Development c++
Member Avatar for Andreas5
0
162
Member Avatar for matwe

hi.. can anybody help me to list a few java security problems and its solution? i hope somebody will help me.. thanksss..

Software Development cybersecurity java
Member Avatar for tong1
0
88
Member Avatar for Andreas5

I finally got this exercise working and i just need someone to tell me im awesome. Or just some feedback or tips on what i can improve(probably alot:)).[QUOTE]Write a program which performs addition, subtraction, multiplication of matrices. The dimensions of both the matrices would be specified by the user (dynamic …

Software Development algorithm c++ matrix-multiplication
Member Avatar for Andreas5
0
126
Member Avatar for ichigo_cool

Okay. I created a program to create a character, and it uses a random number generator to initialize the Character classes strength and dexterity. Here's the character class constructor. Since the random number generator is based on time, both strength and dexterity have the same value when they're initialized. Is …

Software Development c++
Member Avatar for mrnutty
0
240
Member Avatar for Qu4n7um

Well I'mm 14 years old and I'm very interested in learning some programing languages like c++ and so on . I don't know were to start at , or what to do i have no money to go buy books to learn , if any one could point me on …

Software Development c++
Member Avatar for ichigo_cool
0
185
Member Avatar for Jamesbch

Hello everyone, I find C not very flexible this time because I know there is an easy way to assign field values to a struct like this : [CODE]Struct mine = { field1, field2, ... };[/CODE] but in my case "mine" is contained in a bigger struct. So I have …

Software Development c
Member Avatar for Adak
0
155
Member Avatar for aukeebler

What did I do wrong? It won't does not work for my choices... [CODE]#include <iostream> using namespace std; //function prototypes void displayMonthly (double[]); void displayTotal (double[]); int main() { //declare variables and array int choice = 0; double rainfall[12] = {0.0}; //get rainfall amounts for (int x = 0; x …

Software Development c++
Member Avatar for PatrixCR
0
65
Member Avatar for usiyalla

hi guys i'm new in java and this site too i was making a small program but this mismatchexception making me angry i really appreciate if u answer my these stupid questions 1. what is token... 2. Exception in thread "main" java.util.InputMismatchException at java.util.Scanner.nextInt(Unknown Source)[/TEX][/TEX][/TEX] at java.util.Scanner.nextInt(Unknown Source) at Main.check(Main.java:63) …

Software Development java
Member Avatar for NormR1
0
1K
Member Avatar for aea414

Hello all, I think am having problem getting the add_to_list function below to work. I created it so that it accepts a pointer to a linked list, a pointer to a char array (string) and a number for occurrence of the word. [CODE] #include <stdio.h> #include <stdlib.h> #include <string.h> #include …

Software Development c file-system linked-list
Member Avatar for aea414
0
204
Member Avatar for computerdummy30

I am supposed to write a food menu program for this one summer class an i have been trying for the past 2 hours to figure it out. Directions: Write a program which allows the user to choose a beverage, sandwich and side order from a menu. After the choices …

Software Development c++
Member Avatar for EngSara
0
89
Member Avatar for bbman

Hi folks, I am a beginner in Socket Programming. I am trying to do some simple stuff but had a basic query. I would like to implement something like wget in C top of a TCP socket (i.e., without using any HTTP libraries). Just provide a URL (Example-- $wget [url]www.foo.com/bar.pdf[/url]) …

Member Avatar for Jamesbch
0
104
Member Avatar for Toulinwoek

I have a combo box on a form (MainForm) that's bound to a column in a database table. I want this combo box to get it's list of selections from a second table (LocationsTable). Items are added or deleted from LocationsTable via a second form (frmLocations). If I have MainForm …

Software Development perl
Member Avatar for Toulinwoek
0
85
Member Avatar for jiglypop

can anyone give me the source code of CAST 128 encryption algorithm written in c++ language?... I really need this for my thesis.

Software Development algorithm c++ encryption
Member Avatar for mrnutty
0
62
Member Avatar for so0lid

Hi everybody, I am trying to make the real substr function in c++ which its a member of String Class. Here what I have done: [code]void substr(char x[], int n, int n2){ char *p; p = x; for(int i=0; i<=n2; i++) *(p+i) = *(p+i+n); *(p+n2) = '\0'; // I can …

Software Development c++
Member Avatar for mrnutty
0
98
Member Avatar for chade25

I am trying to write my own shell. I am having problems with the user input part. I have made an array (char inputBuff[512]) and I want to read in user input. I am using ffputs() and ffgets() but I want to limit the person to the 512 size, and …

Software Development c
Member Avatar for chade25
0
118
Member Avatar for rowley4

I need to write a program that implements the reverse function using a recursive solution by removing the first character, reversing a sentence consisting of the remaining text, and combining the two. I have written this code below. I have two problems. 1, I am getting a fatal error on …

Software Development c++
Member Avatar for rowley4
0
330
Member Avatar for coding101

Why is the debugger showing that it is skipping my loop in this method [CODE] /** * Adds an item to the list. This method assumes that the list is already * sorted in alphabetical order based on the names of the items in the list. * * The new …

Software Development java
Member Avatar for coding101
0
116
Member Avatar for kate2mba

Wirte a regular expression pattern to match all words ending in s. This is what I got but seems like im thinking to hard on it, plus of course its not working lol Please help! :) [CODE]import re str = "Subs are everwhere" print (str) matchObj = re.match(".*?s ",str,re.L|re.I) if …

Software Development python
Member Avatar for kate2mba
0
151
Member Avatar for digital_dizasta

Question 1 Package-delivery services, such as FedEx®, DHL® and UPS®, offer a number of different shipping options, each with specific costs associated. Create an inheritance hierarchy to represent various types of packages. Use Package as the base class of the hierarchy, then include classes TwoDayPackage and OvernightPackage that derive from …

Software Development c++
Member Avatar for mrniceguy03
0
3K
Member Avatar for TheComputerGuy

Morning to all those Daniwebbers out there! I have what I thought was an odd task of converting a String into an INT. I know of the parser Integer.parseInt(x) However if the user enters 02/14/2010 the / are not an INT type. I've thought about using substring possibilities. Taking substring …

Software Development java
Member Avatar for ~s.o.s~
0
188
Member Avatar for RStartin

Hi everyone, I just started doing C++ coming from a java background. I'm writing a discrete event simulator at the moment and need to put 'job' objects into a priority queue and sort them by their next job time- i.e. shortest job time first. I first tried doing the following: …

Software Development c c# c++ queue
Member Avatar for RStartin
0
386
Member Avatar for abcdr

I need to write a function that takes a string as an argument and outputs the letters backward, one per line.so far I have this: [code] def wordReverse(word): acum = "" for ch in word: acum = ch + acum return acum [/code] I tried adding \n to acum but …

Software Development python
Member Avatar for TrustyTony
0
199
Member Avatar for kate2mba

Hi all its me needing help again :P My exercise says: Write a function wordPop that accepts a text and a length N and returns the list of all the words that are N letters long, sorted by their length. okay so what I have is 2 fuctions first: [CODE]def …

Software Development python
Member Avatar for kate2mba
0
187
Member Avatar for epicasian

When I try to compile my project, I get 138 errors about the include files in VC++ 2008: [url]http://pastebin.com/yfp85sMF[/url] Thanks in advance, ~Asian

Software Development c++
Member Avatar for mike_2000_17
0
165
Member Avatar for johny1980

i am working on medical billing and coding project.i am at login page right now. i create form and code but i had error for InvalidOperationExcepmtion was unhandled. i am really thankful for help who will give. my code is here : [CODE]Imports System.Data.OleDb Public Class login Inherits System.Windows.Forms.Form Dim …

Software Development open-source vb.net
Member Avatar for finito
0
155
Member Avatar for aukeebler

Error 1 error LNK2019: unresolved external symbol "void __cdecl calcCelsius(double)" (?calcCelsius@@YAXN@Z) referenced in function _main

Software Development c++
Member Avatar for aukeebler
0
78
Member Avatar for WargRider

Well, I am writing a game / engine in 2d in , and I have gotten quite far, my problem is I was reading some stuff about the engine Slick2D, which is pretty much one of the most popular 2d engines in Java, I noticed that the creator said he …

Software Development java opengl
Member Avatar for WargRider
0
305
Member Avatar for old_jefrey

Let’s say you have few functions: func_1(arg1, arg2, arg3) , func_2 (arg1, arg2) and func_3 (arg1, arg2, arg3). All 3 performing similar steps: func (arg1, arg2, arg3) { Read line from the file validate_func() Store results into arg3 } So my question is – what would best way to approach …

Software Development c++
Member Avatar for mike_2000_17
0
141
Member Avatar for epicasian

Hello, I'm trying to create my own game engine, and ran into a problem with nested classes. Currently, I only have one class that has any methods: [CODE] #ifndef WINDOWMANAGER_H_ #define WINDOWMANAGER_H_ #include <SFML/Graphics.hpp> #include <string> namespace tnt { class Engine { public: class GeneralCore { public: class WindowManager { …

Software Development c++ window-manager
Member Avatar for epicasian
0
109
Member Avatar for aukeebler

For a function protoype header can one be double while the other one is void? I'm trying to make the void displayPayment function work, but am a little lost. Should I turn the carPrice, Rebate, ect.. into void functions in the prototype, or can they work without doing that? Thanks …

Software Development c++
Member Avatar for WolfPack
0
199
Member Avatar for joydsouza90

hey all so here's my problem: im just trying to learn a little opencv and ive been stuck at this for a while. When i run the following code, i get a runtime error " An application has made an attempt to load the C runtime library incorrectly ". This …

Software Development c++
Member Avatar for WolfPack
0
782
Member Avatar for Annex

Hi. I need TextBox in which user can input only numbers. I found some examples about it, but can't do them. For example in the following code Private Sub TextBox1_KeyPress(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles TextBox1.KeyPress If Not (e.KeyChar.IsDigit(e.KeyChar)) And _ e.KeyChar <> ChrW(Keys.Back) Then e.Handles = …

Software Development vb.net
Member Avatar for risingsunankur
0
579
Member Avatar for juzzy

hi, im trying to do something like the following: text_area = wx.TextCtrl(self.panel, -1, style=wx.MULTILINE) a = (all the text in the text control window) I can't get my head around how to define the text with wxpython, how should I go about this?

Software Development python
Member Avatar for vegaseat
0
142
Member Avatar for King_Alucard

[CODE]#include <iostream> #include <cstdio> #include <iomanip> #include <cstdlib> #include <ctime> using namespace std; int main() { int rNumber = 0; int uNumber = 0; const int maxNum = 10; const int minNum = 1; const int range = maxNum - minNum; int counter = 0; //declare random formula srand((unsigned int)time(NULL)); …

Software Development c++
Member Avatar for King_Alucard
0
156
Member Avatar for avataralien

I am not sure what is wrong with my While Loop because if select ("Press 0 to edit info."), I will not get prompt for "Name" anymore. Another thing is my exception does not work. I wanted to deny user from entering alphanumeric under "Mobile". Only numeric allowed here. Pls …

Software Development java
Member Avatar for avataralien
0
119
Member Avatar for Ubraxis

I require some help with a program I've got to write, the theory behind it is based around OOP, but I'm having trouble grasping what exactly I should be doing. I'm not entirely sure how to call the addProperty method from the Property class, or even that I've written out …

Software Development java oop
Member Avatar for Ubraxis
0
102
Member Avatar for Naveed_786

Dear All, Please help me i want to take print of my form in a short slip please give me some code to fit the print siza on the short page i am usin LQ+ 300 printer for this purpose please please help me. Thanks in advance.

Software Development printer vb.net
Member Avatar for finito
0
71
Member Avatar for aryanarora

Hey i m new in java please tell me the delay function in java lika it works in c/c++.

Software Development java
Member Avatar for tong1
0
75
Member Avatar for danswater

Hi again guys. Well i need to convert char to int my problem is how can i get the exact value of int if for ex: [CODE]char x=2;[/CODE] i need to convert that to integer.

Software Development c
Member Avatar for rax_19
0
117
Member Avatar for manailz

public class HelloW { public static void main(String[]args) { println("hi, im aileen an it student, can you help me improve my knowledge with the different languages?"); println("thanks"); } }

Software Development java
Member Avatar for tong1
0
154
Member Avatar for rv_mup08

im newbie in C++ i have a project about how to get the Total Number of HOurs Worked From inputed Tine in and Time out Time in Format: 08:00 Time Out Format:12:00 Input From Monday to Friday DTR Output must be Display the Total no. of Hours worked: 102:59 --->Example …

Software Development c++
Member Avatar for rv_mup08
0
2K
Member Avatar for csha_cs508

our task is to show the histogram in a vertical orientation like this: Sample Input/Output Enter a string: waka waka fifa Histogram for waka waka fifa * * * * * * * * * * * a f i k w I have here my code, but the output …

Software Development c++
Member Avatar for jonsca
0
927
Member Avatar for tong1

/* The following programs are written to guard the input. The input is requested as an non-negative integer.Is there other method to do so? */ /* Operation on DOS window: "PositiveInt1" receives a positive integer only. */ import java.util.*; public class PositiveInt1{ static int factorial(int n){ int fac=1; if ((n<0) …

Software Development java java-swing
Member Avatar for NormR1
0
129
Member Avatar for Jollyyy100

Hi, would u please help me with the buttons i use on my vb.net forms. I want a way in which if i drag my mouse onto a particular button it would increase its size and if i click onto it, it can respond to the codes. May be like …

Software Development gui vb.net visual-basic
Member Avatar for Jollyyy100
0
176

The End.