43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for nelsonsu

as the problem i'd met b4: [url]http://www.daniweb.com/forums/thread115104.html[/url] there's another problem looks like same with that problem, is about the logic of the int outq. this make the result1.txt always get unknown words after few loops. i'd like to know how to correct it. [code=cpp] #include <stdio.h> #include <stdlib.h> #include <time.h> …

Software Development c++ file-system queue
Member Avatar for nelsonsu
0
90
Member Avatar for rysin
Member Avatar for Ene Uran
0
110
Member Avatar for lacaroix

in my application, i need to add a sound.how can i add a sound button? after click a button it will play the sound.no need a stop button.. thanks in advance..

Software Development vb.net
Member Avatar for Jx_Man
0
506
Member Avatar for William Hemsworth

Hi I have a memory leak somewhere in this code but I have no idea where. Can anybody help me out ? [CODE] #include <windows.h> #include <mmsystem.h> #pragma comment(lib, "winmm.lib") #include <fstream> #include <time.h> #include <cstring> #include "resource.h" using namespace std; const char cn[] = "SameGame"; // ClassName HBITMAP BLUEBMP …

Software Development c++
Member Avatar for William Hemsworth
0
200
Member Avatar for DanLB

Hi all I'm new to this forum - Hope you can help me with my problem. First off all; I apologize for my poor english skills, i'm from sweeden I'm trying to make a simple phonebook by using a vector of struct's. As you can see in the code pasted …

Software Development c++
Member Avatar for Ancient Dragon
1
530
Member Avatar for nelsonsu

as the project given input1.txt and command1.txt to create result1.txt input1.txt: 1 C0A80001 8F22 C0A80002 0050 32D5B9C 2 C0A80001 8B05 C0A80002 0050 12D67B 3 C0A80001 CC08 C0A80002 0050 32D5B9C 4 5 6 C0A80001 C4A3 C0A80002 0050 34F1 command1.txt 1 output 2 output the queue length 3 idle 4 output 5 …

Software Development c++ queue
Member Avatar for nelsonsu
0
261
Member Avatar for Uncle_John

hey, is it possible to make a python program that could interact with internet, for example a program that could make a search on google. If it is possible then how could i do that?

Software Development python
Member Avatar for wwwalker
0
171
Member Avatar for henpecked1

Okay, figured that much out but I'm getting compiler errors on my object (which has data members from another object) [code] void statistics (int rolls[];int rollsize; int rollresults []) threedice tryerluk; rollsize=200; rolls[rollsize]; rollresults[16]; for (int i=0;i<201;i++) { tryerluk.rollem(); rolls[i]=tryerluk.getsumFaces(); }void statistics (int rolls[];int rollsize; int rollresults []) threedice tryerluk; …

Software Development c++
Member Avatar for vmanes
0
310
Member Avatar for torbecire

I am having trouble were to declare the abstract classes for Widget, Sport and Grommet. They are not being read in the main part of the program could anyone tell me where to declare them so that they will be read. [ICODE]/* * To change this template, choose Tools | …

Software Development java
Member Avatar for darkagn
0
102
Member Avatar for perseus150

I am having trouble creating an inverted half-square out asterisks. The problem requires three nested for-loops, I believe, but am unsure as how to proceed. Here is the work I have so far, with the UN-inverted half-square code in [I]italics[/I]. The inverted portion should be a simple manipulation of that …

Software Development c++
Member Avatar for perseus150
0
228
Member Avatar for Crushyerbones

Basicaly I want to see if a a number (in my example: 12345678910 ) contains another, smaller number (1234). For this I decided to turn a into a string. For some reason my "in" function never worked. But now for some reason if I ever decide to invoke, there's a …

Software Development c
Member Avatar for Crushyerbones
0
122
Member Avatar for rysin

Hey guys. Ive been coding python for about a year now, and yesterday my older brother,who has no experience in programming at all, asked me when I was going to start programming video games. Is there some sort of test I can take to see if im ready for this …

Software Development python video
Member Avatar for 1337455 10534
0
162
Member Avatar for Jennifer84

This code is written inside a textBox event handler like this. What happens is that when you have written the word: "Hello" wich consists of 5 characters, this word will be selected, change color of "Hello" to blue, deselect the word and put the cursors position after the word Hello. …

Software Development c++
Member Avatar for Jennifer84
0
116
Member Avatar for Jennifer84

I have a fully functional code below to read a textfile from a directory and load this into a textbox. What I have done is to put this code inside a comboBox control and what I am trying to achieve is when you select an item in the comboBox then …

Software Development c++
Member Avatar for Jennifer84
0
144
Member Avatar for henpecked1

I have my two classes built, one actually uses the other as a data member. Now I need to call that object to fill an array and don't know the syntax to do it. The two classes are in this thread [url]http://www.daniweb.com/forums/thread114985.html[/url] The function prototype looks like this [code] void …

Software Development c++
Member Avatar for henpecked1
0
97
Member Avatar for darklich13

I'm trying to write some code that will read numbers from one file and put those numbers into a list and then print the list in another file. I'm having trouble trying to get the numbers from the infile to read correctly. The program compiles ok but when the list …

Software Development c++ linked-list
Member Avatar for darklich13
0
169
Member Avatar for bhoot_jb

please check out the following two code segments and suggest which one is more efficient and worthy to use... The segments are actually constructors used to allocate a memory block for a matrix.. segment - 1 : [code=cpp] class matrix { private : int rows, columns; int *element; public : …

Software Development c++
Member Avatar for bhoot_jb
0
116
Member Avatar for TylerTCF

As you can see below, I am working on making a macro that compares the time in one column on a page to another on a page. However, in the if statement where I'm trying to round the numbers with time values in it (because I need the numbers to …

Software Development visual-basic
Member Avatar for TylerTCF
0
161
Member Avatar for Jennifer84

I have a coming back problem that I dont know how to get out from. If you put this code in the event handler for a richtextBox control and write this on the First line: [COLOR="Red"]1234567890 [/COLOR]//This will turn red when you press 0 If you instead right away press …

Software Development c++
Member Avatar for Jennifer84
0
84
Member Avatar for strictlycustom

So below is my simple code for my simple program, now I have to "Use 2 functions for this program in addition to the main program. The first function should ask for the hours and returns them to the main program. The second function should receive the hours from the …

Software Development python
Member Avatar for vegaseat
0
95
Member Avatar for shuban

Hi all, I was trying to create an example WindowsCe device application, and i needed to use the Microsoft.WindowsCE.Forms but the .Net (that i have installed ) intellisence is not supporting this namespace... i.e. using Microsoft.WindowsCE.Forms is not being supported in the .Net IDE that i am using. Well if …

Software Development ide microsoft
Member Avatar for shuban
0
149
Member Avatar for henpecked1

I'm trying to construct a semi simple dice rolling project. I have two classes, onedie and threedice. The threedice class looks like this: [code] class threedice { public: void rollem(); int getsumFaces(); private: onedie die1; onedie die2; onedie die3; }; [/code] Now, when I try to code the two functions …

Software Development c++
Member Avatar for vmanes
0
288
Member Avatar for StephNicolaou

This is a connect four game and I'm trying to show the counter falling. What I have so far is this which is in a for loop: [code] while(fallingCounter == true && x[j][i] < playerTurn) { //Move the counter vertically down the grid's rows appearing to fall fallingCounter(); g.setColor(counterColour); //counterWidth …

Software Development java
0
110
Member Avatar for Beginner2008

My aim is to get this value. [IMG]http://aycu40.webshots.com/image/46759/2005193521074775269_rs.jpg[/IMG] What is the best approch to do so ? Do i create a text box ? and place it in the (1,1) (Row, Column). When do i want this number to appear ? When the calculate button is hit. [IMG]http://aycu39.webshots.com/image/49638/2005162900054054381_rs.jpg[/IMG] So i …

Software Development user-interface vb.net
Member Avatar for Beginner2008
0
337
Member Avatar for TheFueley

I'm trying to figure out how to write an int (as a record number) and a string (up to 12 characters) into a binary file. So in one project the binary file is created with all 5 records written to it, with blank data, eg string is empty. In the …

Software Development c++ file-system
Member Avatar for TheFueley
0
122
Member Avatar for Jennifer84

Is it possible to know what key on the keyboard that was pressed through any of these syntax in any way. [I]textBox->KeyPress textBox->KeyUp textBox->KeyDown[/I] I like to find an if statement that says something like this, though I know this is wrong: [code] if ( textBox-> KeyPress != BackSpace) { …

Software Development c++
Member Avatar for Jennifer84
0
102
Member Avatar for Lensva

Say i ask a user to input a number, which will be the return value of one of my class members. How do i make it so that it would redirect me another class member, depending on the number input?

Software Development c++
Member Avatar for Lensva
0
98
Member Avatar for Traicey

This program is using setw() and setfill() it supposed to output the stars I have included the sample output at the end of my project I hope u gona be able to read the code cause my coding does not print the stars the way they have to be instead …

Software Development c++
Member Avatar for Narue
0
2K
Member Avatar for Jboy05

Do you see anything wrong with this if so let me know [code=cplusplus] #include <iostream> #include <fstream> #include <cstdlib> using namespace std; int main () { int num; ifstream AFile; AFile.open('a:\\OddFile.txt'); AFile << "Enter an integer number please: "; cin >> num; If (num % 2 = 0) AFile << …

Software Development c++
Member Avatar for Jboy05
0
143
Member Avatar for 666kennedy

this isnt working, i think it has something to do with the natural exponential, its a calculation of the sigmoid function. it basically should read 1/(1 + e^-((W1A*pix1)+(W2A*pix2))) this is what ive coded [CODE] OUTA = 1/(1 + exp -((W1A * pix1) + (W2A * pix2))); [/CODE] please help me.

Software Development c++
Member Avatar for 666kennedy
0
307
Member Avatar for majestic0110

Hi all, I am contemplating moving from c# to VB and wondered what might be the greatest obstacles to overcome. I guess what I would really like to know is, if I am quite knowledgable in c#, will vb be easy to pick up? Something else that is bothering me …

Software Development c# vb.net
Member Avatar for majestic0110
0
121
Member Avatar for spywx2003

if anyone can help me i need to create a JFrame that displays two text areas (JTextArea) in a grid layout (1 row, 2 columns), am not asking someone to do it for me but if anyone can help me with basics of JFrame that would be helpful thx

Software Development gui java
Member Avatar for Ezzaral
0
83
Member Avatar for a1eio

Hi, I'm a bit stuck on getting 1 function that's not inside any class or function, accessible or callable to everyother part of the program, from within classes and the Main function.. i've tried to make it global but i'm not sure on how to make it work and it …

Software Development python
Member Avatar for BearofNH
0
124
Member Avatar for Traicey

I have done most of languages, I did arrays[] to all of them and of cause except COBOL, I can declare them(arrayz[]) yes that one is easy, but manipulating them thats where the problem starts, I never get any program right if I have to use arrays, Im not gona …

Software Development c++
Member Avatar for Traicey
0
103
Member Avatar for bhoot_jb

i am working with a matrix manipulation program...consists of a matrix class and its member functions.. i have also overloaded << and >>...so dat dey can read and print d whole matrix at one statement.. the code of these overloaded operators is something like this.. [CODE] // for >> (cin) …

Software Development c++
Member Avatar for bhoot_jb
0
168
Member Avatar for LindaWiklund

Hello! Trying to use regexp in glib but I cannot get it to work. I would like to have a regular expression to describe: [2003-03-11 13:14:12.111] letters letters.:1234 Hello I have tryed the following expression in 'regular expression testers' and there this works: ^\[\d{4}\-\d{2}\-\d{2}\s\d{2}\:\d{2}\:\d{2}\.\d{3}\]\s\w*\s*\w*\.+\w*\:\d{4}\sHello But not with glib's regexp. Why …

Software Development c++
Member Avatar for LindaWiklund
0
102
Member Avatar for _::suhanna::_

hi.. im using vb.net can u guys help me.. i dont know why error still come... whats wrong with my coding? dis my code [B]Public Sub UpdateMember(ByVal membername As String, ByVal address As String, ByVal handphone As String) ExecuteSqlCommand("update member set tmembername=" & membername & ", taddress='" & address & …

Software Development vb.net
Member Avatar for _::suhanna::_
0
104
Member Avatar for Traicey

On C++ we have two different types of function which are non-returning value or void function and returning value function and what I would like to know under which condition you use either of those functions, and when do you know that you have to pass by reference(ByRef) or by …

Software Development c c# c++
Member Avatar for Traicey
0
143
Member Avatar for rsk8332

Hi, Suppose I have a character array array1[]={A,B,B,B,A,A}. Now I want to declare a structure with a pointer in it and make each array1 element point to the previous element.For example last array1 element 'A' will point to the previous 'A' which will point to 'B' and so on. Can …

Software Development c++
Member Avatar for Agni
0
143
Member Avatar for knight fyre

I'm trying to use composition. I included the header file and made a type of the class that is contained within the owner class but I keep getting errors like this: [QUOTE]c:\documents and settings\cheryl\desktop\parking lot system\person.cpp(7) : error C2614: 'PERSON' : illegal member initialization: 'DATE' is not a base or …

Software Development c++
Member Avatar for knight fyre
0
521
Member Avatar for kartouss

Hello i am using AES to encrypt/decrypt data/ pixel values.. saved in a file myfile.txt and the AES encrypts tha data and writes the ciphertext in a file ciphertext.txt When decrypting the data i am getting some of the pixel values decrypted correctly followed by garbage.. Code to open myfile.txt …

Software Development c++
Member Avatar for kartouss
0
550
Member Avatar for k2k

I followed the book to finish this 2 node linked list, and however it looks like there is only one node in it. (temp has replaced the head???? my book example coded this way which i don't fully understand) Is anything wrong in here? And i think my output function …

Software Development c++ linked-list
Member Avatar for Ancient Dragon
0
108
Member Avatar for Agni

hi, I have a XML in a String coming from an external input. The problem is that this string is getting some junk characters appended to in the last. I need to find the lenght of the string only till the correct part. once i get this lenght i can …

Software Development c++ xml
Member Avatar for Agni
0
187
Member Avatar for DarkDot

I have to make a program that takes a user entered deposit and interest rate and then calculates the balance for 5 years. I can't figure out what I'm doing wrong. I always use the deposit amount of 1000 and interest rate of 5 therefore for the five years the …

Software Development assembly
Member Avatar for DarkDot
0
169
Member Avatar for Jennifer84

This code tells what position the cursor is in a textbox. Let us say that this position is 10. Now is my question, is it possible to know what character it is if any on position 9 in the textBox. Is it possible to put the character on position 9 …

Software Development c++
Member Avatar for Jennifer84
0
154
Member Avatar for angelinajade

Hi all, I am new to this VB programming stuff, so far so good, but this last project of the semester has me wanting to pull out my hair, and the textbook is more aggrevating. I am wanting to pull info, that is typed in a inputbox, and put it …

Software Development pay-per-click vb.net
Member Avatar for angelinajade
0
547
Member Avatar for krichard89

I am implementing code to program a hangman game in C++ for my CSP class. So far, I am working on the random string function as well as calling the body parts as void functions. I am attempting to compile what I have as of now to see how it …

Software Development c++ visual-basic visual-studio
Member Avatar for skatamatic
0
157
Member Avatar for new_2_java

Hi all, In my program I am using RMI call to a service in a remote host. My program runs without any exceptions from within eclipse, since I have all the packages and jar files in my build path. However, the program needs to eventually run from the command line. …

Software Development apache java
Member Avatar for new_2_java
0
2K
Member Avatar for sigkill9

I've been working on this script all weekend and am almost done with it accept for one last detail; implementing a "process another number?" prompt after a user input is processed. The script works like this: First, the user enters a number to test (to find the two prime numbers …

Software Development python
Member Avatar for sigkill9
0
206
Member Avatar for bigbadowl

Hi All Based on the information below. When I call gradeArticle(myArticle, text) I get an error (free(): invalid pointer). The code works the first time and seems to error when called again. Even with all the code commented out of the gradeArticle method I still get the same error. I …

Software Development c++
Member Avatar for bigbadowl
0
5K

The End.