132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for .11

I have the log file blackjacksample.txt $10000 3 [2H, 4C, KC, 5D] $10 [QS, QD] $5 [AC, 3C, 4D] $25 [10H, 5C, 7H] [7C, 5C, 10H] $20 [JH, 3C, 8H] $15 [3H, 6D, JC] $5 [AH, KH] [9C, JS] $40 [5C, 7H, 3D, KS] $30 [9C, 10D] $50 [AD, 10C] …

Software Development java
Member Avatar for .11
0
114
Member Avatar for dpreznik

I am facing a problem with a CArray. I have a class member of type CArray<MyType, MyType&> m_MyArray; When the object is destroyed, of course the destructor of CArray<MyType, MyType&> is called. Here is the destructor: [CODE]template<class TYPE, class ARG_TYPE> CArray<TYPE, ARG_TYPE>::~CArray() { ASSERT_VALID(this); if (m_pData != NULL) { for( …

Software Development c++
Member Avatar for Tom Gunn
0
213
Member Avatar for Nathan Campos

Hello, I'm really starting in Assembly, but i want to know if it's possible to develop for ARM devices like those who run Windows CE, because i have an Jornada 720 and i want to develop to it, i'm already a Java developer, but Assembly will be another language that …

Software Development assembly
Member Avatar for jsuvrat
0
153
Member Avatar for chico2009

Hi All I am trying to learn Python and cannot get aroud this problem for the life of me. I have generated a sript as follows, called xandy.py def xandy (x,y): if x < y: print x, "is less than", y elif x > y: print x, "is greater than", …

Software Development python
Member Avatar for chico2009
0
111
Member Avatar for ubi_ct83

Hi all, its me again.can i have a function that return a double array?

Software Development c
Member Avatar for kvprajapati
0
177
Member Avatar for Loony064

Hey all I have an assignment for university where we have to write a program to simulate an IDS. Basically how it works is the user enters a code and the program displays a relevant message. If a specific code is entered, an e-mail must be sent to the adminsitrator …

Software Development api java
Member Avatar for Loony064
0
231
Member Avatar for sab786

hey does anyone know if there are any modules that i can download that if i feed in x, y values i can make correlation plots and other types of graphs Thanks

Software Development python
Member Avatar for sab786
0
93
Member Avatar for wewehalim

Hi, i need help in building a program about automata cellular. So, there is 4 state of cells, `0 = space, 1 = ".", 2 = "+", 3 = "#"` This state is continuous from 0 - 3, after 3, it will be back to 0. we need to compare …

Software Development algorithm c c# c++
Member Avatar for wewehalim
0
532
Member Avatar for lllllIllIlllI

Hi, Just wondering if someone could explain why this is happening: [code] >>> example = "" >>> example in "Hello there" True >>> [/code] I'm confused as to why [ICODE]example in "hello there"[/ICODE] gives a True value as return.

Software Development python
Member Avatar for sravan953
0
156
Member Avatar for kkcaddy

Hi everyone am new to java-ing i cant seem to create a class for my first application my "Hello World" when i type javac helloworld it returns that javac is not a in the path and i have created a path for java. Please help me.

Software Development java
Member Avatar for kkcaddy
0
101
Member Avatar for jrosh

I created a table in mysql db. it has a column with auto increment value. i checked inserting data through mysql console putting jst ' ' to the place of the auto increment value in the query. it worked ok. but when i do it through my java application (using …

Software Development java sql
Member Avatar for masijade
0
89
Member Avatar for chathuD

hi it me again... i need to show an image(a gif) in a blank wndows form (border less). he think is the place where the image is going to be visible...... when some one moove the mouse ponter to some place on the form and wait for their for some …

Software Development image
Member Avatar for chathuD
0
105
Member Avatar for facadie

1. How do i close 2 forms in runtime. Eg. I click BTNCANCEL in frm1 it will open frm2 and i want to click BTNNO in frm2 to close all forms in the runtime. How do i go about doing that. [frm2 is just asking the user whether to save …

Software Development
Member Avatar for facadie
0
122
Member Avatar for Demonisya

Hello guys i need help on my program factoring.... i have the progam here but the bad news is it is been giving me -3242 or infinite number as an output... I already been so busy changing any thing but i cant make the output correct the way it should …

Software Development c++
Member Avatar for minigweek
0
2K
Member Avatar for treyd

Okay here is the just of my assignment: Write a test program that creates an Account object with an account ID of 1122, a balance of 20000, and an annual interest rate of 4.5%. Use the withdraw method to withdraw $2500, use the deposit method to deposit $3000, and print …

Software Development java
Member Avatar for masijade
0
291
Member Avatar for hket89

Can I return an array from a function?

Software Development c
Member Avatar for wheel
0
156
Member Avatar for mrnutty

Does anyone know how to correctly add a 3rd party library to NetBeans? I have NetBeans 6.7.1 The library is from this site : [URL="http://wps.aw.com/aw_sanders_oopjava_1/36/9390/2403930.cw/index.html"]Link[/URL]. Its called wheels, and its for my class. It comes in a zip file. What I tried was this : 1) Set the zip file …

Software Development java
Member Avatar for masijade
0
896
Member Avatar for hery

This is my code: [code] Private Sub cmdHitung_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdHitung.Click Dim tempBASIC As String If strChrDec = "." Then strFormatDec = "#,##0.00;(#,##0.00)" formatSAVE = "############0.#0" Else strFormatDec = "#.##0,00;(#.##0,00)" formatSAVE = "############0,#0" End If If Val(Format(Convert.ToDouble(txtGajiPokok.Text), formatSAVE)) > 0 Then If Trim(txtGPPilih.Text) = …

Software Development vb.net
Member Avatar for sknake
0
249
Member Avatar for jralexander137

I'm trying to scan a line from a data file(txt format) it just contains a line of ints ex. 3457983257892 I need to scan the line and get the total number of individual ints. Basically, 34563456 would total to 8. I'm not sure how to manipulate a while loop using …

Software Development c
Member Avatar for Salem
0
102
Member Avatar for xfreebornx

[CODE]#include <iostream> #include<vector> #include<ctime> #include<algorithm> using namespace std; struct student { int id; char name; char nationality; char gender; student() : id(0) , gender(' ') { } student(int i, char g) :id(i), name(g) { } }; void insert(student array[]); bool sortByID(const student& a, const student& b) { return ( a.id …

Software Development algorithm c++
Member Avatar for hao001
0
320
Member Avatar for ofir0803

Hi I hope u can help me... i have a code that connect to mysql db and it works fine. [CODE] using System; using System.Collections.Generic; using System.Text; using MySql.Data.MySqlClient; using MySql.Data.Types; namespace MySqlExample { class Program { static void Main(string[] args) { string host = "localhost"; string database = "articles"; …

Software Development asp asp.net open-source
Member Avatar for sknake
0
188
Member Avatar for kreskin

Hi guys, I am new with c++, so please bear with me... I am reading in a text file that similar to this: $ABCDE,12345,12345,12345,12345.... I need to be able to place each number in a variable like: A = $ABCDE B = 12345 C = 12345 ... I can get …

Software Development c++
Member Avatar for kreskin
0
142
Member Avatar for wewehalim

i am developing 64 cell(column) for 20 rows of automata. I need to compare each cell (in a row) with the left and right cell. And then, after i finish 1 row, i need to do it for the next row. So, for example, after i have compared each cell …

Software Development
Member Avatar for Ramy Mahrous
0
3K
Member Avatar for rajivgupta1107

Hi, I am having python 2.4 on linux machine. I am using exec funcation as: objconfigfile=open(path, 'r') for line in objconfigfile.readlines() if line == None: continue exec(line) It is throwing exception as: invalid syntax for "exec(line)" Please let me know the issue, do we have exec function in python 2.4? …

Software Development python
Member Avatar for vegaseat
0
235
Member Avatar for Cory_Brown

I need to populate an array with the items a user has selected in a listbox. Example: Listbox contains A, B, C, D, E User selects B, D, E create an array containing B, D, E What method would I use to do this? I've found plenty of info for …

Software Development
Member Avatar for Cory_Brown
0
165
Member Avatar for wyett

Alright. Basically the point of this program is to allow a user to select how many fractions they want printed on the screen. It is supposed to print 3 fractions PER line. If a user requests 4 fractions..it would print 3 and print the 4th fraction by itself on the …

Software Development c++
Member Avatar for wyett
0
115
Member Avatar for shuffman

I'm working on this problem that has n positive integers in a row except for the first column, which always contains zero, these numbers represent the cost to enter each column. I'm supposed to get to the end of the board with the path that costs the least. I can …

Software Development algorithm c++
Member Avatar for shuffman
0
82
Member Avatar for onaclov2000

So I guess my question is: Can I grab an entire line using cin.getline(), and grab an entire line and ignore the whitespaces? What I'm trying to do is grab the following line: 2 3 and I want to know how many numbers are in it? OR maybe a better …

Software Development c++
Member Avatar for necrolin
0
122
Member Avatar for Lukezzz

In a textChanged event for a textBox I am trying to do a search function for ListBoxItems like below. It seems that I have done the code correct but no items is selected and when writing a string that is longer in length than the item that is shortest in …

Software Development c++
Member Avatar for Lukezzz
0
84
Member Avatar for ellimist14

Sorry about a n00b question but I'm having trouble. I'm messing around with linked list to try to get a good handle on them for the program I have to write. The program below was intended to fill a link list with structures then print out each structure. Instead it …

Software Development c++ data-structure linked-list
Member Avatar for ellimist14
0
116
Member Avatar for jwill113

[code] #include <string> #include <iostream> #include <fstream> #include <list> using namespace std; #include "mono.h" int main() { int e; string m; string z; string fname; mono * mptr; mono * mptr2; list<mono>P1; list<mono>P2; list<mono>::iterator P1itr; list<mono>::iterator P2itr; cout<<"Menu"<<endl<<endl; cout<<"A Enter two polynomials from a file"<<endl; cout<<"B Enter two polynomials via …

Software Development c++ file-system ios linked-list
Member Avatar for jwill113
0
104
Member Avatar for Smoking Bros

Well.. It's actually pretty simple.. I just created this real quick project to try out a new (and better ;)) way of loading images in XNA Game Studio 3.0 Visual Studio C# 2008 Express Edition but when I run & debug (F5) I get a warning telling me that I …

Software Development c# visual-studio
Member Avatar for serkan sendur
0
226
Member Avatar for MrNoob

hello i m suppose to do this program which should pass array of ptrs to a structure intilise and put student[i] info in each array i did most of it but now i got problem coz i cant just pass address of structure since its an array of ptrs to …

Software Development c
Member Avatar for MrNoob
0
152
Member Avatar for ameneh_p

hi i want to get it's implementation as soon as possible. i will be thankful for your help. :icon_redface:

Software Development algorithm c
Member Avatar for mrnutty
0
158
Member Avatar for helpme123456789

This is what I have so far. This isn't working and this isn't even close to working. I'm not that experienced at C++ so I was hoping that someone would help me please. The assignment is basically to write a code to validate an email address to see what characters …

Software Development c++ email
Member Avatar for VernonDozier
0
228
Member Avatar for jameswoodhouse

Hi there im very new to VB.net. However ive bee told its the best place for me to start if i want to program a small application for use with my family business. Basically i want to be able to enter the type of employee. Either (Manager, Help Desk or …

Software Development vb.net
Member Avatar for bubbachunk
0
197
Member Avatar for Avatar99

It compiles and executes but for some reason my vectors do not initialize in the fillarrays function. What am I doing wrong? [code]#include <iostream> #include <conio.h> // for getch() #include <vector> using namespace std; bool and (std::vector<bool> p, std::vector<bool> q, int i); // returns bool for and bool or (std::vector<bool> …

Software Development c++
Member Avatar for Avatar99
0
137
Member Avatar for destined2bbless

You have been asked to develop an application that will read book information from a text file to determine which publishers you use. The application will print a report of all unique publishers used. Johnny Smith xxxxxxxxxx Harper Collins Freedie Jones xxxxxxxxxx Harper Collins Lilly Laine xxxxxxxx Penquin Bobby Crosby …

Software Development java
Member Avatar for ~s.o.s~
0
110
Member Avatar for imclumsy

Hi I am trying to sort a generic object. When the object is created, it is created with three generic parameters and I want the parameters to be sorted when it is created. Here is my code: [code] import java.util.*; public class SortedTrio<T> extends Trio { T firstST; T secondST; …

Software Development java
Member Avatar for ~s.o.s~
0
235
Member Avatar for scrypt3r

I have a program that injects a MessageBox Dll into a running process, although the user has to input the process to injects PID, is there a way to get the process PID from its image?

Software Development c++
Member Avatar for William Hemsworth
0
167
Member Avatar for bal_1991

okay..so here's the thing......i have a test comin up tmrw regarding stacks and queues using templates....but my knowledge abt templates is minimal...could you plz suggest some links so as to understand templates from the scratch??? thnkx bal_1991

Software Development c++
Member Avatar for bal_1991
0
92
Member Avatar for Tom Tolleson

Hey, guys. I've decided to learn C++ for fun while we're having some downtime here at work. I'm using Microsoft Visual C++ and it doesn't explain a couple of bits of basic syntax: On the line int main () What does "int" stand for? It seems to be used for …

Software Development c++ visual-basic
Member Avatar for Tom Tolleson
0
129
Member Avatar for Ultratermi

Hey. Im working on a new Project but i need your help converting a std::string to double! I dont know why i get the LNK error so i hope someone of you know it :). Here are the includes... [code=C++] #include "stdafx.h" #include <windows.h> #include <iostream> #include <stdlib.h> #include <stdio.h> …

Software Development c++
Member Avatar for Ultratermi
0
137
Member Avatar for volscolts16

I am getting this error when I compile. I have tried taking Add out the code, but I do not get an output then. How can I fix this to produce an output?? [CODE] //This program serves as a test for the Matrix class #include <iostream> #include "Matrix.h" using namespace …

Software Development c++
Member Avatar for Salem
0
184
Member Avatar for LKH

my program cant be resert to ask the user input data again after while(ans.equalsIgnoreCase("y"); pls somebody can tell me!

Software Development java
Member Avatar for exception
0
47
Member Avatar for arunkumars

Hi, In my current project, Am drawing a set of boxes, all at run time, and inside them i have called few bitmap images for each box, this also happens at run time. now i need to click that image, the image should be selected and that image shud appear …

Software Development
Member Avatar for arunkumars
0
202
Member Avatar for MrNoob

hello i m doing some function for saving a structure of some employee to text but i want to do it using ptrs to struct normally i tried first using ptr to struct in some main function to test some stuff abt it but i get runtime error [code] #include …

Software Development c
Member Avatar for yellowSnow
0
128
Member Avatar for freelancelote

Hi, I'm trying to print a string on the center of a window using GridBagLayout. All I see printed is a part of the string I expect (the current month) instead of the whole string. I don't seem to be able to spot where the error is and I'd appreciate …

Software Development gui java java-swing
Member Avatar for freelancelote
0
209
Member Avatar for harshadap

how can i make os independent .exe file in java. I am using netbeans IDE for developing java project

Software Development ide java java-netbeans
Member Avatar for stephen84s
0
90
Member Avatar for xfreebornx

hey, please how can i create delete function in an array???

Software Development c++
Member Avatar for VernonDozier
0
105

The End.