43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for mrar85

i have a formview which show the data from a database.. in another page, i have a datalist that also display data from the database.. in the datalist, i have a hyperlink that when click will navigate to the page that have the formview which display data that suppose to …

Software Development asp vb.net visual-basic
Member Avatar for mrar85
0
138
Member Avatar for PF2G

Can someone tell me what's wrong: Imports MySql.Data.MySqlClient Public Class Login Dim server As String = "Server=localhost;Database=escola_musica;Uid=root;Pwd=;" Dim con As New MySqlConnection Dim da As New MySqlDataAdapter Dim sql As String Dim cmd As New MySqlCommand(sql, con) Dim dr As MySqlDataReader Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As …

Software Development mysql vb.net
Member Avatar for bluehangook629
0
126
Member Avatar for slash16

want to do: [ICODE]dict = {'1': ['a'],'2': ['a', 'b', 'c']}[/ICODE] invert it to: [ICODE]inv_dict = {'a':['1','2'],'b':['2'],'c':['2']}[/ICODE] i know the one liner, if the dict was one to one, [ICODE]inverse = dict((d[k], k) for k in d)[/ICODE] can I modify this to work if it was not one to one? My …

Software Development python
Member Avatar for TrustyTony
1
2K
Member Avatar for pendo826

Can anyone see the problem with my method ATTACK [CODE]#include "Monster.h" #include "Player.h" #include "Weapon.h" #include <iostream> using namespace std; Monster::Monster(std::string Name, int health, int hitPoints, int miss, int damage,const std::string& weaponName) { Name = Name; hitPoints = hitPoints; Weapon weapon; miss = miss; damage = damage; weapon.Name = weaponName; …

Software Development c c# c++
Member Avatar for pendo826
0
138
Member Avatar for user543820

Hello! I want to split a string, say : "I have a dog" of string data type to an array of strings. I want to save that array. i.e I want an array like: array[0]="I" , array[1]="have" , array[2]= "a" , array[3]= "dog" Please help me out. Thanks,

Software Development c++
Member Avatar for user543820
0
6K
Member Avatar for nyuszi

Hi i need a little help. i want to read a multi array from a file but code blocks said a lots of error and i dont know whats the problem. can u help me? [ICODE]#include <iostream> #include <cstdlib> #include <math.h> #include <fstream> #include <sstream> using namespace std; int maxn=100; …

Software Development c++ ios
Member Avatar for nyuszi
0
260
Member Avatar for Despairy

i have an assigment to fork the main program to 4 sons each will sort an array in a different way [ICODE] for (sonID=0;sonID<4;sonID++) { status=fork(); if (status<0) error("Can't Fork!"); if (status==0) { checkFiles(argc,argv,&in,&out,sonID);// opening the files for use readFromFile(&nameList,&sizeOfList,&numOfStrings,in); sortArray(numOfStrings,&nameList,sonID); outputToFile(nameList,numOfStrings,out); //output the array to out file freeArray(sizeOfList,nameList); //freeing …

Software Development c
Member Avatar for Despairy
0
184
Member Avatar for rhn94

I looked around quite a bit on how to solve this but i couldn't find a lot .. can anyone help me? The capitalized variables are constants [CODE] case '4': { bubbleSort(aList); string strKey; cout << " Input: "; cin >> strKey; binarySearch(aList, strKey); int binarySearchResult = binarySearch(aList, strKey); if …

Software Development c++ programming-construct
Member Avatar for rhn94
0
260
Member Avatar for Unsated

Working on a simple banking program and it doesn't compile. Worked perfectly when everything was in main, then i was told to divide into methods( where everything went wrong ). The errors im getting are: C:\Users\DJ3\Desktop\School\Minilab5.java:30: illegal start of expression } ^ C:\Users\DJ3\Desktop\School\Minilab5.java:67: illegal start of type switch (userChoice) ^ …

Software Development java
Member Avatar for Unsated
0
425
Member Avatar for TehCPP

Hello everyone, i thought of this question and i would greatly appreciate some pointers on it. I have 2 simple Java Projects which are GUI based. One writes some information to a text file. The other reads the text field and displays it on the GUI. My question: Is it …

Software Development gui ide java
Member Avatar for TehCPP
0
171
Member Avatar for walid86

Situation: i have a bitmap loadedImage1 which the user is able to resize, and move around inside picturebox1. objective: this loadedImage1 is then to be added to a pdf document (which is working) but needs to be using the current size and location(as the user can move it around) atm: …

Software Development pdf
Member Avatar for walid86
0
204
Member Avatar for minghags

Hello! I just made an program, but now i have problem with sorting output in the asc. order (int datum) thats date in our language :) [CODE] #include <iostream.h> #include <stdlib.h> struct datum { char dan [32]; char mesec [13]; char leto [5]; void vnosDatum(); void izpisDatum(); }; void datum::vnosDatum() …

Software Development c c# c++
0
118
Member Avatar for Oneryavuz

I want to open some files using my program. and I decided to use a shell command. but when i use shell it gives "file not found error" for example Shell("C:\Documents and Settings\ÖnerYavuz\Desktop\aa.txt") ==> it gives error but Shell("C:\Documents and Settings\ÖnerYavuz\Desktop\warkey.exe")==> its work and i thought it opens only exes. …

Software Development vb.net
Member Avatar for sujimon
0
1K
Member Avatar for poojavb

Hello Friends, I need a hint to auto complete the combobox. I have two table SpeciesMaster and BreedMaster (Access Database) In the java code on the action Listener of the Species combo Box the breed details gets populated in the breed combobox. But now I want to filter the breed …

Software Development java
Member Avatar for poojavb
0
1K
Member Avatar for libathos

Is there any way that i can create a gui which contains an excel diagram sheet?not a jtable..

Software Development gui java
Member Avatar for peter_budo
0
100
Member Avatar for terence193

I am trying to create a program that creates a loop to enter different values in an array. but the program is skipping values of i. I can't understand why.. [CODE] #include<stdio.h> int main (void) { char s[10]; int i; for (i=1;i<=10;i++) { printf("enter %d'th value of the array 's'\n",i); …

Software Development c
Member Avatar for ashlock
0
98
Member Avatar for Mrinal1991

I have one field of the student in database and I have to pass two rules in it i.e Classes 1-9 will only have 1 book for 1 week and Classes 10-12 will have 2 books for 2 weeks. How can I do that?

Software Development vb.net
Member Avatar for lolafuertes
0
150
Member Avatar for smallrubberfeet

Hello, I need to sort the following by ID as I enter them into a linked list by while loop. So far I can build through the list, but I'm not sure how to sort by ID as they are entered: Albert 1000 55.5 150 Babs 3000 60 110 Freida …

Software Development c++ linked-list
Member Avatar for mazzica1
0
131
Member Avatar for happyhound

Objective: User enters a score then clicks Add button. Everytime Add button is clicked a Score is added to previous score to display total, averaged,counter. Issue: I enter first scores then click add. The first score displays but the second score overwrites the first. It is not accumulating. I believe …

Software Development c c# c++
Member Avatar for happyhound
0
200
Member Avatar for bawbawbiscuit

I searched all over the net trying to find the reason behind why numbers are illegal as first characters in naming identifiers in C++, they say its illegal but they don't say why its illegal Id be glad if someone could tell me why :) , just curious

Software Development c++
Member Avatar for bawbawbiscuit
0
155
Member Avatar for mmxvoid

[CODE]import java.util.Scanner; public class Sales { private String salespersonName; public Sales( String name ) { salespersonName = name; } public void setSalesPersonName( String name ) { salespersonName = name; } public String getSalesPersonName() { return salespersonName; } public void displayMessage() { System.out.printf( "Welcome to the sales calculator for\n%s\n\n", getSalesPersonName() ); …

Software Development java
Member Avatar for mmxvoid
0
215
Member Avatar for roflspanker

I have been working on this code for quite a while and have not been able to figure it out. I looked online and through the forums and could not find something that showed how to fix it. This program takes in the julian date ie. 12df234(first two # are …

Software Development c
Member Avatar for Adak
0
144
Member Avatar for borchu

Hi, my question is simply but a little bit tricky; let assume that there are two array array1 = (2, 5, 6, 1, 7) and array2 (3, 2, 6, 8) and after function setUnion new array or use pointer return (2, 5, 6, 1, 7, 3, 8). Below my code …

Software Development c++
Member Avatar for mazzica1
0
579
Member Avatar for sheennave

[CODE] System::String ^name_string; SqlCeConnection ^sqlConnection = gcnew SqlCeConnection("Data Source=Northwind.sdf"); sqlConnection->Open(); SqlCeCommand comSelect = gcnew SqlCeCommand("SELECT * FROM tablo WHERE id = 33 ", sqlConnection); SqlCeDataReader ^reader = comSelect->ExecuteReader(); name_string = reader["name"]->ToString(); sqlConnection->Close(); [/CODE] What's the mistake on the code above ? :?:

Software Development c++ open-source
Member Avatar for sheennave
0
128
Member Avatar for libathos

I'm writing a project in xlib and have a problem concerning the colors.I use unsigned long type variables for storing the color values.does anybody know how can i take the red green and blue values of each color?

Software Development c++
Member Avatar for libathos
0
108
Member Avatar for dzerocall

Please tell me how to print invoice using Epson TM-U210 printer using c sharp.I can print invoice using normal usb printer such as hp injeckt pinters. I used [CODE] printDocument1.Print();[/CODE] command to print. But Epson printer is serial port printer. There for is there any need of using port command …

Software Development printer
Member Avatar for lolafuertes
0
433
Member Avatar for ndraycott

Hi I am trying to store the filepath of uploaded files in a sql server database using vb.net. I have run the code at it uploads fine but nothing is being added to the database. Any help will be greatly appreciated. [CODE]Protected Sub btnUpload_Click(ByVal sender As Object, ByVal e As …

Software Development file-system vb.net
Member Avatar for lolafuertes
0
146
Member Avatar for mrar85

Write a program that launches 100 threads. [COLOR="Red"]Each thread adds 1 to a variable sum that initially zero. You need to pass sum by reference to each thread. In order to pass it by reference, define an integer wrapper object to hold sum[/COLOR]. Run the program with and without synchronization …

Software Development java
Member Avatar for mrar85
0
2K
Member Avatar for coolbeanbob

Hello all, I have a text file set up as follows. 1 1 1 2 2 2 The program below is not reading the first line. The code below will only read 2 2 2. What am I missing here? main.cpp [CODE]#include <iostream> #include <limits> #include <cmath> #include <cstdlib> #include …

Software Development c++ queue
Member Avatar for coolbeanbob
0
165
Member Avatar for MrEARTHSHAcKER

Hi, I'm about to start making some little program with input of type string which'll later be converted into numbers, but it has to pass the check is there any non-digit character. Considering I was lazy to search for functions like that I decided to make my own header for …

Software Development c++
Member Avatar for MrEARTHSHAcKER
0
209
Member Avatar for mkab

Hello everyone. I have a problem using strtok in C. I get a user input from the command line and I want to tokenize it with pipe ("|") as the delimeter and put the result in a double pointer variable. Here's my code: [CODE]char** argv; char *token; token = strtok(userInput, …

Software Development c
Member Avatar for mkab
0
2K
Member Avatar for NickPatton

My assignment is to write a program that outputs the following columns of numbers using mathematical operators and the loop index. This is what I want the program to output: [CODE]1 10 0 1 1 0 2 20 1 4 2 0 3 30 2 9 3 0 4 40 …

Software Development c++
Member Avatar for NickPatton
0
243
Member Avatar for rubenrav

i have one list and one database. The list is made after i've decided a number in a numbericUpDown. So for an example i can get the list fj1Section: 1 34 33 32 31 20 19 18 17 16 each of this sections exists in the database in the 2. …

Software Development sql
Member Avatar for agrothe
0
186
Member Avatar for Dakot

Hello. I trying to solve this problem. The user inputs 4 numbers to each array (they are 2). I must output the common elements. So this is the problem i'm stucking with . Let's say p = 1,2,2,3 p1 = 3,5,1,2 the output is 2 1 3 1 2 but …

Software Development c++
Member Avatar for Dakot
0
8K
Member Avatar for robinpurbia

[CODE]#include<conio.h> #include<string.h> //prototype declaration int pnc1(FILE *fp); int pnc2(FILE *fp); int findstr(char *p[], char *name); int sum_array(int a[][], int element); //function to pick data and then convert bits to number // for notes_disp , notes_req int pnc1(FILE *fp) { int tot=i=j=k=0; i=getw(fp); j=getw(fp); k=getw(fp); tot=(100 * i) + (10 * …

Software Development c
Member Avatar for zeroliken
-1
111
Member Avatar for vlaskiz

short story short, I've got data file which looks like this: [CODE] Prekės pavadinimas Atvežimo data Pardavimo data Kiekis Kaina --------------------------------------------------------------------------------- Juodos vilnojinės kojinės 2011 10 28 2011 10 28 5 6.79 Smulkus cukrus 2011 11 19 2011 10 28 15 3.66 Pigus Batonas 2011 11 23 2011 10 28 …

Software Development c++
Member Avatar for vlaskiz
0
155
Member Avatar for sneekula

I need a function that returns True or False if an integer n is a prime. Any 'high speed' thoughts?

Software Development python
Member Avatar for wallars
0
1K
Member Avatar for Kyle Willett

I'm doing a program that is supposed to reverse a string entered my the user using a recursive function, I almost have it solved except for one little elusive bug that I can not understand. [CODE] //****************************************************************************** //Programer: Kyle Willett //Course: CS-1513 //Program: 3 exercise 7 page 933. //Purpose: Reverse …

Software Development c++ unix
Member Avatar for Kyle Willett
0
211
Member Avatar for Zwiebi

Hello, I'm trying to write a script which is listing files based on different preferences, like filetype or permissions. All is fine, except for one: I want to list files in /home which has a different owner than the home directory it is in. Here is an example: /home/UserA is …

Software Development shell-scripting
Member Avatar for Zwiebi
0
234
Member Avatar for mc3330418

So wrote this code all in main and it worked then tried to put it into function, per assignment, and i'm getting three errors both in the last function where I call the previous functions to print. [CODE]#include <iostream> #include <fstream> #include <iomanip> #include <string> using namespace std; ifstream infile; …

Software Development c++
Member Avatar for mc3330418
0
209
Member Avatar for tformed

[ICODE] org 0100h mov dx, msg mov ah, 09h int 21h mov ah, 4ch int 21h msg db 'Hello Wold! \nThis is my first program using Assembly', '$'[/ICODE] Hi guys, I'm learning Assembly Programming using NASM and had a question. Would it be possible to break lines in Assembly? Say …

Software Development assembly
Member Avatar for tformed
0
13K
Member Avatar for Jack_Frost

Hello all, The program I am working on is calculation of areas (of shapes). For example, for triangle area calcuation I have: [CODE] else if (character == 't') { double b,h; cout << "Enter base: "; cin >> b; cout << "Enter height: "; cin >> h; area= h * …

Software Development c++
Member Avatar for Narue
0
171
Member Avatar for Bobonoinc

I am working on an application in which I select a color from a color selection dialog and click on a graphic shape to change its color. Everything is working fine, but now I would like to change the default arrow-shaped cursor to an eyedropper shape when I am in …

Software Development java oracle
Member Avatar for Bobonoinc
0
99
Member Avatar for frank33

My Java instructor yesterday gave us a sample test. One line that surprised me was something like [B] if ( m2++ < 10 ) { ………[/B] iow the first thing done is , in effect m2 = m2 + 1, an ASSIGNMENT. Whether the instructor ever actually discussed this in …

Software Development java
Member Avatar for stultuske
0
140
Member Avatar for kyriacos1986

I have been asked to create to check if a word is palindrome or not. But I am facing some problems. After the code you can see the messages that I received from the compiler. [CODE] import java.util.*; public class Palindrome { public static void main(String[] args) { [B]Stack<String> stack …

Software Development java queue
Member Avatar for kyriacos1986
0
2K
Member Avatar for vinithktp

Hi, I am facing OutOfMemory exception in Java, Kindly help me to resolve this issue, really appreciate your help [U][B]ERROR: [/B][/U]java.lang.OutOfMemoryError: Java heap space [B][U]CODE:[/U][/B] [CODE] public Blob getBlob(String databaseInstance, InputStream inputStream) throws SQLException, Exception { applog.info("Entering getBlob"); InputStream stream = null; applog.info("inputStream : " + inputStream); stream = inputStream; …

Software Development java motherboards-cpu-ram oracle
Member Avatar for vinithktp
0
904
Member Avatar for y2kshane

im creating a custom button . when user select a image file for button image i want to add it to the project resource (in design time) . how to do this?? im currently drawing image using image location but its not a good solution.

Software Development gui image vb.net
Member Avatar for codeorder
0
7K
Member Avatar for rhn94

Hey guys. I'm trying to create a program which adds, searches & removes items from an array & i've been messing around with the code, trying to find answers on the internet but so far no dice. Could any of you help out? [CODE] void removeString(List& s, string strKey, const …

Software Development c++ seo
Member Avatar for rhn94
0
194
Member Avatar for pendo826

Hey i have no idea whats goin wrong with this i think its to do with the fact that its in private but i have an error with calling weapon in the monster class (Monster.cpp) the error states that it is inaccessable :S here is my code: [CODE] //Monster.h #ifndef …

Software Development c c# c++
Member Avatar for pendo826
0
130
Member Avatar for MisterRaver

Hi, I am wondering if it is possible to "transfer" a Socket connection to another ServerSocket? So, say I listen for a connection on ServerSocket with port 1111. A connection is established, I know want to use a ServerSocket with port 2222 to handle this connection. Is he possible without …

Software Development java
Member Avatar for MisterRaver
0
261

The End.