132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for jhamill

Hey so I dont want someone to just show me the code, but I've been struggling to get this to work for hours. I need to write a program that finds all the words with consecutive vowels in them... this is what I have so far... -we are given a …

Software Development java linked-list
Member Avatar for DavidKroukamp
0
452
Member Avatar for chebude

I am trying to catch error on file input/output. The try functions works fine but as it pass to the next line my code breaks. How can I exit gracefully when the 'infile' doesnt exist? [CODE] try: infile = open ('Book1.txt', "r") except IOError: print "input file %s is missing" …

Software Development programming-construct python
Member Avatar for chebude
0
360
Member Avatar for lmytilin

I'm a little lost with C++ so I could really use your help with this one! I googled it but nothing does what I want to do! So here is my problem... Let's say I have a file like this: A 10 20 30 40 B 25 13 100 99 …

Software Development c++
Member Avatar for Lerner
0
180
Member Avatar for bobanderson93

every time i run the program it prints out 0. I think something is wrong with my display function but i cant see the problem. [CODE]#include <iostream> using namespace std; #define STACKSIZE 10 class stack { private: int arr[STACKSIZE+1]; int tos; public: stack(); void push(int x); int pop(); bool is_empty(); …

Software Development c++
Member Avatar for richieking
0
136
Member Avatar for lscamaro

I'm a college student learning how to program in C. We recently got an assignment to transpose a list of names. We have to read in from a file a list of names and print them out and write to a file with the names going downwards. I'm not asking …

Software Development c
Member Avatar for WaltP
0
122
Member Avatar for Litcandle

Does anyone have an example or a starting point for this? I have written a program that checks for palindromes but I am lost with this. Any help would be great, thank you! [COLOR=#000000][/COLOR] [COLOR=#000000]Create a class that models a palindrome. The program should have getter and setter methods for …

Software Development java
Member Avatar for stultuske
0
412
Member Avatar for vijay496

Plz help me in writing a prog that coverts a integer values to respective hexa value and store it to a file eg: in file i need like this 15 0xf(0x mandatory), 255 0xff 254 0xfe

Software Development java
Member Avatar for hiddepolen
0
123
Member Avatar for GAiXz

GOOD DAY PROGRAMMERS!! :twisted: i just want to know How to do this kind of problem [url]http://www.daniweb.com/forums/attachment.php?attachmentid=23623&stc=1&d=1327489022[/url] i just want to save the date interval like i will select the Start Date and End Date ex. [COLOR="Red"]Start Date/Time: 26-Jan-12 / 03:00:00 PM End Date/Time: 31-Jan-12 / 03:00:00 PM [/COLOR] how …

Software Development open-source vb.net
Member Avatar for codeorder
0
457
Member Avatar for Smartflight

We have been assigned to make a program for a bank using data file handling, as our project. I am having some trouble at this point... the last object written in the file is printed twice and I've no clue as to why. Case for display: [CODE]file.open("Records.dat", ios::in | ios::binary); …

Software Development c++ file-system ios
Member Avatar for WaltP
0
558
Member Avatar for andrew1532

I have written a code to be able to produce an image where i can choose a background colour and then draw a line of chosen colour on top. The problem I am having is that I can't get the program to be able to produce vertical and horizontal lines …

Software Development c
Member Avatar for nezachem
0
199
Member Avatar for triumphost

Sorry for using Inception in the title but it's the only way I think I can describe it.. Take this for example: Definition.H [CODE] struct XY { string info; string name; string tag; string attrib; }; //is it better to create an object here inorder to make the array? struct …

Software Development c++
Member Avatar for triumphost
0
142
Member Avatar for vyrte

hello everyone! i'd like to know if theres a way to run my program until the user presses Esc button. i use linux environment and my main function runs fork().i want the program to stop the fork() when the user presses escape. thank you!

Software Development c++
Member Avatar for WaltP
0
178
Member Avatar for lxXTaCoXxl

I haven't tested this yet but it should work. The implementation is fairly simple. I don't have my laptop so I can debug the code at the present time. This basically increments the frame count everytime the game draws itself (allowing us to calculate frames per second considering the draw …

Software Development
Member Avatar for lxXTaCoXxl
0
257
Member Avatar for ram619

The result of this code is 65535 But I believe that for && both sides must hold true (rather one side being true is enough for ||) so how come the result is 65535 ????? when after 5++ the first condition becomes false ????? Thanks in advance [CODE=c]#include<stdio.h> #include<conio.h> void …

Software Development c c# c++
Member Avatar for ram619
0
121
Member Avatar for apeiron27

i imported struct module and packed my integer data with '<I' do my packed data still retain their number characteristics? i only need to do booliean check comparing two numbers in packed form like a>b or a=b stuff like that. i did couple of tests and it seems to work …

Software Development python
Member Avatar for TrustyTony
0
125
Member Avatar for jigglymig

I am trying to make a circular linked list and I think I am not linking it properly in the middle area because I can print the last and first node, but not the rest... [CODE]#include <iostream> #include <new> using namespace std; struct node { int Item; node* Next; }; …

Software Development c++ linked-list
Member Avatar for Lerner
0
108
Member Avatar for galhajaj

Hi :) there is a way to save versions of my solution easily in .NET C#? what i am doing currently its copy the solution folder onto a backup folder and change its name to SOLUTION_NAME_X.X while X.X its the version number. i guess the Microsoft dudes had thought of …

Software Development
Member Avatar for gusano79
0
144
Member Avatar for nlyn

So I have an assignment due tomorrow and I've been trying to get this program to work, but it's quite difficult for me to do. I need help in taking the user's input and placing it on the grid and checking for all the matches to see if one of …

Software Development gui java java-swing
Member Avatar for nlyn
0
1K
Member Avatar for daydie

hey guys this code is not working [CODE] Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click Do Until X = TextBox6.Text X = TextBox5.Text + 1 Label4.Text = X Me.Refresh() WebBrowser1.Document.GetElementById("subject").SetAttribute("value", TextBox3.Text) WebBrowser1.Document.GetElementById("message").SetAttribute("value", RichTextBox1.Text) WebBrowser1.Document.GetElementById("btnSubmit").InvokeMember("click") WebBrowser1.Navigate("http://forum.ea.com/uk/pm/sendTo/" & X & ".page") ReaderTimer.Interval = 5000 ' In thousands …

Software Development vb.net visual-basic
Member Avatar for codeorder
0
206
Member Avatar for BharatBodage

Dear sir, I need your help for VB.net 2008. Currently i am MCA student. I have develope a small apllication. I required help for Browse button & Print button. Browse button can accept path of image from any drive & of any type. And print button gives command of print …

Software Development gui printer vb.net
Member Avatar for codeorder
0
180
Member Avatar for PainOfTruth

Please help me run this program, i forgot the output of this.. [CODE] #include<iostream> #include<cmath> using namespace std; class SumTwoNumbers { int nx,ny,sum,suma,sumtn; public: int GetFirstNumber(); int GetSecondNumber(); int GetSum(int,int); void Display(int,int); }stn; int SumTwoNumbers::GetFirstNumber() sum=nx+ny; //here is where the errors i wrote below points! i dont know why return(sum); …

Software Development c++
Member Avatar for sharathg.satya
0
417
Member Avatar for themmings

Hello, I have a project to complete where I need to create a system that stores Clients, Stock and Invoice data through a GUI. I need to be able to store multiple unique records of 'Client' in an array that allows me to edit, delete & navigate through them one …

Software Development gui java
Member Avatar for JamesCherrill
0
3K
Member Avatar for Ayzu

I'm trying to implement priority queue using a singly linked list, but the program is not running in the best way, n the display function is showing just first n last node's data , y??? [CODE]#include<iostream.h> #include<conio.h> struct node { int n,p,b; // Data members for getting Task no. ,Priority …

Software Development c++ display linked-list
Member Avatar for Ayzu
0
246
Member Avatar for venky019

Hi, I got this error while trying to access the method that I've posted here. Main program: cin>>sname; string x; Sports x = Sports.getName();//error:a nonstatic member reference must be relative to a specific object. loc=x.find(sname); In Sports.cpp: string Sports::getName() {return name;} I've declared getName() function as public.Still I'm getting this …

Software Development c++
Member Avatar for Ancient Dragon
0
3K
Member Avatar for ichigo_cool

Hey everyone, I've made a game with SDL and I'm now trying to distribute it. I've included all of the required .DLLs and such but now I get this error whenever I try to run the .exe: The application or DLL E:\GAME\DEBUG\MSVCR100.dll is not a valid Windows image. please check …

Software Development c++ image microsoft
Member Avatar for Tumlee
0
460
Member Avatar for Mike Askew

I currently need to be able to read through an XML document, find certain nodes and either delete them (and child nodes) or edit the nodes name and possibly value. What would be the best way of going about this? XPath? XSLT? XMLReader/XMLWriter? My Code/XML contents cannot be posted though.

Software Development xml
Member Avatar for Mike Askew
0
160
Member Avatar for moone009

VB.net 2010 How I want the date: 2012-01-24 11:48:40.000 How I my program is exporting the date: 1/24/2012 11:48:40 AM currently I am using the sqlreader myreader.GetDateTime(10) which is giving me the format of 1/24/2012 11:48:40 AM

Software Development vb.net
Member Avatar for moone009
0
96
Member Avatar for behemothdave

Here is my assignment: In Chapter 5, you created a lottery game application. Create a similar game using check boxes. For this game, generate six random numbers, each between 0 and 30 inclusive. Allow the user to choose six check boxes to play the game. [B][U](Do not allow the user …

Software Development java java-swing
Member Avatar for stultuske
0
1K
Member Avatar for Alex_2011

Hi, I am trying to write a program that - Generates 3 unique random numbers between 1 and a number entered by the users in an InputBox - Displays the 3 random number results in labels - Count the number of Loops So far I wrote this code but I …

Software Development vb.net visual-basic
Member Avatar for Alex_2011
0
316
Member Avatar for Twistar

I have a class called "Vindu" and a class called "Innlegg". I am adding a object from "Innlegg" into an ArrayList called al. But when i try to get the text out from al i only get text like this: "Innlegg@5de9ac4" Is this the memory address or something? How can …

Software Development java
Member Avatar for JamesCherrill
0
774
Member Avatar for scheppy

Im making a program that has to call on a method when space is pressed,note it is the first time I'm doing a keylistener To do this i did [CODE]public void keyPressed (KeyEvent e) { int key =e.getKeyCode (); int space = 32; if (key==space) { } } [/CODE] and …

Software Development java
Member Avatar for scheppy
0
306
Member Avatar for jdm

I'm writing a dayType class program and I'm having trouble with comparing two different days to each other. Here is what I have for them: bool dayType::equalDay(const dayType& otherday) const { } and here is main: if (day.equalDay(newday)) cout << " equal days" << endl; else cout << "not equal …

Software Development c++
Member Avatar for jdm
0
98
Member Avatar for LucyButterfly22

Hey guys, I'm fairly new to C++ and I was wondering if I could get a hand with something. I'm trying to write a program that will create something called an anti-saccade task, in which the subject of the experiment would have to look away from the stimulus, for my …

Software Development c++
Member Avatar for DeanMSands3
0
109
Member Avatar for king_saqib

hi im confuse i wanted to now that how can i show the information of the graphic card to user can any one help me thanx in advance :)

Software Development visual-basic
Member Avatar for Amiet Mhaske
0
87
Member Avatar for sync101

Hi there, I am new to C++, and was wondering if someone could write an example program for me to work with. What I would like to do is take input from stdin and then display the translate output to stdout. Example: Input: [code] (color 0 0 0.1) // These …

Software Development c++
Member Avatar for jaskij
0
108
Member Avatar for SasseMan

Hi! I'm having some problems with my build files while running junit tests via ant. The build worked fine until a couple of days ago when I got a "process fork failed" error message. Further down in the stack trace i got: Caused by: java.io.IOException: Cannot run program "C:\Program Files\Java\jdk1.6.0_25\jre\bin\java.exe" …

Software Development java wordpress
Member Avatar for DavidKroukamp
0
386
Member Avatar for shade399

I am making an app similar to the CMD in windows, or Terminal in Linux. My problem is, after calling the method the user has selected, I want them to be able to select another. Instead, it closes. Main class (jDOS.class) [CODE]package jdos; /** *jDOS Cross-Platform Java Console *Luke Pattinson …

Software Development java
Member Avatar for DavidKroukamp
0
144
Member Avatar for ryanwebber

Hi i am requiring some assistance on how to create a converter using the xcode, if someone could please provide some suitable material, books, links to relevant websites etc on how this could be done it would be very much appreciated. Warm regards Ryan

Software Development c
Member Avatar for ryanwebber
0
103
Member Avatar for kje

Hi. I am new to developing services and I am trying to develop a service that can print out labels from something called Codesoft. I have added a reference to the Codesoft component/server. I have tried to make at standard Windows forms application with Exactly the same code and it …

Software Development vb.net visual-studio
Member Avatar for kje
0
143
Member Avatar for vivekanandaan

Please look into the code and help me ... [CODE] dbInsert.Parameters.Add(dbInsert.CreateParameter).ParameterName = "mr_no" dbInsert.Parameters.Item("mr_no").Value = 1 dbInsert.Parameters.Add(dbInsert.CreateParameter).ParameterName = "mr_date" dbInsert.Parameters.Item("mr_date").Value = DateTimePicker1.Value dbInsert.Parameters.Add(dbInsert.CreateParameter).ParameterName = "item_code" dbInsert.Parameters.Item("item_code").Value = txtItemcode.Text dbInsert.Parameters.Add(dbInsert.CreateParameter).ParameterName = "qty" dbInsert.Parameters.Item("qty").Value = txtQty.Text dbInsert.Parameters.Add(dbInsert.CreateParameter).ParameterName = "mr_status" dbInsert.Parameters.Item("mr_status").Value = "N" dbInsert.CommandText = "insert into mr_head values ('MBBK7490','2',DateTimePicker1.VALUE,txt_itemcode.text,txtQty.text,'N',NULL);" dbInsert.CommandType = CommandType.Text …

Software Development perl vb.net
Member Avatar for vivekanandaan
0
101
Member Avatar for stereomatching

[code] struct String { String() { std::cout<<"String::String(), this="<<this<<std::endl; } ~String() { std::cout<<"String::~String(), this="<<this<<std::endl; } String(String const &other) { std::cout<<"String::String(String const &other), this="<<this; std::cout<<", other="<<&other<<std::endl; } String& operator=(String const &other) { std::cout<<"String::operator=(String const &other), this="<<this; std::cout<<", other="<<&other<<std::endl; return *this; } }; String const operator*(String const &lhs, String const &rhs) { String …

Software Development c++
Member Avatar for stereomatching
0
178
Member Avatar for vimit

I have created a C# windows application for complete school management. every thing is fine but some when i run debug and run my project it shows 'not enough memory to copy exe file' i think the error occurs due to big size of project. but how to resolve this …

Software Development
Member Avatar for vimit
0
239
Member Avatar for Ziggy713

Hi Everyone, I'm doing a stock Control System as a school Project using An Access 2007 DB and Visual Studio 2010. I'm trying to do an update Query based on two variables entered into comboboxes, I cannot get the VB to accept the conditions for this, Can anyone Help me? …

Software Development sql vb.net visual-studio
Member Avatar for M.Waqas Aslam
0
4K
Member Avatar for 47pirates

HOw can i read from a socket and display message from socket in Textarea of Chatpanel even if there is no any focus in Chatpanel.I mean when i create two chatpanel instance then after clicking the send button in 1st chatpanel the message from socket should be displayed in Textarea …

Software Development java
Member Avatar for JamesCherrill
0
191
Member Avatar for CrewAlien

Hye.. Any know to create calculator program for formula V=IR In c++..?? Please help me.. ASAP

Software Development c++
Member Avatar for Smartflight
0
337
Member Avatar for Lensva

Code works, however i'm having problems with reverse string- i cant figure out how to index the elements. for cycle returns errors, what else could i use? The end goal would be to compare string line with string reverse. If adequate elements match its a palindrome. [code=c++] #include <iostream> #include …

Software Development c++
Member Avatar for rohitvipin
0
2K
Member Avatar for srm2010

I have a form which has certain data coming from database in to textboxes i want this form to print.while printing the textboxes are seen as a boxes,I want that shld not display as boxes but as lines i tried to change borderstyle to none but then it displays blank …

Software Development
Member Avatar for kvprajapati
0
82
Member Avatar for Hawk123

i want my order id to be autoincremented and stored in textbox and when i hit click, it gets stored in datagridview, so i can save my order in bulk from datagridview again. my code have some issue [CODE] 'i put this on formload (order page) Dim order As String …

Software Development dataset vb.net
Member Avatar for M.Waqas Aslam
0
428
Member Avatar for cl2020

I have a palindrome set up in the system, and running fine. However, when I type "never odd or even" or "A Man, A Plan, A Canal, Panama", it didn't run properly as if these words in quotation marks are considered palindromes. Where is the loophole on my code re: …

Software Development c++
Member Avatar for youjean
0
337
Member Avatar for pwolf

Is there something wrong with this code i wrote? i get the feeling i made a mistake and cant quite recall what, its quite frustrating. The function is supposed to determine the dimensions of a matrix and if it is, or is not, a valid matrix ( for example, if …

Software Development matrix-multiplication python
Member Avatar for pwolf
0
214

The End.