64,152 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for jeffburns75

Hello all. I have am currently working on a assignemtn and i am having trouble with calculating the prime number, which the user can enter. I am also having trouble with returing to the begining of the code if the user does not select one of the options available to …

Member Avatar for VernonDozier
0
79
Member Avatar for gehad3003

Hi I want to have a variable that contains item number. int didn't work because i want to make the item number start with 3 or 4 zeros. if i use char * I can't increment the value of char? any help will be appreciated

Member Avatar for gehad3003
0
165
Member Avatar for maharajakecil

please please please... i really need the source code to send integer using vb6.0. i'm using rs232

Member Avatar for Jx_Man
0
88
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> …

Member Avatar for nelsonsu
0
90
Member Avatar for rysin
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..

Member Avatar for Jx_Man
0
506
Member Avatar for Topina

Hi! I'm a foreigner working in japan and my job has recently put me in a position where I have to use Access for the first time. I've managed to create some tables and establish relationships between them, but I got stuck trying to create a form with subforms. I …

Member Avatar for bjcountry
0
132
Member Avatar for ryy705

Hello, I am trying to understand html's <label> attribute. According to [URL="http://www.w3.org/TR/html4/interact/forms.html#h-17.9"]http://www.w3.org/TR/html4/interact/forms.html#h-17.9[/URL] when I am using a single label for multiple elements I should use the following format: label for = idref [CS]. From what I understand [CS] represents names of the elements that I am labeling. But what is …

Member Avatar for digital-ether
0
138
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 …

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 …

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 …

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?

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; …

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 | …

Member Avatar for darkagn
0
102
Member Avatar for Inny

I want to use this code to display a blank page When someone clicks 'veiw source' from either the context menu or toolbar. (if they switch off javascript they are simply redirected, I use another code) I dont want extra pages popping up, Just the blank page, possibley I could …

Member Avatar for Inny
0
141
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 …

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 …

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 …

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. …

Member Avatar for Jennifer84
0
116
Member Avatar for Fungus1487

Hello all, hope i can get some help on this one as im not brilliant with my database scripts. I have table "A" and table "B", table "A" contains information on a portfolio and table "B" is a joining table which connects this table to a user of the system …

Member Avatar for Fungus1487
0
67
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 …

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 …

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 …

Member Avatar for darklich13
0
169
Member Avatar for Dsiembab

I like to read about hashing passwords and have read articles about how md5 and sha-1 could be deciphered albiet it would take 25 million dollar computer and time but still if you could take a password and split it into two pieces and md5 hashed the two pieces add …

Member Avatar for Dsiembab
0
121
Member Avatar for dpatz

Hi, I have some checkboxes in an html form. This form uses php to email me the users response. So in my html I set the checkboxes up in an array like this: [CODE] <label><input type="checkbox" name="weekday[]" value="Monday">M</label> <label><input type="checkbox" name="weekday[]" value="Tuesday">Tu</label> <label><input type="checkbox" name="weekday[]" value="Wednesday">W</label> <label><input type="checkbox" name="weekday[]" value="Thursday">Th</label> …

Member Avatar for nav33n
0
264
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 : …

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 …

Member Avatar for TylerTCF
0
161
Member Avatar for TobbeK

I have a user input form where the user can choose to specify a number of input fields used for database input. So what I did is to create a loop within the same form and then created the fields the number of times the user has specified. Example: the …

Member Avatar for TobbeK
0
91
Member Avatar for sukhy_1

Hello ive got this code of the net just wanted some1 2check it 2make sure, also ive got these two peices of code the ones ive highlighted them in red, but dnt understand wa it means by saying put this code in first line of web page any ideas, ive …

Member Avatar for petr.pavel
0
104
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 …

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 …

Member Avatar for vegaseat
0
95
Member Avatar for naiad08

hi..can you help me? i need a complete program and flowcharts of shell sorting, insertion sort, quicksort, merge sort and buble sort...please help me... in need it on thursday.... thanks a lot! God Bless You! from, grace

Member Avatar for jamshid
0
167
Member Avatar for smemflynn

Hi, If someone can help me with this I'd really appreciate it! I installed SQL Server 2000 Standard Edition on Windows Server 2003. This server is due to take over from our present Windows 2000 Server. It was my first time doing a SQL install, so I ended up calling …

Member Avatar for smemflynn
0
162
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 …

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 …

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 …

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 …

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 …

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) { …

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?

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 …

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 << …

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.

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 …

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

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 …

Member Avatar for BearofNH
0
124
Member Avatar for sukhy_1

This code works but i want to add all the total costs up at the bottom of the search output, the[B] // Loop through data and display[/B] is outputs displayed from MySQL, from this code all i get is the total price for each booking but i want to add …

Member Avatar for sukhy_1
0
94
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 …

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) …

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 …

Member Avatar for LindaWiklund
0
102

The End.