132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for sosongetsu

Its been a little while since i have used Dani Web but i need some help. If the code looks a little off then you have to forgive me. I was getting help from a friend who i found knew less about it then me. Here is the criteria for …

Software Development c++
Member Avatar for Chilton
0
171
Member Avatar for sdr001

Hello, I am getting a segmentation fault in my program and do not know why. It occurs when the program reaches: [CODE]for(i=0; i < values.size();i++) items[i].value += values[i];[/CODE] Values have integers inside of it (7,77,2,3). Items is a vector<knapSackStuff> items; and my knapSackStuff look like: [CODE] struct knapSackStuff { int …

Software Development c++
Member Avatar for template<>
0
90
Member Avatar for jackmaverick1

Hi, I'm trying to make my own library so that I know the names of the functions and can use them more simply. Also, I normally don't get the File I/O right so if I write the Library once, then I can use it over and over again (without having …

Software Development c++ ubuntu
Member Avatar for jackmaverick1
0
180
Member Avatar for Tamlyn

Hey everyone :) Hope you can help Here is what I've done with the instructions given: I need to know the average price difference between the cash and credit prices. But i'm pretty sure that only comes in at the end. Here is what my this function is supposed to …

Software Development c++ ios
Member Avatar for Tamlyn
0
121
Member Avatar for kiske

Hello, I'm triyng to connect a camera to a VMR9 filter and I do the following: Create the filter graph Create the VMR9 filter Add the VMR9 Filter to the graph Create the video source filter and add to the graph Create an instance of capturegraphbuilder2 and reference it with …

Software Development c++ open-source video
Member Avatar for rubberman
0
538
Member Avatar for BeansForChowder

I need help building a program that displays full-time and part-time employees names and salaries when the user uses a radio button to choose either full-time or part-time employees. It's a program from the Getting Started with Visual Basic 2010 but I can't determine which part of the chapter specifies …

Member Avatar for BeansForChowder
0
164
Member Avatar for Mike Bishop

I am writing a database and need to post a value in a lable to a sql field. the sql datatype is set to money. when posting i have CMD.Parameters.addwithValue("@Claim", LBCLAIM.text) when posting i gett an error cannot convert a char vaule to money. the char vaule has incorrect syntax. …

Software Development vb.net
Member Avatar for Unhnd_Exception
0
102
Member Avatar for benjybob

Hello there, im writing code for my asteroids game and am nearly finished but ive come across a problem when trying to load the file the save game is written like this and works perfectly fine, it saves the things i want to a text file: [CODE]void WrapGame::save() { cout<<"enter …

Software Development c++ ios
Member Avatar for WaltP
0
226
Member Avatar for Khoanyneosr

So i read the "Flush Cin" post at the top of the thread and it just flew right over my head. I have a simple if statement that uses int values to determine where to send the user. If the user enters a char value it shoots itself into an …

Software Development c++
Member Avatar for Khoanyneosr
0
158
Member Avatar for andyhunter

trying to create a matcher for finding if title is not correct i.e. has to be mr, mrs, miss etc..but this allows mrmrmr etc when it should not. tried different setups to keep failing i.e. [[]] or (). [ICODE] public void valTitle(){ //validate title while (this.title.matches("^[\\s]+$") ||this.title.matches("") ||this.title.matches("[^m]&&[^r]*") ){ System.out.println("Title …

Software Development java regex
Member Avatar for andyhunter
0
87
Member Avatar for CGober

Can anyone tell me whats wrong with this code? It throws this exception: A call to PInvoke function 'Web!Web.SQLiteBase::sqlite3_open' has unbalanced the stack. This is likely because the managed PInvoke signature does not match the unmanaged target signature. Check that the calling convention and parameters of the PInvoke signature match …

Software Development sql
Member Avatar for gusano79
0
274
Member Avatar for Nevillelajru

hi i am looking for some code and step by step instructions for the c sharp encryption and decryption process. if anyone is willing to send me some instructions i would be grateful. thanks Neville

Software Development c c# c++
Member Avatar for Nevillelajru
0
331
Member Avatar for ThePythonNoob

It will carry on if the input is X but not O!! block of code concerning this matter [code] print("\nWould you like be X's or O's ? <O/X>:") human=["",""] while not (("X") or ("O")) in human[0]: human[0]=input("") [/code] whole code: [code] print("Welcome to the greatest intelletual challenge of all time: …

Software Development python
Member Avatar for ThePythonNoob
0
102
Member Avatar for UltimateKnight

Hi to all. I am a beginner at C++ programming. I wanted to ask for some tutorials or videos from which I can learn.. I have done some small steps in programming before and I really love it. I am very interested in this area and I would be thankful …

Software Development c++
Member Avatar for Tamlyn
0
302
Member Avatar for ctrl-alt-del

Good evening all, First of all, I've been curious about supposedly wrong things in the past. So let me clarify this first: I am in no way trying to hack some program, have malicious intent, or anything of that nature!! That being out of the way, the scenario is as …

Software Development
Member Avatar for pseudorandom21
0
163
Member Avatar for terexberd

Could you tell me why programmers use this.variable ex. (this.miles) in constructor, and what is the advantage of using it?

Software Development java
Member Avatar for jon.kiparsky
0
141
Member Avatar for newbie_in_c

Hello all, I've a small question. I wanna use a function void myfunction(int **array1, int **array2) where array1 and array2 shoud be [4][4]. I've added 2 arrays int myarray1[4][4], myarray2[4][4]; and called my function like this: myfunction(&myarray1[0], &myarray2[0]); I've got the following warning message : warning: passing argument 1 of …

Software Development c
Member Avatar for newbie_in_c
0
139
Member Avatar for orwell84

I am relatively new to perl, and I'm having a problem with loops. I'm trying to get a program for a simple number guessing game to repeat itself until you get the right number. Here is the code: [code] #!/usr/bin/perl -w $thinkingof = int(rand 10); print "Pick a number 0 …

Software Development perl
Member Avatar for mdawg252
0
839
Member Avatar for musikluver4

I have a JFrame with 2 JPanels...my problem When I attach one of the JPanels to the JScrollPane object, it encompasses the whole JFrame, instead of just the JPanel I said to attach to. The scrollBar goes all the way up to the top of the JPanel I don't want …

Software Development java java-swing
Member Avatar for musikluver4
0
752
Member Avatar for initialise

Hi there, I have searched for an answer to this problem but cannot find one even though there is probably a very simple solution. I would like to pass an int to a function in pthread_create. I can do that easily. The troublesome part is when I have to cast …

Software Development c++
Member Avatar for initialise
0
7K
Member Avatar for Philiplee

If I have .txt file include 10 digits such as 0//start bit 1 1 0 0 0 0 1 0//parity bit 1//end bit If I put those into an array, how to check the first bit, the last bit and parity bit? How to convert the mid 7 digits in …

Software Development c
Member Avatar for WaltP
0
95
Member Avatar for garu525

Hello, I'm making a simple C calculator using only getchar and putchar functions, my program works only if the arithmetic is entered correctly but if it's not, I can't make the proper error checking on it if the arithmetic is enteres improperly. EXAMPLE: 4 + 7 = 11 =====> Works! …

Software Development c
Member Avatar for WaltP
0
718
Member Avatar for flyboy567

Hi, Ive written a program which is capable of sorting an array of ints e.g. array[6] = {4,6,-1,0,6,4} however i want to expand this so it will be able to order chars as well. With my code as it is, it will order chars correctly i.e. sort the numbers out …

Software Development algorithm c++
Member Avatar for mike_2000_17
0
158
Member Avatar for rockerjhr

quicksort.c [CODE]#include "quicksort.h" int compare( byte *a , byte *b ) ; void memswap( byte *s, byte *t, int count ) { byte tmp ; while (count-- > 0 ){ tmp = *s ; *s++ = *t ; *t++ = tmp ; } } byte *select_pivot(byte data[], int n , …

Software Development c
Member Avatar for gerard4143
0
248
Member Avatar for markmcwiggins

I am working on a psycopg2 application for a customer. I first used: SELECT * from table which worked fine with 'cursor.fetchone()'. But due to some technical details between the customer's database and the database on my company's side where I could not depend on the order of the fields, …

Software Development postgresql python
Member Avatar for markmcwiggins
0
164
Member Avatar for lanzslumber

Here's the C++ code i did for myself: [CODE] #include <iostream> #include <fstream> #include <ctime> #include <cstdlib> #include <string> #include <cctype> void terminate() { const unsigned short SEC = 5; // constant for 5 times std::cout << "\nProgram will close in,\n"; // print for (int c=SEC; c>=0; c--) { if …

Software Development c++
Member Avatar for rubberman
0
258
Member Avatar for xanawa

Hi, I am doing a project on picture editing and i have a null pointer exception in blur and i can't find out what's wrongs.. AIn this project i only can load .bmp images below is the code. Help me pls. Code: [B]Effect Class[/B] [CODE]import java.awt.image.BufferedImage; public abstract class Effect …

Software Development image java
Member Avatar for Ezzaral
0
544
Member Avatar for Coffee_Table

I recently took upon myself the challenge of finding the actual subsequence in an array that yields the largest sum rather than just the largest sum. Example - if you enter {3,2,-5,4} in an array, my program returns {3,2}, since that yields the largest sum, 5. I thought myself rather …

Software Development c++
Member Avatar for Coffee_Table
0
247
Member Avatar for bhallarahul

[CODE] import java.sql.Statement; import java.sql.Connection; import java.sql.SQLException; import java.sql.DriverManager; import java.sql.ResultSet; class db { public static void main(String arg[]) { Statement statementObj=null; Connection connectionObj=null; try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); connectionObj=DriverManager.getConnection("jdbc:odbc:sensorData","",""); statementObj=connectionObj.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY); System.out.println("do not worry ho ga yr ho ga"); statementObj.executeUpdate("INSERT INTO hardwareData (Time, Date, humidity, Temp, DiesalLevel) VALUES('1','12','3','s','a')"); connectionObj.close(); } catch(ClassNotFoundException …

Software Development java
Member Avatar for Ezzaral
0
312
Member Avatar for tahamasoom

Hi there i want to know about grading system in visual stuio i am new in software engr just tell me how we make grading system in windows application in visual studio like when we put 5 in grade section the basic sallary will be 15000 and home allownce will …

Software Development vb.net visual-basic visual-studio
Member Avatar for codeorder
0
114
Member Avatar for Alpdog14

I have a Coin class that compares weight and value and I need help developing a hashcode and Junit tests to test them, here is my class: [CODE]public class Coin implements Comparable<Coin>{ public static final int CENT=1, NICKEL=5, DIME=10, QUARTER=25; private int value; private double weight; public double getWeight(){ return …

Software Development java
Member Avatar for JamesCherrill
0
183
Member Avatar for anders10

Hello! I have a minheap class that is implemented as a priorityqueue and it works fine as far as to the iterator that I have to implement as a innerclass. But I can't get it to work properly. Here is part of the code: public class MinHeap<E> extends AbstractQueue<E> implements …

Software Development java queue
Member Avatar for anders10
0
142
Member Avatar for v_janssens

Hi, I'm writing a program for structural engineers that consists of a number of inherited classes. Specifically, I have a main() file which includes a class [I]element[/I] which includes a class [I]node[/I] which includes a class [I]matrix[/I]. [I]element[/I] includes variables of type [I]matrix[/I] and [I]node[/I], and [I]node[/I] includes variables of …

Software Development c++ oop
Member Avatar for v_janssens
0
196
Member Avatar for jackmaverick1

I've got a simple question but I can't seem to find the answer in any of my searchs. I know this is very basic and probably will require 1-3 sentences but, when I use a pointer to pass it by reference to a function, will it use the actual location …

Software Development c++
Member Avatar for gerard4143
0
135
Member Avatar for fyezool

cant compile the code...please help me![code]import java.io.*; class football { public static void main(String args[])throws IOException { BufferedReader stdin = newBufferedReader(newInputStreamReader(System.in)) String str; int num_team,num_win,num_draw,total_point,point; for(num_team=1;num_team;num_team++) System.out.print("Enter team compete"); str=stdin.readLine(); num_team=Integer.parseInt(str); System.out.print("Team 1"); System.out.print("Enter total win"); str=stdin.readLine(); num_win=Integer.parseInt(str); System.out.print("Enter total draw"); str=stdin.readLine(); num_draw=Integer.parseInt(str); total_point=(num_win*3)+(num_draw); System.out.print("Total point for team 1 is" …

Software Development java
Member Avatar for Sadun89
0
133
Member Avatar for @Kui

Hi. I'v created a program with a Ms SQL database, registration form and login form. Everything was working well so i detached the database and added it to my program as an existing item before so as to deploy the program. But now i recieve an error when i try …

Software Development vb.net
Member Avatar for @Kui
0
132
Member Avatar for swathys

hi, If found the [COLOR="Green"]DbaseLicenseKey = LicenseKey [/COLOR] match i want to write the value to registry but the problem is....i have no idea how to code at this part [COLOR="Green"]AxActiveLockBP.LicenseKey[/COLOR] as it gives the error message.... error message = 'LicenseKey' is not a member of 'Axactivelock1884.AxActiveLock'. Please help!!! [CODE] …

Software Development vb.net
Member Avatar for Nikon70
0
166
Member Avatar for ninjaimp

Hi I have a script that queries wmi to get logged on users. The script works fine if i run it on the server i am query but if i choose a remote server it returns nothing. It gets the user 'logonid' but does not return anything when running the …

Software Development vb.net
0
109
Member Avatar for rannamaa

Hello, i have a problem. [CODE] int index2 = 1; foreach(Circle circle in arrays) { if(index2 > 1 && index2 < 6) { Circle c1 = (Circle) arrays[index2 - 1]; Circle c2 = (Circle) arrays[index2 - 2]; Console.WriteLine("Radien pÃ¥ cirkel {0} är {1} och arean är {2}", index2, circle.getRadius(), circle.getArea()); …

Software Development
Member Avatar for rannamaa
0
206
Member Avatar for getmepaid

I have a device that generates on air graphics. This device needs to get glyph code in each font not the glyph dimensions to be drawn correctly. For example, if I need the Arabic character "Ø£" Alef I have to send it in an integer value according to the font …

Software Development
Member Avatar for getmepaid
0
192
Member Avatar for Roo0ond

Hello .. You have made a way to resolve code half-life, but missing something I want to help it .. Fuvction which solving the equation of the third degree in how to enter transactions have, I mean how can I insert s q v g Please help [code]#include <iostream> #include …

Software Development c++
Member Avatar for Roo0ond
0
58
Member Avatar for Tazsweet19

How do I take to set up for network connect with Socket. I make the JList to press Go to run the post processing (like files). I feel about it and it is not work for me I try to figure out. Thanks. [code] public final static int port = …

Software Development java
Member Avatar for Tazsweet19
0
117
Member Avatar for bunnyali2011

Hello who knows how to create a search box in Visual Basic? I want the search box based on streamreader. In proper terms, when I will input a text, it has to read on a text file in drice C. I know the streamreader code but don't know the code …

Software Development visual-basic
Member Avatar for Nick Evan
0
776
Member Avatar for mmartino

Hello, I am trying to write a templated linked list, and I am having some difficulties with the add() function. It seems like different behavior occurs depending on how I add to my list, but my two test cases don't seem that different to me. I'll post the list.h, and …

Software Development c++ linked-list
Member Avatar for Fbody
0
178
Member Avatar for ashrafu1

Hello every one am in real trouble now. i am in my 1st and last sem of my programing course. i need to write a program that can add delete display and update record. i got this program so far but the real prototype works fine for this program and …

Software Development c++ ios
Member Avatar for ashrafu1
0
184
Member Avatar for pythonbegin

Hi all I have a program that is written in java and have three different executables program.sh, program.bat, program.jar. i can starts the gui by using program.jar and then in gui i can enter parameters. but as i want to run it over several parameters and get the outputs. i …

Software Development gui java unix
Member Avatar for JamesCherrill
0
215
Member Avatar for Dean_Grobler

Hi there, I understand that this question might be better off in "hardwareAndSoftware/LinuxAndUnix/LinuxApplicationsAndSoftware". But the truth is, that it takes for ever for someone to respond to posts there, because I don't think anybody visits that forum alot. Anyways, back to the point... I'm trying to install the Java 1.6 …

Software Development java oracle ubuntu
Member Avatar for mKorbel
0
261
Member Avatar for Climber Ty

So I am working on this XML project to create a small list of favorite DVDs, etc. Maybe I missed it (or that I may have not gotten this far in my reading) but in my DTD I want to restrict movie_review to only allow (G | PG | PG-13 …

Software Development xml
Member Avatar for Climber Ty
0
289
Member Avatar for NvIs

I'm having a hard time understanding how to sort loops and the different types. I've read several articles, reviewed several programs, and still cannot grasp how to sort arrays let alone do anything else with them, I.E. add rows/columns, find the mode, ect... I know the different types of sorts, …

Software Development c++
Member Avatar for thekashyap
0
173
Member Avatar for MasterGberry

Ok, somewhat easy task, but i dont know how to do it. Basically i need to take a currenty written dll file ( which i dont hae the source code for) and i need to copy all of the original content and i need to import some functions from another …

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

The End.