199,114 Archived Topics
Remove Filter ![]() | |
hello, I am trying to write this code to solve the josephus problem. All I am getting is Segmentation Fault(coredump)? i am assuming its something to do with me using calloc but i cant tell what i've done wrong? any suggestions? thanks! [code=c] /*program to give solution of josephus problem … | |
sorry for this question but i don't know how to correspond this: picture box1=blob1,picture box2=blob2,...etc; i try it i look all the source code and didn't find how to take the image of each blob.where can i find the image of each blob? i have stuck. basically i want to … | |
hi i am not famelier with this site and i dont know how to ask for help i want to implement breadth first and depth first search for solving 8 buzzel problem may you help me? | |
Hi, I have a list box that on form load displays file names inside a directory using this code [code] DirectoryInfo di2 = new DirectoryInfo(path); foreach (FileInfo fi2 in di2.GetFiles()) { listBox1.Items.Add(fi2.Name); } [/code] Which works fine, however i have another function on my form which adds files to the … | |
hello i am supposed to design a code to convert state abbreviations from only five states. I don't really know how to put if...else statement in here if anyone can help. This is what I have written so far but i am beginning so it could be completely wrong. [CODE]using … | |
SO here is the code I need help with, basically I need to write a program that cheks if 5 words from a input document are in a dicionary document both .txt files I made, I really tried but cant find where to start, any help would be appriciated. [CODE] … | |
Hi all..i make a program use javascript to call VB.Net function..but it doesn't work...can somebody help me to check this code... [code=vb.net] Imports System.Runtime.InteropServices <ComVisible(True)> _ Public Class Form1 Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load WebBrowser1.ObjectForScripting = True WebBrowser1.DocumentText = "<Script language='JavaScript'>" & vbCrLf … | |
Hello everyone! I am currently going to build a simple booking website for a restaurant using PHP which will have two major functionality. One will be to book for seats and other to possibly let people order takeaways. Now that will be the front end of the system. But I … | |
I had to create a program that has to work with an array of MAX temperatures, define a constant for the array size, use sort and search algoritms, and write a menu driven program for homework. I am stuck on what's next after the int declaration as such; #include<stdio.h> #defineMaX6 … | |
![]() | Hi, I'm probably just blind or something, but IE7 just stopped letting a popup I've written in javascript from opening in a (duh!) popup window. Instead, it's loading in the same tab as the link was called from. That violates the tab settings I have established to pretty much open … |
help! I am getting an error message, no appropriate default constructor available. I am not sure what I need the default constructor for? how do I correct this? [CODE]#include <iostream> #include <string> using namespace std; struct Node { /** member variables */ int key ; string value ; int x; … | |
I am trying to change the NIC speed through the registry.. But my problem is that I dont fully understand the command RegSetValueEx. I have checked the Internet up and down for some good examples but have fallen short.. I am tring to set the default value for the NIOC … | |
Hi All, I have the function that need to be type cast the void point to different type of data structure. Is there any way to do that with the name of structure and the void pointer. For example I have the follwowing data structure: [code] typedef struct struct_a_s u_int16_t … | |
I got this code and I cannot get it to work. I want it to show up with the type of attacks you can do which it does. After each time you attack the enemy the enemy attacks you of a damage between 1-10, then its my turn etc until … | |
I have a project due for my computer programming class on Monday, and though I've completed the majority of the program, I now have to loop it and have no idea how. Here is the program: #include<iostream.h> int add (); int subtract (); int multiply (); int division (); void … | |
Hello Guys! I get this error when I try to run one of my php page but I do not get this error in other page which are basically same. Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\go\birthday.php:1) in C:\xampp\htdocs\go\auth.php on line … | |
Let us have a complex class with two double data member. If I would like to copy it by reference that means that I have two copy one or two pointers? | |
I have to write a program which uses 2 classes to load 2 dat files into arrays. I then have to somehow compare the IDs in array1 to the IDs in array2 to get the extra IDs out of array1. These extra IDs then have to be stored somewhere so … | |
Hello DaniWeb! I know this is my first post, but I don't want to be taken as a "n00b" or whatnot. I know my way around PHP and MySQL fairly well, so to make up for the fact that I'm only 15 and don't know [u]everything[/u] yet, I'll try and … | |
Hey, what i am trying to do is to write a function that inputs a student's average and returns 4 if a students average is 90-100, 3 if the average is 80-89, 2 if the average is 70-79, 1 if the average is 60-69, and 0 if the average is … | |
The Question is : A store has 6 items. Each item has a price and a bar-code that uniquely identifies it. To simulate such a store, the program offers a menu showing the codes, their corresponding items, and their prices. The user chooses one or several items to buy, and … | |
Hey, I'm in a class in which the assignment here is to sort integers. We were called on to use two different sorting methods: InsertSort and HeapSort. My InsertSort works just fine. My HeapSort, however, does not; when the HeapSort() function is finished, the integers are still out of order. … | |
So near and yet so far. I introduced myself to session control and made a decision to only use session files (not cookies) I am submitting: session_start( ); $_SESSION['uid'] = $iduse; The session file is created and correctly reads the following where the value of $iduse is 1H: barney|s:2:"1H"; In … | |
[CODE]#include <iostream> #include <cstring> using namespace std; int numberOfDeposit, numberOfWithdrawal; double monthlyInterestRate, monthlyInterest; float totalAmount; double MonthlyServiceCharge; int selections, choices, functions; string name, address, loginID; int idNum, password; class bankAccount { public: bankAccount() { float balance; double annualInterestRate; } float thismonthDeposit; float thismonthwithdrawal; float balance; float getbalance() { return balance; … | |
i have this program and i'm already done with the data entry, search, display and exit menu.. my only problem is my search and delete and the search and edit...please help me. i've attached my unfinished program here: Programming Assignment: Write a program to simulate a telephone directory. The user … | |
Hello I have an assignment that is due and am in need of some dire help. I would appreciate all the help that I can get. Please bear with me. I am new to Java and Daniweb. I have to create a java application that displays the product number, product … | |
I have viewed a lot of threads out there relating to what I am looking for and can't seem to find one that will help. I am reading data in from a file. Even though I already know how many names are stored in the file, I need to write … | |
Can someone help please! I need to search for a different set of strings like: 'fummy' or 'users' or 'logon' from a directory like this: C:\mycase\Nic..\ A Text document is stored in there LIKE: 544, Text Document, 45, 588 KB Can some help to write a script or python program … | |
Ok. So. Who doesn't know how to convert on paper or in their head decimal numbers ==» binary number, or vise-versa? Well. I've successfully programmed a conversion calculator for those who just never took the time to learn, for those who don't care to learn, and for those who've got … | |
I've been trying to figure out how to capitalize all the sentences in a string. In the string [CODE]a = "this is the test string! will it work? let's find out. it should work! or should it? oh yes. indeed." [/CODE] I want all the characters after [I]". " "! … | |
Hi! I have 5 different functions which all must be connected to main, for example a menu that calls each function. How do I do this? Thanks in advance! Best regards Adam | |
Hi I have a problem where dot is used in a table's column name. Say that there is a column called 101.name in a table t1. How do i reference this column in the following: select ... from table t1, table t2 where t1.101.name='test' This doesn't work because of the … | |
Hello, I have a problem to add string arrays into the ArrayList. My data is recorded as: {"1","0","a"}, {"1","1","b"}, .... I'm going through the "for" loop and trying to store each of these records into the ArrayList, but, after it stores all records, it appears that all elements in the … | |
[CODE] ;==================Prompts=============== warning db "Invalid order. The dividend should be greater than the divisor",0 prompt1 db 0dh,0ah,"Please enter a dividend ",0 prompt2 db 0dh,0ah,"Please enter a divisor ",0 Display db 0dh,0ah,"Quotient: ",0 Display2 db 0dh,0ah,"Remainder: ",0 ;==================Variables============= dividend word ? ; Holds the dividend divisor word ? ; Holds the … | |
I realize no one is going to want to read through this source code but if anyone does and is able to tell me why I'm getting the errors I'm getting I would be extremely grateful and would pay them back somehow. My code is as follows (I just put … | |
I got this to compile, but it's not popping my Dialog box. The tutorial from [url]www.winprog.org/tutorial[/url] didnt necessarily specify where my AboutDlgProc() is suppose to go ? I assumed it went above the Default but I am unsure... I'm trying to understand why it's not popping my Aboout Dialog when … | |
gives me error on 3rd coded line in search(). [CODE] #ifndef MY_HT_CHAIN_H #define MY_HT_CHAIN_H #include <iostream> #include <vector> #include <list> using namespace std; class my_ht_chain { public: //constructor which creates a table of a certain size my_ht_chain(int initTableSize); //destructor ~my_ht_chain(); //insert a value based on key void insert(int key); //search … | |
Hello guys. I want to compare two files using a system call to DOS command fc. The problem is that fc does not open the file entered as a command line argument. [code] code = system("fc args[1] ..\\o.txt"); [/code] Does anybody know how to make it work? | |
I Have a code that fails abruptly after going through several hundred times around a for loop. (The loop is not over yet . I can see that from my printed output) Pinpointing the exact location (line number) and variables at that point of failure can provide me with useful … | |
How would i write a function to accept X number of parameters for ex if i want to write a function to insert into a db. i dont know how many fields i will be inserting into the table? | |
Hi, I created simple exe file that contains month calendar control using framework 3.5 in XP machine and run this exe in vista the month calendar control not fully display, i write the following code to check for OS [Code] if (_operatingSystemName.ToLower().Contains("microsoft® windows vista™") == true) { QuickCalendar quick = … | |
During run-time of a menu driven program, I want the user to see what option the user has entered. Something like this :- [CODE][OUTPUT] . . . Enter Option : [1] <- [I]User given[/I] Press Any Key To Continue ... [_] <- [I]Blinking Cursor[/I] . . . [/OUTPUT][/CODE] After I … | |
HI i am making a window aaplication using MS Access data base........ I have three combobox of Class, section and subject on form, now i want that when user first select class ,then he selects any section corresponding to that class and then from the third combo he could select … | |
I have been given an assignment to design and program a calculator using C++ and Ultimate ++IDE(Integrated development Environment). My code should have a class Calculator as a base class, and another class scientificCalculator which inherits from class Calculator. The Calculator class performs basic arithmetic operations. The scientificCalculator adds more … | |
Here we apply the module difflib to compare two texts line by line and show the lines of the first text that are different from the second text. | |
Hello im having trouble understanding between the difference 0 and 1 in C. the way i understood it is that 0 is true and 1 is false. Is this correct??? or is it 0 is false and 1 is true?? | |
[CODE]element = {'H': 1, 'N': 6, 'F': 7, 'Cl': 7} i = input("Enter: ") dots = '*' totalDots = (dots * i)[/CODE] Enter: H Traceback (most recent call last): File "D:/Python26/lewisdot.py", line 4, in <module> i = input("Enter: ") File "<string>", line 1, in <module> NameError: name 'H' is not … | |
How to change screen colour, font colour, making various shapes , presenting slide shows in c++ | |
Hello All I have been created a full Employee Mgmt. web Application . Application name is MyEMS with Database DBEMS Now I want to create a set up ( like any product set up ) Which can be able? • To install application • Create database • Set IIS settings … | |
I have a code: [CODE]Private Sub OK_Click() Dim Username As String Username = InputBox("Username") If Username = "Martyna" Then MsgBox "Welcome, " & Username Else: MsgBox "Sorry, access is denied, please Check your username and try again" End If End Sub[/CODE] and it should ask 3 time for username then … |
The End.