132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for aimboter89

Dim myArray() As Integer = {a, b, c, d, f} Dim largest As Integer = Integer.MinValue Dim smallest As Integer = Integer.MaxValue For Each element As Integer In myArray largest = Math.Max(largest, element) smallest = Math.Min(smallest, element) 'myArray(largest).Remove() '(this part have error, as it stated that is not part of …

Software Development vb.net
Member Avatar for sandeepparekh9
0
329
Member Avatar for thanatos1

Hey guys, i've been trying to clone pokemon in java but i've come across a very weird problem. [CODE]java.lang.VerifyError: (class: attribute/base/health/AbstractBaseHealth, method: <init> signature: ()V) Constructor must call super() or this() at actor.pokemon.AbstractPokemon.<init>(AbstractPokemon.java:44) at actor.pokemon.charmander.AbstractCharmander.<init>(AbstractCharmander.java:16) at actor.pokemon.charmander.ConcreteCharmander.<init>(ConcreteCharmander.java:11) at main.Main.<clinit>(Main.java:17) Could not find the main class: main.Main. Program will exit. Exception …

Software Development java
Member Avatar for thanatos1
0
371
Member Avatar for SWEngineer

I have followed this tutorial for setting up Eclipse and OpenCV: [URL="http://carrierfrequency.blogspot.com/2011/05/opencv-22-in-windows-using-eclipse-ide.html"]http://carrierfrequency.blogspot.com/2011/05/opencv-22-in-windows-using-eclipse-ide.html[/URL], and doing it with OpenCV 2.3. But, I'm always getting the error: Type 'IplImage' could not be resolved for IplImage* img = 0; Why is that? Thanks.

Software Development c++ ide
Member Avatar for raptr_dflo
0
269
Member Avatar for marsangel

Hi! I am having problems with my login form. So I created a database for my login form so that i can create multiple user. That works fine but when I try to log in the user created an error shows: Error: [CODE] java.sql.SQLException: No row count was produced at …

Software Development java java-swing microsoft-access
Member Avatar for marsangel
0
340
Member Avatar for jdarrel006

im totally noob using Turbo C.. i know this is just a basic prog, but of course i cant do it because i've started using Turbo C.. Name: Age: Gender: something like that.. or like doing a resume in Turbo C.. thanks in advance..

Software Development c
Member Avatar for Adak
0
81
Member Avatar for Caraka

Greetings I'm running in circes trying to accomplish something very simple. I have a csv file with multiple lines resembling: 0002345, 24, 5, 0.24 I need this format in my output file: '0002345', 24, 5 0.24 The first entry is a census meshblock code and the leading zeros are relevant …

Software Development python
Member Avatar for Caraka
0
869
Member Avatar for Oliverpc

Hi there, I'am asked for a HW write a code: * read some data of unknown number of students with their grades of 4 courses from a file * calculate the gpa, honor/warning status, and course average for each course, * write them into an output file (for testing I …

Software Development c++
Member Avatar for Oliverpc
0
201
Member Avatar for kukuruku

I am confused with the optimized quick sort little help please [CODE] public static void quickSort(int []A,int p,int q){ while(p<=q) { int r = partition(A, p,q); quickSort(A, p, r); quickSort(A, r+1, q); } } static int partition(int []A, int p, int q) { int a=A[p]; int lp=p-1; int rp=q+1; while(A[rp]<a) …

Software Development java
Member Avatar for stultuske
0
99
Member Avatar for vedro-compota

Hi programmers!) I'm developing a custom component and I can't understand - how to make a property which can show a window with options like "font" property for button, for example ? please tell how to do this from where i can find it out. big thanks in advance))

Software Development
Member Avatar for vedro-compota
0
240
Member Avatar for learningcpp

Hi Guys, Can you please enlighten me, why the following output is this way? I thought A class size is the summation of the byte size of its member variables. My machine is a 64 bit machine. [CODE] #include <iostream> using namespace std; class A{ public: char y; int x; …

Software Development c++
Member Avatar for mike_2000_17
0
174
Member Avatar for Naveed_786

Dear all, Can any one tell me how can i take bakup on Every minute and hourly and complete whole day backup using VB.NET i.e i want to know the coding example Thanks in advance

Software Development oracle vb.net
Member Avatar for debasisdas
0
414
Member Avatar for terabyte

I'm trying to convert html to plain text (remove all html tags) I don't want to use regex so I tried the module HTML::Parser and tried the parse() function but i got this error [CODE]Undefined subroutine &main::start called at getwords.pl line 27. [/CODE] and as a matter of fact I …

Software Development html-css perl regex
Member Avatar for d5e5
0
277
Member Avatar for CPT

So it's this program which isn't behaving as it should. these are the classes I'm haing problems with: [code]#ifndef _CMENU_H_ #define _CMENU_H_ #include "Vec2.h" #include "Background.h" #include "Sprite.h" #include "BackBuffer.h" class Button { public: enum ButtonState { NORMAL, //when cursor is not near the button ANIMATED //mouseover event }; Button(const …

Software Development c++ gaming gui html-css
Member Avatar for m4ster_r0shi
0
160
Member Avatar for tipster3000

Hello. I need to reproduce this pattern using one main for loop and one nested for loop. I cannot seem to figure out the right way to do this. I came close, but not close enough. 0 10 210 3210 43210 543210 6543210 76543210 876543210 9876543210 [code]for (int x = …

Software Development java
Member Avatar for JamesCherrill
0
702
Member Avatar for joaep2

Hey guys, I want to write code that does something like this: If option = 1 Then Create one Button and display it Else If option = 2 Then Create two Buttons and display them End If To do this, can I simply do: [CODE]If option = 1 Then Dim …

Software Development display visual-basic
Member Avatar for aquamarine_kath
0
125
Member Avatar for Tortura

Hey guys, I want my form to hide instead to close by clicking on the red X button. Because when it's closed the form is deleted. I searched a lot to find a good solution, but nothing works. Many people wrote that following code: [CODE]private void Form1_OnClosing(object sender, FormClosingEventArgs e) …

Software Development gui
Member Avatar for Mitja Bonca
0
237
Member Avatar for sadsdw

Hi friends, I have a map containing an int as key and a struct as second value, read from file. I need to update the second column with value obtained by the last value (bigger one) + 1. A kind of sequential code ... I tried to use the max_element …

Software Development c++
Member Avatar for sadsdw
0
135
Member Avatar for coroll

Hi! im getting this error. I dont know why. PLZ can anyone help me. this is my code [CODE] public void getLastMemID() { String concString = "Data Source=BJ-PC\\SQLEXPRESS;Initial Catalog=new;Integrated Security=SSPI"; // int ID=0; try { CN = new SqlConnection(concString); CN.Open(); SqlCommand com = new SqlCommand("SELECT MAX(ImageId) FROM ImagesStore", CN); SqlDataReader …

Software Development open-source
Member Avatar for Mitja Bonca
0
106
Member Avatar for niggz

Hello. I have a problem writing to a file using for loop. here is the code: [CODE=cpp] /* the code should save numbers in a file something like this 1 5 2 8 3 7 4 6 */ //instead it gives just the last numbers it catches /* 4 6 …

Software Development c++
Member Avatar for niggz
0
159
Member Avatar for vedro-compota

hi all) Does anybody know a good example to add a smart tag to custom component?

Software Development
Member Avatar for vedro-compota
0
115
Member Avatar for dawsonz

Hello I have an XML file that uses <Document Element> I was wondering if it is possible to sort my XML file by sortOrder? Here is an example of my code: [code] <?xml version="1.0" standalone="yes"?> <DocumentElement> <Item DataField="A03" Header="RDAW TEST" UseDefaults="Yes" SortOrder="1"/> <Item DataField="A01" Header="Eg: Assignment 1" UseDefaults="Yes" SortOrder="2" /> …

Software Development xml
Member Avatar for pritaeas
0
161
Member Avatar for vaishnu

Hi all, I am assigned with a task of creating a custom control in c# .The control should be similar to a button with on and off states.Can yo people help me out with coding ???Pls . I donno how the control to be drawn with graphics and how to …

Software Development
Member Avatar for vaishnu
0
140
Member Avatar for CeeGee

[TEX]Create a class named Pizza. Data fields include a string for toppings (such as pepperoni), an integer for diameter in inches (such as 12), and a double for price (such as 13.99). Include properties to get and set values for each of these fields. Create a class named TestPizza that …

Software Development c#
Member Avatar for stbuchok
0
517
Member Avatar for bhagawatshinde

Hi, I am develop an windows application of OMR in c#. I just want to add rediobutton instead of check box. how i can do this. Anybody help me..... Thanks in advance

Software Development
Member Avatar for bhagawatshinde
0
2K
Member Avatar for cheenu02

hi, the following program is not running and gives CANNOT CONVERT INT TO INT* IN MAIN FUNCTION error [CODE]#include<stdio.h> void main() { int *p; p=0x2000; ++p; printf("%d",p); }[/CODE] how to solve this

Software Development c
Member Avatar for bajishareef
0
2K
Member Avatar for jineesh

The datetime picker control 'focused' property is not set to true even though I have changed the date value. Please anyone help me Regards, Jineesh

Software Development
Member Avatar for jineesh
0
100
Member Avatar for kipslem

Hello, Could someone help me with this question that I need to complete within 4 days? I have a problem with the insert statment on the code below. This code is working fine by inserting the ststement, but the problem is that the DATE is not being inserted into the …

Software Development sql vb.net
Member Avatar for Pgmer
0
331
Member Avatar for kumarmpk4u

Hi All, In my application i am using a document to display data present in the database. First I try to run a query in the database and when i try to display the contents of the result it is failing to display the contents. But when I try to …

Software Development c++
Member Avatar for kumarmpk4u
0
106
Member Avatar for CeeGee

Create a class named Pizza. Data fields include a string for toppings (such as pepperoni), an integer for diameter in inches (such as 12), and a double for price (such as 13.99). Include properties to get and set values for each of these fields. Create a class named TestPizza that …

Software Development c#
Member Avatar for samueal
0
2K
Member Avatar for clickspiker23

I am currently going through a c++ book trying to do the problems at the end of the chapters. They dont provide solutions so im kind of stuck. My problem is: Write a program that uses a loop to display the characters for each ASCII code 32 through 127. Display …

Software Development c++
Member Avatar for Greywolf333
0
251
Member Avatar for syeda amna

Hi is it possible to use static variables with servlet. I want to access static variable from servlet but it gives null value. Why??

Software Development java
Member Avatar for syeda amna
0
79
Member Avatar for ritesh2190

i need to count the no of instances of a word in a string using vb.net i can do the usual way as my problem is a little different for eg i need to count the no of occurrences of -> in tree_ptr->sub.another->valu=3;

Software Development vb.net
Member Avatar for codeorder
0
141
Member Avatar for packluv12

I am working on an assignment and I am suppose to use vectors to find the sum and winner but I do not understand c++ so this is confusing. The program runs but it is giving me the wrong winner, it displays the winner as who ever is entered first. …

Software Development c++
Member Avatar for packluv12
0
97
Member Avatar for ShadowBorn

I have this assignment due and its a bit tricky, i was wondering how is it possible to incoporate both C-string and a [I]string[/I] object at the same time. Any help would be very very appreciated. thank you all in advance. Here is the actual problem from the book. [B]Write …

Software Development c++
Member Avatar for NathanOliver
0
147
Member Avatar for hawkmcdowell85

Hello, I have some limited background in C++ and Java, though I haven't programmed in years. I'm wanting to begin programming through learning C#. I have a project plan in sight to help me learn along the way using Windows Forms and C#. I was looking for guidance here in …

Software Development asp.net c# microsoft
Member Avatar for hawkmcdowell85
0
199
Member Avatar for MaggieLynn

Getting errors stating that 'Assignment3.Converter' does not contain a definition for 'breakdown'...cannot get this to work...I know there is a problem with the breakdown and dollarAmount, but I can't seem to figure out the solution. [code] using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Assignment3 { class Converter { …

Software Development c#
Member Avatar for MaggieLynn
0
145
Member Avatar for warrior4321

I'm wondering how to remove the stuff at the end of the console, where it says the execution time, press any key to continue, and what the process returned. I am using Codeblocks. As well, I am wondering when I type in a letter, (for example, the letter h), it …

Software Development c++
Member Avatar for WaltP
0
123
Member Avatar for jackmaverick1

Hey! I sorta, kinda want to make a REALLY simple OS that would be made in c/c++ (c++ hopefully). I realize that it would take a lot of effort, and I would need a lot of time. But I am willing to put forth the required effort and time, so, …

Software Development assembly c++ operating-system
Member Avatar for rubberman
0
202
Member Avatar for winecoding

I opened the .bashrc file on a system, which includes [CODE]export JAVA_HOME=/usr/lib/jvm/java-1.6.0-sun.x86.64[/CODE] After typing [CODE]whereis java[/CODE], the system prints out [CODE]java: /usr/bin/java /etc/java /usr/lib/java /usr/share/java /usr/share/man/man1/java.1.gz [/CODE] It seems to me that none of the above path matches the JAVA_HOME set up in bashrc file. Can you let me know …

Software Development java
Member Avatar for stultuske
0
251
Member Avatar for Slyvr

I'm creating a game with XNA, and having issues with Vector2 arrays. The code below will loop through each square on the grid for the game 40x40pixels. The first for loop getting the X coordinate and the second getting the Y coordinate. I'm getting the proper width and height (if …

Software Development
Member Avatar for Sodabread
0
142
Member Avatar for tom543

please help me! Fullfill 10 philosophers eating and thinking transaction at least 5 times and make them to be full.(with java) My Best Regards...

Software Development java
Member Avatar for tom543
0
194
Member Avatar for mchin131

I have a program where it reads 2 files, one of them containing a file with customer number (int), customer name (string) and balance (double). There are 7 lines, but my program would only read the first line 7 times. This program is confusing me as to why they won't …

Software Development c++ file-system
Member Avatar for NathanOliver
0
156
Member Avatar for Start4me

Hello everyone! I'm just a beginner in vb.net. I need to make a save button. The user will work in main form. User also has Settings in the MenuStrip, when the user clicks Settings a new form will open. There user has ability to make changes that will affect the …

Software Development vb.net
Member Avatar for adam_k
0
314
Member Avatar for vextorspace

I have an JOGL based opengl program that uses textures on flat surfaces. After a texture is put on a surface, it will eventually crash. If the textures are small, it takes a while. I managed to reproduce it with a simple program: [CODE] package org.yourorghere; import com.sun.opengl.util.Animator; import com.sun.opengl.util.texture.Texture; …

Software Development java linux-kernel opengl queue
Member Avatar for vextorspace
0
198
Member Avatar for sadsdw

Hi everyone, I have a std::map of structures . I'm reading the data from a file named "auxIdSorted.txt" and I need to do a while() using the variable auxID. The idea is read the map many times until all values of auxID become different of zero (while(auxID == 0). I …

Software Development c++ data-structure
Member Avatar for sadsdw
0
146
Member Avatar for niggz

Hi masters! I have a problem with my while loop. I realised that my code does not work the way I want. It has to check if sum of def, mid and att variables is different from 10 or if style variable is different from multiple strings. So if any …

Software Development c++
Member Avatar for niggz
0
166
Member Avatar for eagl09

Keep getting reached end of file while parsing error I have been told this error is from extra or missing closing brace in code..CANNOT find where it is at. any help?? [code] import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.JTextField; public class BasicCalculator { private static …

Software Development java java-swing user-interface
Member Avatar for rubberman
0
334
Member Avatar for richa_talwar08

Hi All, I need to write a code in C or C++ where some text in text_file_1 needs to be replaced with some other text which is in text_file_2. both the text files are stored at some location Text_file_1 has text: user,pass jojo, beans where jojo and beans need to …

Software Development c
Member Avatar for Adak
0
448
Member Avatar for Majestics

I want combo box in jtable visible from start not when i click the cell... any idea?

Software Development java
Member Avatar for Ezzaral
0
145
Member Avatar for st_infamous

i've got a problem with x86 assembly instructions.. I'm trying to compile an ASM file using Borland TASM 5.0 using command [code]tasm32 /z /m /ml MyFile.asm[/code] However, there is an instruction in that ASM file - SUB ECX, FFFFFF88 which the assembler declares as - Undefined Symbol : FFFFFF88 It …

Software Development assembly
Member Avatar for coffeeuncle
0
329

The End.