132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for blindkilla

My error occurs on line 191 and 156. For some reason it is saying it cant find the default constructor when I have supplied the right amount of parameters. The error it is giving me is "Cannot find default constructor to initialize base class" code: [url]http://pastebin.com/WLMvBMyy[/url] If anyone could offer …

Software Development c++
Member Avatar for blindkilla
0
108
Member Avatar for redyugi

[CODE]class Test: def __init__(self, number): self.number = number def getnumber(self): return self.number x = Test(54) y = 'number' print x.getnumber() try: print(eval('%s.%s'% (x, y))) except Exception, e: print(e)[/CODE] This isn't the code I want to fix, but it has the same error. I am trying to return a class function …

Software Development python
Member Avatar for redyugi
0
138
Member Avatar for eliza2044

Hello guys, I'm working on a new project in C++ and I need to parse some XML files, by reading some articles on the web I found that the most commonly used one is the Xerces library. However, I'm currently having troubles. Can anyone tell me how can I include …

Software Development c++ xml
Member Avatar for hasrule
0
141
Member Avatar for FudgeCoder

Turned out to be a spelling error.

Software Development c++
0
65
Member Avatar for Griff0527

I am trying to create a code that receives up to 50 integers from the keyboard, sorts the array from largest to smallest, then counts the instances of each number and displays the number inputted and the count of the number of instances. For example, if the number 11 was …

Software Development c++
Member Avatar for NathanOliver
0
1K
Member Avatar for Buolbear4444

I am trying to set up the GUI Library FLTK but cannot find a way to set it up for MSVC++ 2010 Express. I looked on Google but failed to find any tutorials on doing this. I also tried CMake but ended up with an error in CMake and an …

Software Development c++ gui
Member Avatar for jonsca
0
149
Member Avatar for makako nido

Hi everyone! I'm trying to learn assembly x86 using tasm but a doubt stoped me. I need to create a file and copy an array of characters for him. I know I need to use 3Ch to create, 40h to write and 3Eh to close him but I can't implement …

Software Development assembly
Member Avatar for Mattye134
0
171
Member Avatar for Neophyte08

hello there, anyone can help... is this possible? i have a string value of form names in my DB so when my condition passes, the variable string will take over the value , then that value will call the form(variable) as string. i got an error when i use this …

Software Development visual-basic
Member Avatar for anrico
0
2K
Member Avatar for avarionist

any particular reason why r=p(3,1); cout<<r; spits out 1? note ive tested z m and t only r gives one even though its the exact same code ? what gives ? [CODE] #include <iostream> using namespace std; int p(int x,int y){ //supposed to be a power operation if anyone knows …

Software Development c++
Member Avatar for avarionist
0
130
Member Avatar for Learning78

[QUOTE]Hi; I have developed a MCQ based learning game. A user has to play the game repeatedly to improve his learning. For each session of game, player gets score. I want to write the score in a single file for every session. e.g. I want to print user name and …

Software Development session vb.net
Member Avatar for Legjendat
0
1K
Member Avatar for SimpleIntellect

This is the error I'm getting. Exception in thread "main" java.lang.StackOverflowError at knapsack.knap.knap(knap.java:16) I would really apprciate the help. Thanks in advance. [CODE] package knapsack; import javax.swing.JOptionPane; public class knap { static int N; // Number of items static int [] size; static int [] val; static int [] maxKnown; …

Software Development java java-swing
Member Avatar for NormR1
0
162
Member Avatar for FudgeCoder

OK I am new to C++ so I decided I'd toy around with what I know and try and do some neat stuff. I'm trying to make a program that will try and make you guess the number it's thinking of. But every time I run the program it always …

Software Development c++
Member Avatar for nbaztec
0
84
Member Avatar for virendra_sharma

want this code in C# ,[code]void sort(int *a, int size) { int i,j, swapped=0; for (j=size-1; j>0; j--) { swapped=0; for (i=0; i<j; i++) { if (a[i+1] < a[i]) { swap(a[i], a[i+1]); swapped=1 } } if ( swapped == 0 ) break; } }[/code]

Software Development c#
Member Avatar for bbman
0
177
Member Avatar for TrustyTony

I made this program during forum discussion for accessing configuration relative to module directory, not main program's position (which can be accessed by sys.argv[0]'s directoryname). As the thread is closed I post my proves as code snippet.

Software Development file-system microsoft-access python
0
1K
Member Avatar for tkud

Hello all, Anytime I write a header file in VS 2008, it doesn't compile... it tells me that "unexpected end of file found"..any help on this? Thanks!!

Software Development c++
Member Avatar for tkud
0
91
Member Avatar for gomezfx

Hi, I'm taking a class on C++ and we just went over classes and objects. We have a homework assignment due and I was wondering if someone could check over my work because some of this class stuff is hard to wrap my head around. Here's the homework assignment (it's …

Software Development c++
Member Avatar for nbaztec
0
92
Member Avatar for prashanth s j

Hi, I have got the following requirement: In a file that has many lines, i need to search for a particular line that has the word DTP. The line may be like this in the file: src 172.23.1.23 dst 192.14.2.34 DTP 0 - 65000 If the line with the word …

Software Development file-system python
Member Avatar for Beat_Slayer
0
1K
Member Avatar for strwbry.coder

Good day, everyone. I am refreshing my c++ skills from a year break or so :$ I am having some troubles remembering on how to write to a file. I have the general idea down, but I am not sure what I am doing wrong. I would be much appreciative …

Software Development c++ file-system ide
Member Avatar for mrnutty
0
202
Member Avatar for eniwe

The lines of code below are borrowed from the print media. My focus is on the assembly; so by making use of these lines, iam trying to understand certain features of the assembly that are unclear to me. I was able to follow a few lines of code, and then …

Software Development assembly
Member Avatar for Mattye134
0
213
Member Avatar for YasaminKh

hi Everyone, I'm working with a Text file. Somewhere in my code a function returns the current position of the file pointer. But i want it to go to the next line or 2 lines after to do a string search there. Anybody knows how i can do that? Bests,

Software Development c++
Member Avatar for mrnutty
0
112
Member Avatar for Jbvo

I am trying to use a digraph to read in airline flight information from a file and then ask the user for the source and destination then print out the path to get there. the text file contains source, destination, miles, cost. I am having problems making it use the …

Software Development c++
Member Avatar for nbaztec
0
95
Member Avatar for jsw24ua

I could use some help getting my code to work. The user inputs the time in digits (ex: 7 35) and then the time is output in text (ex: seven thirty-five). I have populated an array but i can't get anything to print from the array. Here is what I …

Software Development c++
Member Avatar for jsw24ua
0
175
Member Avatar for j_kathiresan

Hi, I'm having a very large string which as below -------------------------------------------------------------------------------- EQD+CN+SAMPLE18767+2200+++5' NAD+CA+FIR:172:20' DGS+IMD+3.2+2346+55:CEL' FTX+AAA+++GOOD' FTX+AAA+++ONE' .... .... EQD+CN+SAMPLE18795+2200+++5' NAD+CA+TIR:172:20' DGS+IMD+3.2+2346+55:CEL' FTX+AAA+++SECOND' FTX+AAA+++IS FAIR' .... ... similarly FTX+AAA as above and it goes on -------------------------------------------------------------------------------- i tokenized each segment with delimiter as ' and able to read each segment. Now …

Software Development java
Member Avatar for nbaztec
0
168
Member Avatar for lrh9

I know that certain functions will check the script's or module's current directory for the file if no path is specified. [code=PYTHON]open('test.txt')[/code] If that script is run and test.txt is in the same directory that will open the correct file. However, if I try to import that module it doesn't …

Software Development python
Member Avatar for lrh9
0
2K
Member Avatar for jobs

I am looking for a good C++ example of a simple MySQL client program written in C++ and runs on Linux, using MySQL++ libraries that does the following (no threading): Accessing Option File Contents, ~/.my.cnf, in user home folder to read settings (load_defaults). Constructing and sending the sql statement that …

Software Development c c# c++ client-server mysql pdf web-server
Member Avatar for Stefano Mtangoo
0
466
Member Avatar for andrewll2

Hello there! I need a little help with a key detection program, i only need to watch for 1 key just -like the method to start recording with fraps-. I'm trying to use WH_KEYBOARD hook(not the WH_KEYBOARD_LL because i need the program to do stuff while "hooking"). In the dll …

Software Development c++
Member Avatar for andrewll2
0
221
Member Avatar for ryufire
Member Avatar for woooee
0
118
Member Avatar for leverin4

I have a web application that links to Microsoft Access and opens one of five databases depending on which button is clicked. I coded it on my machine in Visual Web Developer 2008 and it works exactly as expected when ran on my machine, but when I move the files …

Software Development asp.net microsoft microsoft-access vb.net
Member Avatar for Oxiegen
0
162
Member Avatar for NewOrder

my task is to use a loop,, i need the loop to go till 77777 the problem is that the numbers need to be octagon type.. 1-8 instead of 1-10. i have no idea how to make that conversion. i created 2 loops... i tried to come up with a …

Software Development c
Member Avatar for NewOrder
0
163
Member Avatar for god_like

hello world. I dont can finish my project. can you solves the problems? I use code:blocks and every funktion and header is on a own file. [code=c] #include <stdio.h> #include <time.h> #include <stdlib.h> int main(void); void field(int paiOpen[][18], int iBig); int summe(int iGroesse, int paiFeld[][18]); int inputf(int *piFeld); void randgen(int …

Software Development c
Member Avatar for god_like
0
129
Member Avatar for prashanth s j

Hi, I have got a utility "sock" which is C executable (under linux) on my machine. It acts like a server or client based on the arguments passed at the command line. I want to run it through a python script. I am using the subprocess call function to execute …

Software Development client-server python
Member Avatar for prashanth s j
0
205
Member Avatar for Mitja Bonca

The code bellow is a sql querry, made in code. I would like to know how to do such stored procedure: [CODE] string[] NameSeperated = FullName.Split(' '); string querryName = @"SELECT StudentID FROM Students WHERE Name = @name"; if (NameSeperated.Length > 1) querryName += " AND LastName = @lastName"; using …

Software Development
Member Avatar for pritesh2010
0
164
Member Avatar for Jennifer84

Hi, I am trying to call a MouseUp event. I usually do this with button events wich is my first example that works fine but I have compile error for the MouseUp event like shown below. I dont know if there perheps is a difference here that I am missing …

Software Development c++
Member Avatar for jonsca
0
82
Member Avatar for BalagurunathanS

Hi all... Someone give me the difference between typed dataset and untyped dataset.. Regards, Balagurunathan S

Software Development dataset vb.net
Member Avatar for vinod991
0
169
Member Avatar for Ali.M.Habib

We use vb.NET windows form program to pass parameters to crystal report wich execute sql commands I use .NET 2003, crystal 9, windows server 2000 and SQL server 2000 at the above enviroment the reports application work very well when migrate to SQL server 2005 , and windows 2003 the …

Software Development vb.net windows-server
Member Avatar for Ali.M.Habib
0
111
Member Avatar for kenny22

Hi developing a video application which is almost complete and just getting rid of a few bugs, one i am stuck on is an auto updating list box i use filesystemwatcher to update contents of listbox and added a bit of code with a textbox to allow me to change …

Software Development
Member Avatar for kenny22
0
131
Member Avatar for b1izzard

Hi I need a help in choosing a combo box event for placing this code. I have tried with Lostfocus,leave,mousefocuschanged,displaymemberchanged like this but nothing works and Lable26(Default I set Visible:false ) is visible even after I select an Item. [CODE] If combotype.SelectedIndex = -1 Then Label26.Visible = True Label26.ForeColor = …

Software Development vb.net
Member Avatar for b1izzard
0
176
Member Avatar for diegostix

Hello, I am downloading live data from bloomberg and am attempting to write a macro that loops through several different stock symbols and saves the corresponding data for each symbol to its own invididual workbook. My problem is that I need to add a delay to my code in order …

Software Development visual-basic
Member Avatar for diegostix
0
147
Member Avatar for Roses89

Could someone please make me understand a line in the code? Ive commented it [code] class Circle { protected: double radius; public: Circle(double r = 1.0) : radius(r) {} //this part is what i dont understand double calVal(); }; [/code]

Software Development c++
Member Avatar for Roses89
0
108
Member Avatar for bryan69

hi, im trying to compare the md5 key of a file selected with the md5 key of known files stored in a text file. i can get the md5 key of the file selected and all & also read the text file line by line however, i cant seem to …

Software Development file-system java
Member Avatar for NormR1
0
1K
Member Avatar for ubi_ct83

Hi guys... Thanks for viewing my thread and hopefully u could reply a thing. i have this: input: -i 2,3,4,5 [CODE] public class Main { public static void main (String [] args) { static int value[]; static no_of_parameter; for (int i=0;i<args.length;i++) { if (args[i].equals ("-i")) { String value_str = new …

Software Development java
Member Avatar for ubi_ct83
0
105
Member Avatar for flaviusilaghi

Hy. I am trying to encode a ASN1 structure with DER , but i get a parse error. My in text is : 304913214D617374657220646520736563757269746174656120696E666F726D6174696569301E170D3039313030313030303030305A170D3130303331353030303030305A020103010101 and the code is this: [CODE]include <openssl/asn1.h> #include <stdio.h> #include<conio.h> #include <string.h> #include <iostream> #include <fstream> #pragma comment( lib, "libeay32.lib" ) using namespace std; int main() …

Software Development c++
Member Avatar for flaviusilaghi
0
277
Member Avatar for zilonox

I have an application that uses an *.accdb file as the back-end database. Connecting to and retrieving data from the access file is not an issue and is working quite well. However, as a precaution, I have the application first check to make sure the database file exists in the …

Software Development microsoft-access sql vb.net
Member Avatar for zilonox
0
295
Member Avatar for Finconizer

I need to make a programme that copies itself secretly to start up folder with visual basic 6. Can any one help me?

Software Development visual-basic
Member Avatar for nbaztec
0
148
Member Avatar for jtodd

Hello all! I am new to VB and I am working on some code that is a painter. I have posted the xaml and vb portions bellow. I am getting error codes I do not understand. in line 84, 85, and 86 of the vb code it is not recognizing …

Software Development vb.net
Member Avatar for jtodd
0
110
Member Avatar for cmsc

aside from itoa function, is there any other way to convert a string to an integer? itoa function won't work in my compiler.

Software Development c
Member Avatar for cmsc
0
81
Member Avatar for Kami3

Hello, How can 2 connected clients with one server can communicate each other in c#.. ????

Software Development c# multithreading socket-programming
Member Avatar for chan_lemo
0
268
Member Avatar for cmsc

i have this structure : [CODE] typedef struct nodetag{ char *employeeNumber; name mName; birthday bday; char *address; char *rank; int salary; hireDate *hdate; }*node; typedef struct nodetag1{ char *month; char *date; char *year; }birthday; [/CODE] but I don't know how to access the month in bday. i tried using node1->bday->month …

Software Development c
Member Avatar for cmsc
0
89
Member Avatar for iskalabatoto

hello everyone,i'm really new at java...but they said that an I.T student like me should learn and apply Java very well.I always try my best( as every1 do) to learn and apply Java codes or whatever...but this time,i'm very confused.this is related to incrementing and decrementing values. our Instructor ordered …

Software Development java
Member Avatar for peter_budo
0
215
Member Avatar for Leppie

Morning all, I've got a grid of rooms that I need to navigate round using directions in main that's working fine, in main I've put a random starting location that also works. Ive also got a program with two functions in it, random starting location and random direction facing to …

Software Development c++
Member Avatar for daviddoria
0
149

The End.