199,114 Archived Topics
Remove Filter ![]() | |
![]() | 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 … |
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? | |
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 … | |
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] | |
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. … | |
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?? … | |
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". … | |
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 … ![]() | |
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] … ![]() | |
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 … | |
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 … ![]() | |
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 … | |
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=" Κενό πεδίο"; } 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" > Ονοματεπώνυμο :* </th> <th width="45%"> … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
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 … | |
How can I do this? FILEOUTPUTSTREAM and FILEINPUTSTREAM provide code that will write bytes to file and read them back | |
[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 … | |
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 … | |
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 … | |
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; | |
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 … | |
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 … | |
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 … | |
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 … | |
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. … | |
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 } … | |
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 … | |
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, … | |
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. | |
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? | |
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 … | |
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 = … | |
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? | |
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. | |
![]() | 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 … |
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:) … | |
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 … | |
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 … | |
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 … | |
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: … | |
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 … |
The End.