199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for charlichickxx

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 …

Member Avatar for jephthah
0
763
Member Avatar for ntouros

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 …

Member Avatar for DdoubleD
0
144
Member Avatar for jehad

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?

Member Avatar for kvprajapati
0
126
Member Avatar for wingers1290

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 …

Member Avatar for DdoubleD
0
292
Member Avatar for rzhaley

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 …

Member Avatar for rzhaley
0
210
Member Avatar for Draculaboy1014

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

Member Avatar for jephthah
0
146
Member Avatar for soeppp

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 …

Member Avatar for shazi786
0
139
Member Avatar for 6pandn21

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 …

Member Avatar for Stefano Mtangoo
0
127
Member Avatar for amsmith90

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 …

Member Avatar for Nick Evan
0
75
Member Avatar for djMot

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 …

Member Avatar for hapakity
0
97
Member Avatar for Gem74

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

Member Avatar for Gem74
0
2K
Member Avatar for BruenorBH

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 …

Member Avatar for BruenorBH
0
418
Member Avatar for jodie121997

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 …

Member Avatar for Narue
0
498
Member Avatar for josh48

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 …

Member Avatar for FlamingClaw
0
157
Member Avatar for jessicamelillo

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 …

Member Avatar for Murtan
0
90
Member Avatar for 6pandn21

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 …

Member Avatar for llsatellite
0
189
Member Avatar for merse

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?

Member Avatar for merse
0
67
Member Avatar for Seriss

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 …

Member Avatar for Seriss
0
86
Member Avatar for ap3x

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 …

Member Avatar for ap3x
0
581
Member Avatar for Mclovin1234

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 …

Member Avatar for Grn Xtrm
0
362
Member Avatar for mr.hassan4489

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 …

Member Avatar for zobadof
0
152
Member Avatar for DCV

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

Member Avatar for Narue
0
137
Member Avatar for 68thorby68

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 …

Member Avatar for 68thorby68
0
137
Member Avatar for hao90

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

Member Avatar for zobadof
0
188
Member Avatar for eissen_eiram

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 …

Member Avatar for jephthah
0
157
Member Avatar for intelnf09

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 …

Member Avatar for intelnf09
0
1K
Member Avatar for wittykitty

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 …

Member Avatar for jonsca
0
221
Member Avatar for fummy

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 …

Member Avatar for Murtan
0
187
Member Avatar for Kippstah

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 …

Member Avatar for Kippstah
0
1K
Member Avatar for Yeen

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]". " "! …

Member Avatar for Yeen
0
1K
Member Avatar for foxmulder

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

Member Avatar for kevinkace
0
118
Member Avatar for fisk007

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 …

Member Avatar for fisk007
0
1K
Member Avatar for micka10

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 …

Member Avatar for micka10
0
268
Member Avatar for Fenrir190

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

Member Avatar for NotNull
0
157
Member Avatar for ellimist14

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 …

Member Avatar for shaneselling
0
139
Member Avatar for CodyOebel

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 …

Member Avatar for CodyOebel
0
147
Member Avatar for lotrsimp12345

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 …

Member Avatar for lotrsimp12345
0
102
Member Avatar for blerina12

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?

Member Avatar for blerina12
0
153
Member Avatar for JeyC

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 …

Member Avatar for jonsca
0
103
Member Avatar for mrjoli021

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?

Member Avatar for kireol
0
108
Member Avatar for khemalatha

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

Member Avatar for ddanbe
0
89
Member Avatar for xavier666

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 …

Member Avatar for xavier666
0
155
Member Avatar for abc16

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 …

Member Avatar for towerrounder
0
92
Member Avatar for masapo

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 …

Member Avatar for Narue
0
119
Member Avatar for vegaseat

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.

Member Avatar for jimothy
0
236
Member Avatar for speedy94519

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

Member Avatar for Narue
0
295
Member Avatar for checker

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

Member Avatar for jimothy
0
148
Member Avatar for Amreen

How to change screen colour, font colour, making various shapes , presenting slide shows in c++

Member Avatar for zobadof
0
57
Member Avatar for ashishparihar

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 …

Member Avatar for customercare
0
191
Member Avatar for pytup

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 …

Member Avatar for vb5prgrmr
0
86

The End.