199,114 Archived Topics
Remove Filter ![]() | |
Hey all, I'm new to programming in MASM 8086 Assembly language. How do you ask the user to input a string of word like "Hello Daniweb" in MASM 8086 assembly language and once the user enters it, it display it on the command window. I appreciate the code :D PS: … | |
Can someone tell me how to print a dollar amount (i.e. 1140.95) as 114095? | |
Hey guys, my friend helped me with a code, but I didn't get a chance to ask him about why col is subtracted by 65? Can anyone tell me what exact that line is suppose to do. Thanks for dealing with me...the line is bold... [CODE]#include <iostream> //preprocesser directives using … | |
How would you modify this gui code to designate only certain spots on your canvas to drop your image? Like when your playing solitaire and the game only allows you to drop your card in a certain spot. [URL="http://www.daniweb.com/forums/post1111987.html#post1111987"]http://www.daniweb.com/forums/post1111987.html#post1111987[/URL] | |
If I hard code search criteria i.e. adodc1.recordset.find "car Like 'corvete'" will work. But if i try to use an entered sting in text box on a form and assign it to a string variable with wildcards in the "find" it does not work. WORKS: Dim test As String test … | |
here is my code of a linked list with a header file however it works in debugger mode but in normal run time it crashes Please help! Here's the header: [CODE]/* Lab3 Abstract Data Type - header file */ /* Type Definitions */ typedef struct { char state[20]; int year_adopted; … | |
[CODE]set_child_at (node=0x7fffffffe080, child=0x61e250, index=1) at 10679.c:319 319 if ((*node)->count_children == (*node)->m) (gdb) p *current_node $3 = (trie_node *) 0x0 (gdb) n 324 index = hash_insert((*node)->hv, index, (*node)->m, (*node)->m1); (gdb) n 325 (*node)->children[index] = child; (gdb) p current_node $4 = (trie_node **) 0x61e270 (gdb) p *current_node $5 = (trie_node *) 0x0 … | |
I'm trying to write a program that prints out the largest and smallest of four numbers that are inputted using a JOptionpane, but I cannot figure out how to sort out the integers with if and if else statements. Anyone have any advise? | |
I have a list of books that I need to access from 3 or 4 different functions of my program. It's 250 books with unique names. Would it be wise to use simple array to store the list? Or is there any easy way for a newbie to manually create … | |
Hi, I have a small problem and have been trying to figure out a solution for this without any success days. I did search the forum but didn't find any solution. This is my situation. I am generating a chart (using an opens source chart called amCharts) that allows me … | |
Anyone know how to implement a timer code? What do i have to do in order to implement a timer? And the timer is one minute and then the vb program continues. thank you so much. | |
In my book, it says find() must be used like so: ex: iter = var.find(scores.begin(), scores.end(), score); but later it uses this in practice: ex: while (used.find(guess) != string::npos) Why can you simply pass 'guess' var to it here and not need to search a range? Isn't find() an algorithm … | |
I read on various articles on google that a 'cron job' is used to schedule a task to run periodically on a server. I'm in a situation where I need to schedule a script to run nightly. The script would probably be written in php and update a MySQL database. … | |
[code] $sql_table_get=mysql_query("select orderline.quantity, menu.item_name, menu.price from orderline, menu, orders where orderline.item_id = menu.item_id and orders.order_id = orderline.order_id and orders.table_num =table".'"$count"'." // problem line and orders.order_status = 0; "); [/code] tried many combo and couldn't make it work yet. basically i just need to know how to combine a $variable and … | |
Ok, I'm new to java and I need a little help with this if statement. Or possibly a different approach on how to write it. The if statement first needs to determine what type of package the user has so they may be charged a base fee. (Package A, B … | |
Hi, I need help on redirect of php scripts. The problem is: I have a page for example [url]www.domain.com/redirect.php?id=34[/url] that redirects to another page, domain2.com/product.php?id=2. I need to create a script that allow me to know the URL of the redirection (domain2.com/product.php?id=2) just by accessing the redirector ([url]www.domain.com/redirect.php?id=34[/url]). Anyone have … | |
Is there a way to provide a different address when browser bookmark button is clicked? I know you can include a button on your page but most users are accustomed to using the browser bookmark button. Our domain may change from time to time and we don't want to frustrate … | |
Still learning and I just want to be sure I'm clear on a few very basic syntax issues. Any help is much appreciated. [COLOR="red"]5.1 - Basics[/COLOR] int = a single number? char = a single letter OR number? string = a phrase of letters (up to?) char array[]; // array … | |
How to allow user to create photo album and upload photo or images? | |
Okay, so I've got THREE MSSQL Tables. First table is: Eponyms : ID, NAME, DESCRIPTION, CATEGORIES Second table: Categories : ID, CATEGORY Third is the intersecting table: EponymCategory : ID, EponymID<FK>, CategoryID<FK> The "Eponyms" table has the list of Eponyms, and the CATEGORIES column is inserted with data like "PSYCH … | |
Is there a way to accomplish the following in python? [CODE=javascript] try{ // something } catch (e) { // display e.message, e.name, e.linenumber } [/CODE] | |
I define a variable as float num1; I try to use a scanf to read it scanf("%f", num1); I get some (what I think is a crazy response) statement expects a float, argument is a double I am sure I must be doing something wrong because I also get this … | |
I have a question on Chapter 4, exercise 1 of Michael Dawson's "Beginning C++ through Game Programming 2nd Edition". The chapter goes over STL, vectors and iterators. The assignment is to create a program that allows the user to edit games in a list. In the book we learn about … | |
Ok, I'm having the hardest time writing this code for work. Any suggestions on how to get me going in the right direction on this code would be great!!! Project: I need to make uninstalled fonts available for viewing for my co-workers. Therefore, I'm to write a code that can … | |
Hey Guys, I'm having some trouble compiling my code. it says that there's an error in one of apple's header files. /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.3.sdk/usr/include/arm/_types.h:13: error: expected constructor, destructor, or type conversion before ‘typedef’ nvm, solved | |
I am trying to get the following code to take in either a number or an integer, determine whether what the user inputted is an integer or a letter, and then print a random digit if it is an integer, or a random letter if it is a letter. [CODE]#include … | |
I wrote a search form for a database but I would like the user to be able to add sequential rows with an add button. I have tried it a couple of different ways but haven't gotten the results I am looking for. Is this something that can be done … | |
I have several of my own photos that I need to add a simple watermark to; however, I would like to add stegonography to the watermarked layer in order to put the image information, the page that the image was to be placed on, etc... hidden within the watermarked layer. … ![]() | |
Hi, First off, I'm a real greenhorn so please forgive me asking questions which may be bleeding obvious, but I have searched and searched and cannot find an answer to my problem. I'm trying to import a CSV file into sqlite3 database in python. The CSV file has 56 columns … | |
Hello, I googled about this problem and there are some suggestion to handle this. i have tried but none solve my problem. Errors are shown in line 3, 4 an 5 which code is like below: [CODE] ob_start(); //stop caching header("Pragma: no-cache"); header("Cache: no-cache"); session_start(); [/CODE] can anyone help me … | |
Hi All, I have this URL on my website that is causing a problem [url]http://www.raveportal.com/1347_How_to_list_files_with_*_after_executables,_/_after_directories_and_@_after_each_symbolic_link[/url] There is a forward slash "/" in this. Everything after this forward slash "/" is treated as a new file and "[B]1347_How_to_list_files_with_*_after_executables,_[/B]" is treated as a new directory. If you go to this link, this … | |
What approach should I use to return all dict keys that have the maximum value. The code below outputs 1, but I would like for it to return 1, 2. [CODE]import operator d1 = dict() d1[0] = 1 d1[1] = 2 d1[2] = 2 maxValue = max(d1.iteritems(), key=operator.itemgetter(1))[0] [/CODE] | |
Hi all, I'm trying to set up code that will allow me to do the following: Read in a csv file, In columns 3 and 5 there is similar information, I want to count how many times each unique entry is in either of these columns. For example: col 3: … | |
Hi, I am pretty new to web development so bare with me. I have a simple problem that I have been trying to solve it for a while now. I have 2 select boxes in a form that when the first select is changed the 2nd select will populate from … | |
Ive been trying to make a simple program that if i press the 'TAB' button it automatically presses 'Alt' (in a loop) Also i want it to work when python isnt the main program im using, like say a macro program. import pygame while True: if pygame.K_TAB: ye nvm im … | |
I have installed Tomcat 6.0.28 in my machine. But when trying to start it, it is not being started. A command window open for a fraction of second and then closed. No log or error is written in log. I have set up the JAVA_HOME, CATALINA_HOME, classpath and path variables. … | |
Yesterday I converted my site over to MS SQL and now I'm having an issue with part of my site. The search box is supposed to check for a part number the user types in, but it doesn't even come close anymore. In Access the column searched was a Number … | |
Hi.. i have to Create a simple data entry Windows Form application with the following requirements.(*Note it should be using ASP.NET 2.0 framework and c#) • Capture customer personal information and employment information. Personal information includes Name, Address, Phone and Date of Birth. Employment information includes Employer Name, Office Address, … | |
I need to kill a specific process, i got ListBox1, and Button1 and Button2 Button1 Gets Process which is notepad, When Button1 is clicked in the ListBox1 it shows the Main titled of the windows, Example Notepad is running and his title is Untitled - Notepad in Listbox1 will show … | |
Well, I did two windows The First Windows for the game And the secend window for the name of the game, CANCEL button PLAY button accidentally done now in FORM1 the game and the FORM2 post opening which of course does open before the FORM1 So I ask if There … | |
Hi, I've looked all over the web for several days and seem to find no answer to this issue. I would appreciate any leads. Thanks in advance for your time! I need to find the underlying disk capacity (total size) of an unmapped network share in windows (Win7, XP, Server … | |
Hi Guys , i dont know if this the right place to ask this question bt can anyone tell me what the heck SCORM is.I was trying to read some stuff on internet which does not make any sense to me.I also want to know that if i have an … | |
Thank you for reading my thread. I am experiencing an issue using struct tm and I can't figure out what I am doing wrong. I have looked at several examples and read up on the structure, but to me it all looks right. I would appreciate some fresh eyes on … | |
[CODE] set_element* make_set(int key) { set_element* node = (set_element*) malloc(sizeof(set_element)); node->parent = node; node->rank = 0; }[/CODE] In the above code there was no return statement and the function was used like this [CODE]elem1 = make_set(f1);[/CODE] And the code was working as expected. This is very funny. I am not … | |
What compiler can I use to build/run an flex scanner? I tried mircle and visual studio 2010 neither one would run the program. I have until mid night tomorrow to workout all the bugs and submit them. Thanks in advance | |
im a newbie to python, still learning as of today. as a part of my 'self-training' i listed some topics to practice every week but i was not able to run it successfully and im stuck. what i wanted with my activity is for it to read a .txt file … | |
PLEASE HELP. Hi I get the following error when I compile my java code and I have been trying to resolve this for past 4 hours without a solution. Java code import java.util.*; /**********************/ /* Class Subscriber */ /**********************/ public class Subscriber implements Runnable { String phoneNumber; String name; Integer … | |
I'm a bit confused about the executable offset in ELF files. Do you know what the difference between an address and an offset is in this context? It seems obvious but if you look at the 2 sections I bolded, sometimes the offset is something like : 00400164 000164 which … | |
My projects aim is to create an application that do syntax checking of javascript and html. I am using Microsoft.Jscript reference to help in the checking. Here is the code that I used to get the .js file and do a compilation so that it can generate errors if there … | |
Having a few problems with my Admin Page that lists all registered users with some of their information. I have a Delete button (which deletes the user permanently) and a Ban button (which bans user until I unban them). Both of these buttons have their own javascript that asks for … |
The End.