199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for ChargrO

hello I was just wondering if anyone knows of a site or someone (or start me off with some code) that could help me with learning about cascade menu's and changing them from a parent into a child, any help would be greatly appreciated. I am making the cascade menu …

Member Avatar for pythonNerd159
0
167
Member Avatar for eshirley

I need to write a program that will output a list of all even numbers between 1-100. It needs to use a while loop then use a for loop. Any one got any help on how to do that?

Member Avatar for eshirley
0
225
Member Avatar for persianprez

For my extra credit, I'm supposed to generate the longest chain from 1-1000000, I wan't to know if it is correct..here is my code: the caller [CODE] start = 1 end = 1000000 longest, chain = -1, -1 #choiceX(start) for i in range((end-start)+1): if choiceX(start) > longest: longest=start chain=choiceX(start) start+=1 …

Member Avatar for persianprez
0
96
Member Avatar for restrictment

Please tell me why this doesn't work: [code] #include<iostream> using namespace std; int main() { char felix[3] = "ho"; if(felix == "ho") cout << felix; } [/code]

Member Avatar for restrictment
0
173
Member Avatar for NathanOliver

Hey All I am testing myself with making a big number class. Right now I'm just working with integers but I hope to expand it to floats as well. I am using a vector of integers for the container and i have run into a problem with my addition routine. …

Member Avatar for NathanOliver
0
151
Member Avatar for tarheelfan_08

Ok guys, for my next assignment I have to read from a binary file and then print out my information. I will post the assignment and what I have so far. But my question is, do I create the binary file first in the program or by hand or what?? …

Member Avatar for tarheelfan_08
0
3K
Member Avatar for rpowell16

Hey all, I am trying to read in a line from a file. The line will normally contain a string followed a number. Eg/ NumberOfElements 1500 I only require the number. I have been trying to read in the line storing the string as "text" and the number as "numOfInts". …

Member Avatar for rpowell16
0
102
Member Avatar for ErlendHL

Hey! I am making a chat program. This is the syntax of the messages: [time-stamp:millisecons]Name:message For example [12846842643]Bob:Hello[12846842650]Bob2:Hey! Whats up? To check if there are any new messages, I will compare every timestamp with the timestamp on last received message, which is a variable defined in the clients side (at …

Member Avatar for diafol
0
146
Member Avatar for stangn99

Hi guys, I've put together a little app which users can use to book off days. I have a button made which reads [B]"Book of this day for every week of the year". [/B] Basically what I want it to do is: 1. User clicks the check box [exists already] …

Member Avatar for diafol
0
101
Member Avatar for leverin4

I understand, vaguely, what a reduce/reduce conflict is, but I don't understand why I'm getting one in my Yacc Parser. Can anyone help me out? [code=yacc]Prog : START StmtSeq END { }; StmtSeq : Stmt StmtSeq { }; StmtSeq : { }; Stmt : Id ASSIGNOP Expr SEMICOLON { *$1 …

Member Avatar for nezachem
0
399
Member Avatar for Phil++

Just to clear something up really. You cannot decrypt MD5 through code can you? e.g. If I encrypted a whole document in MD5 it would be pretty hard decrypting it where as if I used MD5 for a password I could by changing the string that I was checking it …

Member Avatar for diafol
0
92
Member Avatar for pythonNerd159

Hey people, i was just wondering if anyone knew the code to make a tkinter button... [CODE]def createExample(self): top=self.winfo_toplevel() top.rowconfigure(0, weight=1) top.columnconfigure(0, weight=1) self.rowconfigure(0, weight=1) self.columnconfigure(0, weight=1) self.Button = Button ( self, text=" Example", font=("Arial", 12), bg="white", fg="magenta", cursor="crosshair") self.Button.grid(row=1, column=0, sticky=N+E+S+W)[/CODE] ...and i wanted to know the code that …

Member Avatar for pythonNerd159
0
143
Member Avatar for xxmp

i have this function and it works right only to mozilla [CODE] function check_field(formid,field) { var k=document.getElementById(formid); if (k[field].value=="") { document.getElementById("wrong_"+field).innerHTML="&nbsp;&nbsp;&nbsp;&nbsp;Κενό πεδίο"; } else document.getElementById("wrong_"+field).innerHTML=""; } [/CODE] i use this element to call it [CODE] <tr > <th width="22%" <?php if (isset($_SESSION["prob_onoma"])) echo "class=\"become_wrong\"";?> align="left" > Ονοματεπώνυμο&nbsp;:* </th> <th width="45%"> …

Member Avatar for Airshow
0
84
Member Avatar for sandyjain

Hi, i am working on Numerical Computation with C.... i have a data file which has two columns separated by a tab in between... it looks like [code] 43.0000000000000 43.0000000000000 42.0000000000023 43.0000000000006 41.0000000000000 43.0000000000056 40.0000000000000 43.1999996948242 [/code] i have written this code which seems to work out smoothly... [code] #include …

Member Avatar for Banfa
0
161
Member Avatar for Jaulm

I am attempting to execute a unix "df -k" command in java. I have the following example.. My question is how do I parse the results of the command in order to grab the available bytes versus just printing it out???? import java.io.*; public class unixcmd { public static void …

Member Avatar for Ezzaral
0
599
Member Avatar for Bhoot

I am dealing with multiple monitors in which i required to use EnumDisplayDevices() API. However, the linker gives me following error log (i am using VC++ 6.0) : [CODE]Linking... SourceCode.obj : error LNK2001: unresolved external symbol __imp__EnumDisplayDevicesA@16 Debug/AllianceProject.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe.[/CODE] I tried …

Member Avatar for pdtx
0
340
Member Avatar for Mensa180

Hello all! I was bored and upon my father's challenge I made a program that tells you the 20 day SMA for a specific date, I only have 100 days of data but can up that to over 8000 whenever I get my logic sorted out. The problem is I …

Member Avatar for Mensa180
0
169
Member Avatar for xavier666

Okay, this time, i have to say it's a weird error. This code runs fine in Code::Blocks 8.02 but fails to run in my college compiler. I think my college compiler is the GCC Compiler (same as my home compiler) but in LINUX environment. Something like [CODE]vi sort.c cc sort.c …

Member Avatar for Banfa
0
653
Member Avatar for restrictment

Hey guys, sorry I am asking so many questions lately, but I am learning this stuff by myself, and find it easier to ask questions here than look online. Plus when I try using the search engine on this site, it takes me to some quite random threads. Anyhow, onto …

Member Avatar for trcartmill
0
233
Member Avatar for nwalser

I am trying to create a program the checks the frequency of letters in a string but when i run the program it doesn't work right? Any suggestions for how i can fix this? import java.util.*; public class LetterFreq{ public static void main(String[] args){ String[] lines = new String[50]; Scanner …

Member Avatar for cale.macdonald
0
190
Member Avatar for Sorb3t3ro

I just want to share and ask about what I experienced, Im just a starter in C++ and I noticed everytime I make a program which has a [B]looping statement[/B], after compiling the program and try to run or execute the program([B]it happens only after compiling[/B]) it takes 13 to …

Member Avatar for Sorb3t3ro
0
2K
Member Avatar for kiyu2keith

I tried this one for some experiment and I can't seem to work it out can you help me about this? The problem here is that when you click on the Radio button then click the result button it should give an alert with number(this number is how may times …

Member Avatar for kiyu2keith
0
2K
Member Avatar for *Moonlight*

Hi, I have a quick question...so I have this program that asks user to enter an integer and then it analyzes that integer..it outputs factors of that number, and tells whether its composite or prime, abundant or deficient, and so on...and then after telling few things about that number..it asks …

Member Avatar for jephthah
0
663
Member Avatar for Tekkno

I have a script that generates random data into an array then uses a while loop to display the data. I have a separate script that takes a row from that array and inserts it into a MySQL database. The problem I am having, is that every time the page …

Member Avatar for Tekkno
0
118
Member Avatar for charpays

How can I do this? FILEOUTPUTSTREAM and FILEINPUTSTREAM provide code that will write bytes to file and read them back

Member Avatar for Ezzaral
0
50
Member Avatar for dragonlvr4evr

[QUOTE=hay_man;246195]I am using c++ and need to devise a method to determine the check digit of a credit card. The user enters the card no. as a string. The card no is then divided into blocks of length, x. these blocks are then added. I have the code to convert …

Member Avatar for WaltP
0
114
Member Avatar for skorm909

ok so basically what im wanting to do is setup functions and call on them later... this is kind of what i want [CODE] void mainmenu(){ //what i want in there... //if statements etc } void etc() { //whatever goes here} int main() // and then have them get called …

Member Avatar for Luckychap
0
78
Member Avatar for ice616

how would i write nested for loops for this program? there are 3 products. product 1 is $12.50, product 2 is $8.90 and product 3 is $20.10. write a C++ program that reads the product number and the quantity sold per day, and then calculates and display the total retail …

Member Avatar for Stefano Mtangoo
0
137
Member Avatar for drhelp

this is the code i have entered and keep getting the error: error pointer to a function used in arithmetic and error cannot convert 'const int' to 'double' for argument '1' to 'double f09kkk_lat {cout<<places[i]<<""<<fixed<<setprecision[2] <<fo09kkk_lat_long_dist(brunel_lat,brunel_lon,lat[i],lon[i]<<endl; } cout<<endl;

Member Avatar for WaltP
0
251
Member Avatar for Stefano Mtangoo

Hi, I know this is compiler thing but I just wanted to know if anyone here have ever been succesful in compiling libvorbis/libogg with MINGW. It's weeks now I cant do it! I have tried with MSYS but nope i cant get far. I wonder why these developer consider only …

Member Avatar for Stefano Mtangoo
0
469
Member Avatar for lll_ari_lll

hello friends, i am a newbie in php.. doing project for my college. doing it with a lot of help with this site n some others but stuck in the login page, it seems either there is some problem in databse connection or session registration.. when i put username n …

Member Avatar for lll_ari_lll
0
121
Member Avatar for theonlywalks

Hi everyone, I have searched high and low across google, even throughout my textbook... I have this project where you have to design the different types of CPU schedulers. If there are three processes (arriving in this order), P1, P2, P3, and each process has a CPU Burst, then an …

Member Avatar for Salem
0
134
Member Avatar for Chris_Giarla

Hello Everyone! This is my first post as a Daniweb member and I am hoping that the people here are as great as they seem. I am a junior in a CS department and I am learning IA32 Assembly as an elective. I am trying to write some basic C …

Member Avatar for Salem
0
199
Member Avatar for Ahsan Baig

Hello everyone I have made a windows form application using Visual C# 2008. The form conntains a panel where im drawing different graphics objects like arcs, lines etc. But the problem is that when the window is restored after being minimized, the panel is refreshed i.e. every figure is erased. …

Member Avatar for Geekitygeek
0
122
Member Avatar for mikabark

Hello guys. Can I write structure data to child pipe? Usual examples are about writing char* or int type. I tried to write structure. But it does not look work. Will you check my code? ----------------------------------------------------------------------- [CODE]struct work_list { int heavy_rate; //0 - 5 level int work_owner; //thread id } …

Member Avatar for nezachem
0
143
Member Avatar for churni

hi, i have some code which is taking a value of how many moves a function is making to an array of numbers, and displaying it but basically, when i call the function initially, it will give the correct number of moves, when i call it again its adding the …

Member Avatar for churni
0
101
Member Avatar for riotburn

Hi I have written a program for bootstrapping bond interest rates. The bond price I am getting is 101.99825... when it should be more like 101.999999..... The inputs to test are Bond Price = 102, ttm = 36, f = 2, face = 100, n = 5. Heres the program, …

Member Avatar for riotburn
0
119
Member Avatar for adobe71

How can i encrypt access .mdb file ,make it .mde and add password .what is the connection string in C#,how can i access it and how can i make backup file.

Member Avatar for _V_
0
105
Member Avatar for suncica2222

Simple: I have buffer LPBYTE lpBuf And I need size of it.I tried sizeof(lpBuf); but doesnt work properly. How to do it,which function to use?

Member Avatar for suncica2222
0
2K
Member Avatar for dhavalcoholic

Hello Friends! :) I am working on my College Major Project. My project contains a part, where the Admin will post News (using Editor like a Blog). This News is then stored in Database. Now I want to retrieve "top 2" news and post them on Home page. I am …

Member Avatar for dhavalcoholic
0
130
Member Avatar for Jongor

Hello fellow seniors, i can display all the data from array after i input all the data, but do not know how to display it on displayDonor() Any help is highly appreciate. [CODE]import javax.swing.JOptionPane; public class DonorMenu{ public static void main(String args[]) { int choice = -1; do{ choice = …

Member Avatar for Jongor
0
112
Member Avatar for whiteyoh

Hi All, Im busy trying to get my head around SOAP. During the last couple of days ive been looking through a number of tutorials. The following one seems quite good, but i can get any of the examples to display anything at all [url]http://devzone.zend.com/article/689[/url] Can anybody give any help?

Member Avatar for whiteyoh
0
78
Member Avatar for charpays

How can I Define a JFrame subclass that has four vertically positioned buttons. The labels for the four buttons are Senior, Junior, Sophomore, and Freshman. When a button is clicked, display a message that identifies which button is clicked, using JOptionPane.

Member Avatar for BestJewSinceJC
0
213
Member Avatar for soUPERMan

I want to create an array of the object student, and be able to add a student, delete a student and change the student attributes. Please help. I need to add and do all these things using an interactive user input (Scanner). here's the student class i created. [CODE=java] public …

Member Avatar for BestJewSinceJC
0
1K
Member Avatar for i_luv_c++

hey guys im working on a homework problem which requires two things -count the total number of clumps -determine the longest clump i finally made my code to recognize the number of total clumps however i still cnt figure out how to determine the longest clump any help be great!thanks:) …

Member Avatar for JasonHippy
0
254
Member Avatar for Mici21

I was searching around but I could not find it: I'd like a tool(free or paid) that is able to manage multiple MySql servers from the same GUI. I know about few thick-client apps that do this, but I need one that you can use it from internet. So far …

Member Avatar for Mici21
0
64
Member Avatar for Freespider

heyy... i need to analyse diffrent text(strings) inputs... and there is no pattern between the inputs... i have a question in my school...i need to do like a little storage with char**...and each time i get a string i need to input it into the char**, if the char** gets …

Member Avatar for abhimanipal
0
97
Member Avatar for Oron123

hi, i have a big exe program that i wrote in c# (big means that i have a lot of class in it), i want to write a script in python that will check the program. what is the right way to check the program, convert the c# program to …

Member Avatar for jcao219
0
140
Member Avatar for malmaa

I am new to javascript and downloaded an script to my website. It has columns like Bid, Ask, High values. I like to add an extra column (Spread = Ask – Bid). Is their way to add this extra column? Any guidance or reference to material is highly appreciated. Applet: …

Member Avatar for malmaa
0
86
Member Avatar for Tigran

Hello, I've been trying to get into game programming. So I learnt a simple 2d api, Direct2D because it has great documentation on msdn and started planning/programming my first game: a tetris clone. All went well, and I also added sound and such, but now I want to add a …

Member Avatar for Tigran
0
407

The End.