132,725 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for letigre

I've not programmed extensively, and I've got to create a program that's beyond my knowledge. I'm trying to create a program that will help me measure the amount of memory a certain IP routing algorithm will use to store address prefixes. The program must convert each dotted decimal address to …

Software Development algorithm java
Member Avatar for masijade
0
131
Member Avatar for dragontruong

This is what my debugger says, but I can't find the problem. Holding.h:15: warning: `class Holding' has virtual functions but non-virtual destructor In file included from p6.cpp:12: Recording.h:13: warning: `class Book::Recording' has virtual functions but non-virtual destructor p6.cpp:90: error: expected `}' at end of input Book.h:14: warning: `class Book' has …

Software Development c++
Member Avatar for mitrmkar
0
159
Member Avatar for Krysis

Hey all, I must say that I've had a lot of success with my questions here at DaniWeb, which is why (in my time of need), I'm back and seeking the help of the wise! Hopefully, someone can help me with this and has some basic knowledge of Pygame? Heh, …

Software Development python
Member Avatar for Krysis
0
478
Member Avatar for Ricky65

Hi I've been having problems retrieving a webpage using HTTP GET in winsock. I used a packet sniffer to construct the header and the GET Request appears fine although I receive a "400 Bad Request Error". Thanks if you can help. Ricky My code: [CODE] int HTTP_GET() { WSADATA wsa; …

Software Development c++ data-structure xml
Member Avatar for Ricky65
0
363
Member Avatar for trantran

I've look in the C++ standard and, when listing list of compound stuff, it does not mention anything like "pointer to [B]data [/B]member of an instantiated class". So the question is: [CODE]struct test{ int a; double d; ..... //more complicated stuff here to make it a NON-pod structure) .... }; …

Software Development c++ data-structure legal
Member Avatar for trantran
0
122
Member Avatar for WackyZ

Can someone please help me - I need to write a function that will validate UK postcodes written in a textbox but every tutorial and example source code I find for it is in other languages such as VB and Javascript. The VB code looks extremely small: 1. Public Function …

Software Development delphi pascal regex
Member Avatar for Ionelul
0
479
Member Avatar for BobC22

Hi, I have been working on a Reversi/Othello game using QT and have got stuck when trying to implement a new game function which will return the game state back to its original state. reversigame.cpp [CODE]/** @file reversigame.cpp @author Rob Charrett @brief ReversiGame implementation. */ #include "reversigame.h" ReversiGame::ReversiGame(QWidget *parent, Qt::WFlags …

Software Development c c# c++ gui qt
Member Avatar for BobC22
0
183
Member Avatar for YeMiller

Hi there, I'm getting on pretty well with a project for uni I've got to do, although I'm currently slumped at a bit. I'm running a loop to constantly read numbers into a set of equations and I'm required to output these to an excel file. I've sussed making the …

Software Development c++ file-system
Member Avatar for YeMiller
0
603
Member Avatar for Dex02

Hello guys I am making a speel check program in Turbo/borland c++ and i have a problem with the libary #include <vector.h>. Is this labary in Turbo/borland c++ difrent or what? Here is the program: [CODE] #include <iostream.h> #include <fstream.h> #include <vector.h> #include <string.h> vector<string> explode( const string &znak, const …

Software Development c++ ios
Member Avatar for Dex02
0
139
Member Avatar for jozz3

I am trying to define a function that draws a triangle of a given size using the turn method. I've never used turtle graphics before and am not sure how to go about this. Thank you

Software Development python
Member Avatar for vegaseat
0
824
Member Avatar for Mz3g

Hi guys, I'm doing a program that reads from two files and write to 16 files. The idea of the program is to rout packets across a network that contains 16 nodes. I still working in the routing mechanism but I just wrote the codes for the source node and …

Software Development c++ open-source
Member Avatar for daviddoria
0
187
Member Avatar for gorgey506

[CODE]// Word Jumble // The classic word jumble game where the player can ask for a hint #include <iostream> #include <string> #include <cstdlib> #include <ctime> using namespace std; int main() { enum fields {WORD, HINT, NUM_FIELDS}; const int NUM_WORDS = 5; const string WORDS[NUM_WORDS][NUM_FIELDS] = { {"abbott", "part of colton's …

Software Development c++
Member Avatar for Grn Xtrm
0
167
Member Avatar for sachintha81

I have a service (say BS.exe) written using C# of which the installer is created using Wix and C# (which means it has a Custom Action program associated with the Wix installer program as well). Now, after the program in installed there is a need to go to Windows Firewall …

Software Development c# router-proxy-firewall
Member Avatar for privatevoid
0
520
Member Avatar for ITGuy2010

I need help creating a batch of Grand Totals each time enter my value and click Calculate. The code below gives me my Grand Total, now I would like to enter a new set of values and store the previous amount(s) until I'm ready to populate them in a Message …

Software Development vb.net
Member Avatar for Oxiegen
0
155
Member Avatar for ana_eht

hi again problem with listbox :( i really tried to find help from google but i couldn't My problem is this : I have 3 listboxes quantity , MenuItem , Price then user must enter data into them then when user clicks on one item in one listbox the same …

Software Development vb.net
Member Avatar for Oxiegen
0
141
Member Avatar for meowbits

I dont want to have to use a case (1-9) to fill pictureboxes with images, is there any way I can reduce this to one? If so.. please explain, basically be able to [CODE]For i = 0 to 8 if player = 1 picturebox(i).image = my.resources.x else picturebox(i).image = my …

Software Development vb.net
Member Avatar for Oxiegen
0
122
Member Avatar for adam2009

Hey all, I have a winServer 2008 machine. I have created a new local user. In order to make him an admin all I have to do is to add it to the "administrators" group. right? now, I wrote a c# code that supposed to connect that local user and …

Software Development
Member Avatar for kvprajapati
0
564
Member Avatar for duke.tim

okay so I am having an error with the code below and don't really know how to fix it, according to what I've looked up it should be right. I am using g++ on a linux system. (P.S. i'm a newbie ) okay and the error is: random.cpp: In function …

Software Development c++
Member Avatar for duke.tim
0
717
Member Avatar for Jfunch

I'm suppose to write a program that asks the user to enters numbers which will be stored in a dynamic array. Then once they enter their first set of numbers they are asked whether they would like to enter another number or remove a number from their list. You can …

Software Development c++
Member Avatar for tetron
0
148
Member Avatar for Lee21

guyz i need your help. I want that everytime I press the ESC "ESCAPE key" there will be a message box popping out then will ask if I want to exit? then if I click the Yes button my Progrma Ends. I also used the form_closing event heres my code. …

Software Development vb.net
Member Avatar for Luc001
0
7K
Member Avatar for emaduddeen

Hi Everyone, Can you tell me how to change this code so the value in my DatePicker control will update to the database in this update statement? [CODE] strAttendanceUpdateStatement = _ "UPDATE Attendance " & _ "SET DateOfClass = " & DatePickerDateOfClass.Value & ", " & _ "Absent = " …

Software Development vb.net
Member Avatar for emaduddeen
0
123
Member Avatar for hellskier

Hello, I have a little program that needs to get data from two separate .csv files for afterwards parse them and translate info to vectors. Everything works fine when I am working with just one file (so just one ifstream), but when I try to use another ifstream to read …

Software Development c++
Member Avatar for hellskier
0
178
Member Avatar for pankajpriyam

Hi, I am using Python 2.3.4 in Linux environment. I have some sql files, I execute sql files in a loop. I want to generate seprate log files for every sql files in loop. How can I do this. regards pankaj

Software Development python
Member Avatar for jice
0
101
Member Avatar for satimis

Hi folks, I use following script:-[code] #!/bin/sh # cd Linbread TODAY=`date +"%m%d"` DATA=`grep $TODAY linbread.dat` HOUR=`date +"%H"` if [ $HOUR -le 11 ] then TOD="Morning" elif [ $HOUR -ge 12 -a $HOUR -lt 18 ] then TOD="Afternoon" else TOD="Evening" fi echo $DATA | gawk -F"|" '{printf("%s\n\n%s",$2,$3)}' > $$tmp fold -s …

Software Development shell-scripting
Member Avatar for Robert Robinson
0
111
Member Avatar for k2k

just wondering if anyone could explain this... [code] if(loginF.equals("root") && passwordF.equals("root"))[COLOR="Red"]; [/COLOR] ---> if this semicolon is here, my program works.. but i can't have an else statement if i take out this semicolon, the code within the if statement don't execute.. but i can then have an else statement …

Software Development java
Member Avatar for JamesCherrill
0
108
Member Avatar for mks200

ok im kinda stuck in this homework, i dont know where to go next, please help me i need this done soon! heres the problem Your swim school has two swimming instructors, Jeff and Anna. Their current schedules are shown below. An "X" denotes a one-hour time slot that is …

Software Development c++
Member Avatar for thomas_naveen
0
420
Member Avatar for close_encounter

I'm brand new to C++ and I'm having a difficult time. I'm working on a project for school and I'm very confused with functions all together. How do I get my arrays from main so I don't have to have them in each function and how do I call each …

Software Development c++
Member Avatar for Banfa
0
146
Member Avatar for zainz

I am tring to draw a house & street & garden but i stop....? could plz someone help me and complete my job this is my code import java.awt.*; import javax.swing.*; public class Zzzzzzzzzzzzzz extends JApplet { public void paint(Graphics a) { house(a); door(a); roof(a); rode(a); } void house(Graphics b){ …

Software Development java java-swing
Member Avatar for jwenting
0
114
Member Avatar for jiraiya

Hi everyone, I have a single string - let's call it string A. I have an ArrayList of objects. Each object contains three strings. I want to iterate through the ArrayList of objects and check if any of the strings contained within the objects are the same as string A. …

Software Development java
Member Avatar for jiraiya
0
94
Member Avatar for "ICode"

These days, as we all know, graphics is probably the most important thing. I made a program using C# and the only graphics im using is that of WFA, but i want to apply EXTREME graphics to it, like that of windows media center, or something like that. What would …

Software Development c#
Member Avatar for "ICode"
0
321
Member Avatar for cproud21

I have created the following code to act as a buffer between two threads. I am trying to add support to handle empty and or full buffers, and am not sure how to address this. Would it be done through condition variables? Thanks. [CODE]#include <stdio.h> #include <pthread.h> #include <unistd.h> //for …

Software Development c++
Member Avatar for vijayan121
0
239
Member Avatar for z 4

This def has too many IF, i don't know how to optimize this code for more simplier and professional. Please take a look. [CODE]def cfg_wlan(self, wlan_cfg): """ Configure a new wlan for Zone Director. Input: a dictionary, supplied in DUT.py Output: none """ if wlan_cfg['auth'] == "PSK": auth = "open" …

Software Development encryption python
Member Avatar for Gribouillis
0
113
Member Avatar for kodera

This is just the beginning of my name sort prog... I am starting with just reading in the names and then outputting each name... As of right now, it is crashing after displaying the first name... I think it's something with my array.. rectangular, instead of square, but don't know …

Software Development c++
Member Avatar for jonsca
0
71
Member Avatar for timbomo

I cant seem to figure out why this program wont write to a .txt I commented out the meaning of each step and it looks like i am doing everything correct. If i can get it to write it and goto the following steps. [CODE] float price,curr_total=0.0; int itemnum, wrong=0; …

Software Development c++ file-system
Member Avatar for VernonDozier
0
137
Member Avatar for hinks

hi all I am creating a Visual basic gui which shows an databse which has been created by using the microsft access database feature within visual basic 6. here is the problem i am close to hanfing in my project when i try and use the .exe on another computer …

Software Development gui visual-basic
Member Avatar for kinwang2009
0
101
Member Avatar for chandruswami

Hi, In C#, i got sql Exception which consists of 2 lines. I need only the 2nd line of that Exception only. Ex: The transaction ended in the trigger. Table Validation failed - Name: x; Condition: m!=0 i need "Table Validation failed - Name: x; Condition: m!=0" only. I have …

Software Development sql
Member Avatar for chandruswami
0
147
Member Avatar for timbomo

[QUOTE]in the files in_stream2 and 4 they wont open correctly but the rest of them will and i cant move forward until i fix it. i dont even no where to start when trying to fix it could someone help?[/QUOTE] [CODE]ifstream in_stream; // reads itemlist.txt ofstream out_stream1; // writes in …

Software Development c++ ios
Member Avatar for timbomo
0
122
Member Avatar for Mandana_bgh

hi i use log4j for logging i want the file that logs append to it , in every day be separated .for example my logs for today input in 2010-04-20.log and tomorrow in 2010-04-21.log file!! or any way that i can understand that this log file related today and that …

Software Development java xml
Member Avatar for Mandana_bgh
0
100
Member Avatar for pranay_agg

how can one determine whether a given string can be expressed as a concatenation of palindromes of even length.

Software Development java
Member Avatar for jwenting
0
107
Member Avatar for the_mia_team

I Have this problem and honestly have no idea where or how to start this, can anyone give me an idea or help? [QUOTE]Write a JavaScript program to calculate the statistics of words in a web page. When running the program in a web page, the script should output all …

Software Development java
Member Avatar for jwenting
0
113
Member Avatar for hiz460

Hi, Im trying to input a search box in my forms so that when I type in a customers name it will show there record. I've managed to do it in my transaction form, but not in any other standard forms. In my transaction form I've got this code: [CODE]Private …

Software Development dataset vb.net
Member Avatar for pritesh2010
0
139
Member Avatar for RichardCrickets

So I have my documentbuilder and I'm doing this the DOM way. I've managed to get to the point where I have saved the tag I want into a nodelist NodeList list = doc.getElementsByTagName("myTag"); the xml looks like this <myTag id="1"/> but now I want to grab the id number …

Software Development java xml
Member Avatar for moutanna
0
95
Member Avatar for Signal_Hill

Hello All... To be honest, this is a bit overwhelming, but I'm hoping that someone might be able to steer me in the right direction. I am currently taking a correspondence course in Computer Programming, and without instructional support, am finding that the material can be somewhat overwhelming. I'm looking …

Software Development c career
Member Avatar for Adak
0
93
Member Avatar for Hidden_mistakes

Hi i am trying to create a racing game and at the moment i have keyboard input which moves the player around at the same continous speed. I am wanting it to speed the player up however the longer you hold the key down for. Any simple way i can …

Software Development c++
Member Avatar for Hidden_mistakes
0
109
Member Avatar for xcarbonx

Hello, i am currently working on a grade program that displays the student name, id #, and 2 grades. I have to read each of these categories off of an input file which should look like the following for at least 20 students.: EX: Jack Smith 450654333 95 89 The …

Software Development c++
Member Avatar for xcarbonx
0
128
Member Avatar for Elenaser

Hello, I am currently trying to write a program that will display a chart for the inventory of a car dealer. Here are the major points of the assignment, the ones Im having trouble on: Write a program to be able to display the instock table as instructed below : …

Software Development c++
Member Avatar for Elenaser
0
192
Member Avatar for bachan28

hi community, i really want to improve my ability in programming vb.net so can you help me improve it by giving me a task or a work to do? like teachers on schools?:$ ( though im not saying that im really good in programming and will be able to do …

Software Development vb.net
Member Avatar for P0lT10n
0
81
Member Avatar for crodriguez08

Hey, I'm pretty much almost done with this program, but I'm not sure how to clear a previous file (after opening it) in order to open a new one. My program is supposed to open a file with a maximum of 100 unordered decimals and allow the user to sort …

Software Development c++ file-system
Member Avatar for crodriguez08
0
106
Member Avatar for collinisaac

ok heres what i got [CODE]Main.cpp System::Void Form1::button1_Click(System::Object^ sender, System::EventArgs^ e) { SetText("Hello, it's working"); } System::Void Form1::SetText(String^ strText) { this->textBox1->Text = strText;[/CODE] form1.h [CODE]private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e); private: System::Void SetText(String^ strText); [/CODE] What if I want to display the results of type double variables or int variables …

Software Development c++ display
Member Avatar for jonsca
0
113
Member Avatar for goldstmarc

Hi, I just want to say i've been searching around this forum and have seen things about GMP and precision arithmetic (which im reading now). However, i've seen nothing to the extreme of a number that I need. This is an *extremely* large number. Before I even get into the …

Software Development c++
Member Avatar for NathanOliver
0
192

The End.