132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for wolverinert68

This is my first attempt at coding. I am completely frustrated and need any help you can give me. I am supposed to take the values in the main method and in the next 2 (these are the ones i am trying to write from scratch) make the values in …

Software Development java
Member Avatar for mattwaab
0
120
Member Avatar for gsingh2011

What are some reasons to choose C over C++?

Software Development c c# c++
Member Avatar for Salem
0
104
Member Avatar for Blondeamon

Hello guys i am solving last years exams for practice when i stepped over this quiz. I have been fighting it for 2 hours but cant solve it. I must fill in the blanks so the program makes sense and i know its an interface , a class and a …

Software Development java
Member Avatar for darkagn
0
125
Member Avatar for agfras

I want it to skip any lines read that throw an exception so I store the lines with errors in an ArrayList. But when it goes through when it gets an error, it will not skip the line and give same error and keep repeating. [code=java]/** * */ /** * …

Software Development java
Member Avatar for agfras
0
81
Member Avatar for shers

Hi, I have done some code to display a form with a treeview. The initial folder in the treeview is given in the Project Properties Settings. I did this with the help of some brilliants here in this site like LizR. [URL="http://www.daniweb.com/forums/showthread.php?t=159402&highlight=file+path+in+xml"]http://www.daniweb.com/forums/showthread.php?t=159402&highlight=file+path+in+xml[/URL] My intention is to allow the client or …

Software Development xml
Member Avatar for shers
0
211
Member Avatar for mtucker6784

Hi! First, I want to say that this is not any type of school assignment. I'm in the IT field and looking to work on learning C++. I've been following the book from: [url]http://msdn.microsoft.com/en-us/beginner/cc305129.aspx[/url] and I'm now trying things on my own. The program which the code below compiles will …

Software Development c++
Member Avatar for Rashakil Fol
0
138
Member Avatar for mmxbass

Attempting to scroll a simple background using pygame. This is proving to be near-impossible. It seems that once a surface is blitted anywhere, it WILL NOT blit into a new location. My two problem functions: [CODE] def loadMap(self): vid = _video._Video() self._bg = self._map.get_background().get_pyImage() self._fg = self._map.get_foreground().get_pyImage() vid.paint(self._bg,0,0) vid.paint(self._fg,0,0) def …

Software Development os-x python
Member Avatar for mmxbass
0
112
Member Avatar for serkan sendur

i wonder if i create an object from a class using new operator, and if i dont delete that object when i am finished using it, does it still remain in the memory after the program reaches the and of the main function? Thanks

Software Development c++
Member Avatar for Free_Classified
0
470
Member Avatar for maddy05

this is a project made by me but its issue function is not working well instead of modifying and changing the value of issue to 2 it is adding another book with issue 2 in the file can some one correct it // **library management** // // **library members can …

Software Development c++ data-structure ios
Member Avatar for Murtan
0
246
Member Avatar for death_oclock

Visual C (2008) is acting as if I never included a header file (wave.h) that I am using, but the #include statement is definitely there. Here's my main (BPM analyze.c): [CODE=C]#include "stdafx.h" #include "common.h" #include "sound.h" #include "wave.h" int main(int argc, char* argv[]) { SAMPLE samples[2]; unsigned int i, j; …

Software Development c file-system
Member Avatar for Aia
0
135
Member Avatar for tondeuse34

Hey guys, [CODE]import sgmllib class MyParser(sgmllib.SGMLParser): def parse(self, s): "Parse the given string 's'." self.feed(s) self.close() def __init__(self, verbose=0): sgmllib.SGMLParser.__init__(self, verbose) self.hyperlinks = [] def start_a(self, attributes): for name, value in attributes: if name == "href": self.hyperlinks.append(value) self.newhyperlinks.append(name) def get_hyperlinks(self): return self.hyperlinks import urllib, sgmllib f = urllib.urlopen("http://www.python.org") s = …

Software Development python
Member Avatar for scru
0
153
Member Avatar for stephen lowry

hi guys i have written a small program to receive data from a cash reg printer everything works fine but(yes theres always a but) the data from the till output is in compleat string ie bread 0.67 what i want to do is extract the last text on right and …

Software Development printer visual-basic
Member Avatar for Comatose
0
94
Member Avatar for zoner7

I'm currently taking a computer security class. The thing is, I haven't even taken an intro computer programming course. I taught myself a good deal of C++ back this summer, but I hardly know as much as the other students in the class. we were asked to manipulate the following …

Software Development c
Member Avatar for zoner7
0
803
Member Avatar for daviddoria

In integration.h I have this [code] class FunctionClass { public: virtual double f(const double x) = 0; }; [/code] Then in probability.h, I have this [code] #include "integration.h" class Mass1 : public FunctionClass { public: double Clutter; Mass1(double c) : Clutter(c) {} double f(const double x) { return Clutter * …

Software Development c++
Member Avatar for _adam_
0
1K
Member Avatar for AdRock

I am still trying to come up with a simple solution where i add lines of words to a 2d array so i can pick an array element and display what is in that array I can read the lines of text and output which words are on which line …

Software Development c++
Member Avatar for AdRock
0
180
Member Avatar for Ghostenshell

Can someone explain how to add a file to a dictionary. The file is simple. Maybe a word or a number on each line. Here is the code I have. Didn't know if i should use this post or the List and Dictionaries post so kind of posted twice... sorry …

Software Development python
Member Avatar for woooee
0
169
Member Avatar for Ronen444

Hi guys... I've downloadws today the IronPython. One thing i've noticed that if you type, for example, 5+6 it calculates it..! So, i tried to do that with my App too, without success... Note: I've tried "if" sentences, but they are pretty useless... [B]Help![/B]

Software Development c++
Member Avatar for _adam_
0
84
Member Avatar for deerslayer

I have written and application to search through a text file and find the following data and pull out the 5th varible and place in a text box. P_SPEED 0 10 1100 0 .01 23 0 The next issue I am having to input, into a text box, a integer …

Software Development vb.net
Member Avatar for NightCrawler03X
0
326
Member Avatar for Passiongamer25

I need help with my program. The program reads water temperatures and when they were recorded from an input file called " biodata2.txt." Then the output is displayed in a file called "results.txt" So the input file looks like this: 2 // number of readings taken 200707211245 // date recorded …

Software Development c++
Member Avatar for Passiongamer25
0
94
Member Avatar for mjavier2k

Hi All, I have a question regarding on how to manage a child form with a datagrid inherited from a parent form. In most cases, changing the control modifier from private to protected will make the control editable in the child form, but with a datagrid, these seems not to …

Software Development
Member Avatar for Ramy Mahrous
0
124
Member Avatar for naomiauk

Hi members... I have made a simple chat bot in Visual Studio with C#.. Its very basic and basically talks to you, saying a few lines.. I need help urgently sexing this chat bot up, making it say more stuff, etc,... I'm wondering if anyone out their can help me …

Software Development c# visual-basic visual-studio
Member Avatar for cookpau01
0
274
Member Avatar for clutchkiller

I want my program to run on start up through editing the registry, how would i do that? Certain API's? or a specific way through c++ to do it? Or is that even the right method? Basically i would prefer to not use the startup folder in XP.

Software Development api c++
Member Avatar for cikara21
0
94
Member Avatar for hsoni007

When I run the following program , after loop it outpur "Enter Valid Number". How can I solve this problem? --------------------------------------------------------------------------------- #include <stdio.h> #include <conio.h> #include <string.h> void main() { int var1,var2,sum; char Choise; while (Choise!='q'){ printf("\n(1)A-Add two integers.\n\n(2)C-compart two integers for the larger.\n\n(3)F-Test an integers for odd or even.\n\n(4)Q-Quit.\n\n"); …

Software Development c
Member Avatar for Salem
0
105
Member Avatar for serkan sendur

if the object is created on the stack, the destructor is called automatically when the object is out of its scope. if the object is created on the heap using new operator, the destructor is fired explicity by using delete keyword. i created an example to demonstrate both cases: [CODE]#include …

Software Development c++
0
46
Member Avatar for mohinig

i m a new user of c language.whenever i try to run my program a message error is displayed as"not able to open the file named C0S.OBJ.what is the meaning of that?and what should i do?please anybody help me.

Software Development c
Member Avatar for Salem
0
96
Member Avatar for Mahsa_C++

Hello everyone, I'm into writting a project ,that's all about dealing with directories and more specificly to code something that finally well work as"windows command prompt" in standard console.... i Got alot help from the experts here & got alot progressed, But a bug has occured in between: yestreday i …

Software Development c++
Member Avatar for Salem
0
180
Member Avatar for Logi.

Hi there, I am trying to write a queue ADT using a linked list in C and have hit a snag initialising my queue... [code=c]typedef struct qNode{ int element; struct qNode *next; } qNode; typedef struct Queue{ struct qNode *front; int len; } Queue; Queue create_queue() { Queue q = …

Software Development c linked-list queue
Member Avatar for Logi.
0
186
Member Avatar for Gigs_

HI, I have exe file writen in c++ or c and wanna decompile it to source code. Is that possible? If it is, is there any decompilet that can do that? thanks!

Software Development c c# c++
Member Avatar for Salem
0
9K
Member Avatar for BobLewiston

Please forgive what is surely a stupid question: How do I use .Net Reflector to find out which namespace a class, method or property is in, or to see parameter lists? There's no way to enter a character string to tell it what you're looking for.

Software Development asp.net
Member Avatar for Ramy Mahrous
0
95
Member Avatar for omrsafetyo

I am trying to keep formatting between cell references. For instance, I have a date in once cell (J9) and would like to add this date to a text field so e.g.: ="This will take effect on " & J9 & "." However, when I do this, I end up …

Software Development visual-basic
Member Avatar for omrsafetyo
0
149
Member Avatar for Lovieron

THIS PROGRAM IS not yet complete the only problem is when the program calls for the find it process..it does not work perfectly i don't know why..but when i separate it its working..please help me with this.. this is how it looks separated from the optional program: #include<stdio.h> #include<conio.h> int …

Software Development c
Member Avatar for Aia
0
202
Member Avatar for |\|asrin

Please somebody help me! I`m a beginner and want to learn web designing. I want to khow taht is there any diffrences between Java & JavaScript if yes which one of them is better for me I have learned just C programming language.

Software Development java javascript
Member Avatar for |\|asrin
0
156
Member Avatar for omrsafetyo

Unfortunately, I don't think this question is solved with a simple vlookup, or etc. I have a spreadsheet that has several tables of data with the following format on one sheet: gxxxx gxxxx gxxxx zzzzz gxxxx gxxxx gxxxx zzzzz The "g"s above would indicate an item for lookup. The "z"s …

Software Development visual-basic
Member Avatar for omrsafetyo
0
165
Member Avatar for serkan sendur

when i run my application i got "Memory fault(coredump)" run-time error, what might be the possible cause for this? Thanks

Software Development c++
Member Avatar for serkan sendur
0
104
Member Avatar for localp

i want to know how to send sms from a java program, so far i am aware that you will need a sms gateway, but i dont know from at which point to start coding .... i am an absolute beginner, and i please help me with step by step …

Software Development java
Member Avatar for verruckt24
0
1K
Member Avatar for Nyaato

Hello, I'm currently programming a C++ Snake game and I'm stuck at a particular part of the program. This particular part had me wondering for sometime now, and I've got absolutely no idea how to work it out. I want to implement a collision detection between two snakes that would …

Software Development c++
Member Avatar for Murtan
0
154
Member Avatar for kin89

can anyone plz help me. i m not able to compile source code.the problem is javac not recognised as internel or externel command.

Software Development java
Member Avatar for stephen84s
0
615
Member Avatar for Clawsy

Hi, I always tried and SEARCHED for this but low chances to find out the answer, an example. I try to DETECT whether 2 pins of COM port are connected or not. If you have at least very low electronics knowledge you'll understand this. It's like having a relay or …

Software Development
Member Avatar for Clawsy
0
78
Member Avatar for wotthe2000

Hi I'm getting the error TypeError: argument of type 'int' is not iterable when i run my program and don't know where I'm going wrong. My code is: [ICODE] class loan: global loanlist loanlist = [] def loanbook(self, name, ISBN, author, title): self.name = name self.ISBN = ISBN self.author = …

Software Development python
Member Avatar for Ene Uran
0
4K
Member Avatar for meo_beo

Hi, I wrote a simple Java program that allows changing the background color of itself by clicking on the radio button, like this: [code] import java.awt.*; import java.awt.event.*; class Colors extends Frame implements ItemListener, ActionListener{ Label lblTxt = new Label("Choose a color:"); Label lblInform = new Label(); CheckboxGroup cbg = …

Software Development java
Member Avatar for quuba
0
155
Member Avatar for riya_s505

javac i snot recognised as internal or external command

Software Development java
Member Avatar for stephen84s
0
75
Member Avatar for guest11

hi all, I want to use combo box in my application and i want to give user only selection option for combo box when they are entry data so i make combo boxs style property to drop down list. But when he edit the data then i access that record …

Software Development visual-basic
Member Avatar for selvaganapathy
0
246
Member Avatar for mortgage_master

Hello All, I am a first time poster here, and had a general question. Briefly, I have developed a fairly simple app in VB5 (a couple of controls and some code to run them) and would like to be able to use it on a PDA, rather than having to …

Software Development visual-basic
Member Avatar for Comatose
0
95
Member Avatar for mohan_198505

hi ,i want to know that if i m taking the input from user in C through scanf what should be the code if the requirments are following. 1.should accept string minimum of 3 and maximum of 15 characters. 2.accept alphabets ,blank space hyphen(-)and & 3. first latter should be …

Software Development c
Member Avatar for Aia
0
116
Member Avatar for Nicklorion

Hi, Could some one point me in the right direction. I'm trying to get a value thats in a file between tags. for instance: I'm reading an array out of a file per line example: [code=C++] myArray[0] = "<FILE_NAME>Testfile.dat</FILE_NAME>"; [/code] What i'm trying to do is to read every field …

Software Development c++
Member Avatar for Nicklorion
0
148
Member Avatar for tomtetlaw
Member Avatar for Comatose
0
107
Member Avatar for adam291086

I am trying to set a cookie but when i check my browser cookies nothing is set. What am doing wrong [CODE] #!/usr/bin/python # e begoli, python connector for mysql # import MySQL module import MySQLdb import cgi import Cookie import time cookie = Cookie.SimpleCookie() cookie["ID"] = "" print "Content-type: …

Software Development python
Member Avatar for adam291086
0
221
Member Avatar for Black Magic

Hello, I have came from C++ and have decided to learn C# and XNA 2.0, I am wanting a good book for C-Sharp for complete beginners, but [B]not[/B] for dummies. I have came accross: [url]http://www.amazon.co.uk/Microsoft-Visual-2008-Step-Developer/dp/0735624305/ref=sr_1_3?ie=UTF8&s=books&qid=1232880050&sr=8-3[/url] Btw, because I have programmed in C++ I get the basic consepts Reply please?

Software Development visual-basic
Member Avatar for hieuuk
0
138
Member Avatar for clutchkiller

Im not sure if this is how the process would work, but if i am to say create a header file named myheader and in that header wrote [code=c++] #define functionName { code... } [/code] and then wrote a .cpp file and in the source code I would #include <myheader> …

Software Development c++
Member Avatar for Rashakil Fol
0
162
Member Avatar for gamerprog

I'm programming this RPG, and I can't get past the first battle. I can't figure out how to get the computer to break the loop when then enemy's health (enhp) is less than 1. I tried using an if statement, but then it didn't loop at all. Could you guys …

Software Development c++
Member Avatar for Murtan
0
2K

The End.