43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for Krstevski

Hey guys, I have one stupid problem with the return value of one function... this is my code: [CODE=Java] private boolean check(String mail, int N){ // mail = The mail // N = The sum of the characters before the @ and including it him if(mail.substring(N) == "hotmail.com" || mail.substring(N) …

Software Development java
Member Avatar for JamesCherrill
0
117
Member Avatar for noble3ad

Hello all, I have written a program that stores randomly generated numbers between 0 and 19 into an array of 100 elements. I create a frequency array of 20 elements that shows the frequency of each number and print it's histogram. Now, I'm suppose to increase the frequency array by …

Software Development c
Member Avatar for mevanga
0
2K
Member Avatar for rdevi

Hi all ! Can anybody tell me why the following code is not copying the file from source to destination? Thakns in advance........ use File::Copy; my $source="C:\\shared\\8.4.1\\DXSI"; my $dest="C:\\r45"; my @files; my $file; opendir(DIR, $source) or die "can't opendir $source: $! \n"; @files=readdir(DIR); close DIR; foreach $file(@files) { print "\n …

Software Development file-system perl
Member Avatar for rdevi
0
163
Member Avatar for stan yost

I have an input box in my program and I want to be able to control the flow when the 'cancel' button is pushed. Any help would be appreciated.

Software Development visual-basic
Member Avatar for lanze12
0
107
Member Avatar for jqorso

Hi, I have some experience with C++ and FORTRAN. I would like to write software to help me visualize shapes in a GUI-based program. Where is a good place to start? Books, websites, etc that would help me get an idea of what is needed would be good. Thanks!

Software Development c++ gui
Member Avatar for K0ns3rv
0
108
Member Avatar for ryno365

Hello daniweb. I'm working on a Poker Holdem Application and I'm trying to work on a view/jframe for it. Everything was running smoothly until something weird happened. After deleting an old hand-coded MainFrame which extends JFrame file, I tried to create a new MainFrame/JFrame file but this time using netbeans …

Software Development daniweb-bug gui java
Member Avatar for ryno365
1
119
Member Avatar for itslucky

Dear Friends, i have developed a software which have Mdi contianer, the problem is that, 1. when i click on the empty space of the main form i.e (Mdi container FORM) all other windows goes behind this Mdi container window *I would like then to stay on top of the …

Software Development
Member Avatar for itslucky
0
136
Member Avatar for MichaelSammels

Does anyone know how to change the colour of strings using x86 NASM Assembler? I've found tutorials like this: [CODE] mov ah, 09h mov al, 97 mov bx, 100b mov cx, 01h int 10h [/CODE] Which prints the letter "A" once in the colour you choose. This is a handy …

Software Development assembly
Member Avatar for NotNull
0
4K
Member Avatar for axn

I am migrating scripts from UNIX server to a Linux. In the perl script it calls rcp to transfer files. It worked ok in UNIX but not in Linux, which has scp, I dont want to do scp now as this is a temporary Linux Box I am using. I …

Software Development perl unix
Member Avatar for axn
0
915
Member Avatar for makymakaru

Is pass by value and call by reference the same? I mean i know theres no call by reference in C but there is similarity int he output of the two isn't it? why do we use call by value and pass by value? what are its uses?

Software Development c c# c++
Member Avatar for Tom Gunn
0
103
Member Avatar for Jennifer84

I wonder something about finding a specific character in a string. What I am trying is to find "*" and if that character is found in the string, I will write "Found" to a file. When running the code below. All this is happening but the same thing is happening …

Software Development c++
Member Avatar for dpreznik
0
147
Member Avatar for geoffy0404

im just so stressed and having a mind block.. i have code please help [CODE]#include <stdio.h> /*pre-defined processor statements*/ #ifndef __OPERATION__ #define __OPERATION__ #define TOTAL 0 #define ADDITION 1 #define SUBTRACTION 2 #define MULTIPLICATION 3 #define DIVISION 4 #define MODULAR 5 #endif int main() { /*assign the variables*/ int num1 …

Software Development c
Member Avatar for Aia
0
128
Member Avatar for revski

hi i have a question about formatting combo boxes. i have 1 combobox on the form with a label and a calculate button, the combo box is layed out like this 180 / 50 like a tyre size. The calculation to be performed is the 1st number X the 2nd …

Software Development delphi pascal
Member Avatar for revski
0
149
Member Avatar for mldardy

I have a shopping cart page where if an item is Real Estate Forms 2d then there will be a sales tax assessed. If it equals any other item there will be no sales tax assessed. The problem I am having is I can't get a sales tax assessed for …

Software Development session
Member Avatar for mldardy
-1
126
Member Avatar for Ineedhelpplz

I have already completed my hex to integer conversion function which works properly with the provided driver. However, my integer to hex function gets stuck in an infinite loop and I have no clue why. The red section of my code is the function which is giving me problems. Everything …

Software Development c
Member Avatar for Ineedhelpplz
1
384
Member Avatar for vinnijain

Hi!!! I am using following code in which I am generating the latex format. Here I want to use the combination of characters[A-Za-z], numbers[0-9] ,special charactes(like Ï€ ,θ ,α ,β ,γ ,°,+, - ,×,÷,√ ,(,)etc) ,decimal numbers. For entering special characters I have used toolbar Can anyone tell me how …

Software Development regex
Member Avatar for vinnijain
0
337
Member Avatar for Reprise

My code so far opens a text file in a particular format and reads in the data into a structure called salesRecord. There is no problem there. The problem arises when I write the data to a new binary file. Here is the structure: [code=CPP] struct salesRecord { int custNo; …

Software Development c++ data-structure file-system ios
Member Avatar for dkalita
0
8K
Member Avatar for Sapreaver

I have been coding for a little bit in VB mostly and decided to try C right all is dandy until I try using a function I am getting a conflicting types error in function encrypt here is my beautiful code [CODE]#include <stdio.h> #include <stdlib.h> int main(int argc, char *argv[]) …

Software Development c
Member Avatar for Sapreaver
0
5K
Member Avatar for kool.net

how to i use master & detail table concept using datagridview in c#.net.

Software Development
0
84
Member Avatar for javaAddict

I encountered some code at work that got me thinking. There was a util - class that had some methods that had nothing to do with the state of the class. They were all "util" methods. Meaning that they could all be declared static with [U]no[/U] problem because the only …

Software Development java
Member Avatar for javaAddict
0
127
Member Avatar for hodaAgh

I've written a program like the follow: [CODE]int main () { . . . . ifstream file1; ifstream file2; ofstream simiralities; simiralities.open("P(0)_P(1).txt", ios::app); file1.open("test1.txt", ios::in); while (!file1.eof()) { . . . file2.open("test2.txt", ios::in); while (!file2.eof()) { . . . . } file2.close(); } simiralities<<number; file1.close(); simiralities.close(); return 0; }[/CODE] the …

Software Development c++ file-system ios
Member Avatar for hodaAgh
0
146
Member Avatar for vinnijain

Can anyone tell me how can I enable one and only one whitespace to be entered in the textbox such that user can press spacebar only once while entering the string in the textbox and not more than once........... Kindly provide me some solution.............

Software Development
Member Avatar for vinnijain
0
3K
Member Avatar for kool.net

hi, can any one tell me how to autocomplete a textbox using mysql database's data in c# .net 3.5 & how to use one form's value to other forms in windows application in c#.net & how to use master and details table concept here using c#.net. please help me......

Software Development
-1
81
Member Avatar for Dlearner

Hi , I want to know, how to implement vtable in C. This is achieved through virtual functions in C++. I feel we need to do what c++ compiler internally does, But i am not sure on the entire implementation. Thanks.

Software Development c
Member Avatar for Dlearner
0
5K
Member Avatar for NinjaLink

I am currently having problems with my getline in main. Whenever I use it, it prints out the last word in my input file twice. I do not know how to get rid of it. Any help is appreciated. [B]Input file:[/B] noon dog race car cat mom bob [B]Current Output:[/B] …

Software Development c c# c++
Member Avatar for NinjaLink
0
100
Member Avatar for haven_u

hi there, i just want to know what data type i need inorder to store a binary word eg. 10010111

Software Development c++
Member Avatar for vmanes
0
881
Member Avatar for Israelsimba

[B]i enter text into a text box, when i move to the next textbox, the text i entered in the other text boxe disappears.....this started when i run form after linking my text boxes with the necessary database items.. i used an adodc for connection. before connecting the textboxes i …

Software Development visual-basic
Member Avatar for abu taher
0
107
Member Avatar for Jaysmi23

VB.NET 2008 Express, ACCESS Db 2007 Ok I have a program that contains a datagridview control linked to a database and i want to be able to search through every field via a ButtonSearch for a match of the search term - search term is entered in a text box …

Software Development vb.net
Member Avatar for Jaysmi23
0
289
Member Avatar for Eko

Hi guys , In Visual Studio 2005 I compiled the following code [CODE] int main() { float a; a=0.1; if(a<0.1) { printf("C\n"); } else { printf("C++\n"); } } [/CODE] I was very surprised when I saw the output C++ . I got the warning C4305 :" '=' : truncation from …

Software Development c visual-studio
Member Avatar for dwayneb
0
5K
Member Avatar for AutoPython

I'm having a problem sizing down this block of code: [CODE] if POS == 1: POS1 = "->" else: POS1 = " " if POS == 2: POS2 = "->" else: POS2 = " " if POS == 3: POS3 = "->" else: POS3 = " " if POS == …

Software Development python
Member Avatar for AutoPython
0
148
Member Avatar for MrNoob

hey i m reading about pe format but there something that i don't get RVA in documentation it says it just like a temp for addressing memory in other sections ok and it's just a DWORD what if there are many temperoralily variables wouldnt that overflow the that RVA value …

Software Development c
Member Avatar for MrNoob
0
479
Member Avatar for Samyx

Hi everyone, My program is doing what it suppose to do, except that it generates a loop with the answer. ... ERROR in uniform.discrete_uniform(): a=100 b=99 ERROR in uniform.discrete_uniform(): a=100 b=99 ERROR in uniform.discrete_uniform(): a=100 b=99 ERROR in uniform.discrete_uniform(): a=100 b=99 ERROR in uniform.discrete_uniform(): a=100 b=99 ERROR in uniform.discrete_uniform(): a=100 …

Software Development c
Member Avatar for Samyx
1
152
Member Avatar for george21

I need to display the loan table with the annual interest rate, monthly payment, and total payment for the number of years entered. When I run my program, it only displays the info for 8%, when I need to display all interest rates from 5% to 8% in increments of …

Software Development display gui java java-swing
Member Avatar for BestJewSinceJC
0
111
Member Avatar for txwooley

I am making a poker game using pyGTK. My problem right now is that the other players won't let me play! Each player has a function for betting and they go in order such as amandaBet(), playerBet(), billBet()... where player is you. Since this is a GUI game, I am …

Software Development gui python
Member Avatar for txwooley
0
276
Member Avatar for avirag

Hi!!! I have made a window application Form in which there is a textbox in which I am entering string of data. Also there is a toolbar for entering symbols which are not present on keyboard. Now for entering each symbol in textbox i have used :[CODE]textBoxEquation.AppendText("÷"); this.textBoxEquation.Focus();[/CODE] but problem …

Software Development
Member Avatar for Geekitygeek
0
193
Member Avatar for Stefano Mtangoo

Hi all, I plan to make a PRACTICAL dictionary and need help on just ideas. basically you can use dict datatype for simple dictionary and use dicy->key to retrieve but does that work for larger data queried from database? Or should I implement a database of key --->value? Any Idea …

Software Development python
Member Avatar for Gribouillis
0
184
Member Avatar for Web_Sailor

I am able to build a logic which does exactly how I want it to work but when I add more records there are some problems in flagging. Here is the example:- when my input is : [CODE] mymm.insert(pair<char,int>('a',50)); mymm.insert(pair<char,int>('b',100)); mymm.insert(pair<char,int>('b',150)); mymm.insert(pair<char,int>('b',200)); mymm.insert(pair<char,int>('c',250)); mymm.insert(pair<char,int>('c',300)); mymm.insert(pair<char,int>('d',300));[/CODE] output is correct :- [CODE]single …

Software Development c++
Member Avatar for dkalita
0
123
Member Avatar for locked_twilight

This is a working program. But there is a logical error. Try this with the calculator: Press 2,M; Press R,*,2; Press R,*2; The output in the same order must be: 2 2*2 = 4 2*2 = 4 but the third one outputs 88 instead. M stands for Memory, it stores …

Software Development java java-swing
Member Avatar for locked_twilight
0
147
Member Avatar for turbomen

Dear ALL, Could you tell me how can I do this kind of question if I do not working with the computer and please find the attached document for your reference - it is the answer of the question? [code] Complete the table below to show what each variable holds, …

Software Development pascal
Member Avatar for pritaeas
0
152
Member Avatar for scias23

WHAT i want to happen is, when i click the CALCULATOR menu item, my separate Calculator.java will run on the MenuShortCut JFrame. AGAIN, i want the separate .java file to appear on THE SAME JFrame of MenuShortCut class. here's what i've got [CODE=java] import javax.swing.*; import java.awt.event.*; public class MenuShortcut …

Software Development java java-swing
0
107
Member Avatar for ShailaMohite

Hi, The database on MS-Access is kept on one machine and i have to access it from another machine.. I have given the following connection string on the client machine. But still it is not accessible. I have shared to Databse folder with full permissions... But, still it is not …

Software Development microsoft-access
Member Avatar for sknake
0
126
Member Avatar for ShailaMohite

Hi, I am use following code to find IP address of machine in C#.write following code in class file. when build the solution it gives following error 1.The best overloaded method match for 'string.String(char*)' has some invalid arguments 2.Argument '1':cannot convert from 'string' to 'char*' How to solve this error …

Software Development dns
Member Avatar for ShailaMohite
0
170
Member Avatar for kingofkya

Ok trying to work with zipFile library how do you flatten the file hierarchy what works [CODE] zipFile = zipfile.ZipFile(imgSetup[0]+'/'+zipName, 'w') for picId, pathname in enumerate(pic_list): if start <= picId and picId <= end: zip.write(filedir+'/'+pathname) zip.close() [/CODE] what i am trying [CODE] zipFile = zipfile.ZipFile(imgSetup[0]+'/'+zipName, 'w') for picId, pathname in …

Software Development python
Member Avatar for kingofkya
0
204
Member Avatar for axn

getting error when compiling. "java:60: non-static variable inventory cannot be referenced from a static context for (String show : ProductDB.inventory)" the showCodes class has to public static void. Here is code [CODE]import java.util.*; import java.text.*; public class ProductApp { public static void main(String args[]) { // display a weclome message …

Software Development java
Member Avatar for axn
0
136
Member Avatar for hoolr

I'm trying to implement a Visitor Pattern in c++, but I'm having problems with the elements being visited in turn having their children visited. For example I have a class Element, which has a vector of Nodes (can be elements or any classes that inherit from node): [CODE] class Element …

Software Development c++
Member Avatar for dkalita
0
108
Member Avatar for jdam7459

I'm having trouble getting my dynamic 2d array to work consistantly in my program. Here's the code: [CODE] #include <iostream> #include <string> #include "DisjSet.h" using namespace std; struct cell { bool nWall; bool sWall; bool wWall; bool eWall; }; void CreateMaze(cell** &maze, int x, int y); void LoadMaze(cell** &maze, int …

Software Development c++
Member Avatar for dkalita
0
121
Member Avatar for DEATHMASTER

So I have a couple strings [code]first = input("Enter a starting integer: ") last = input("Enter an ending integer: ") last = last + 1 [/code] How do I make another assignment to a string "n" that I want to take the value of each individual integer in the range? …

Software Development python
Member Avatar for snippsat
0
123
Member Avatar for jaycel

write a program that uses a for statement to find the smallest of several integers. Assume that the first value read specifies the number of values remaining and the first number is not one of the intergers to compare.pls help me i need it now!

Software Development c++
0
70
Member Avatar for jjepoy

it keeps on saying '{' token error. did I put something wrong that the program keeps on saying '{' token error? [code] #include <stdio.h> #include <math.h> int Calendar(int daycode,int year,int leapyear); void dec_bin(int bin) { int x, y; x = y = 0; for(y = 7; y >= 0; y--) …

Software Development c matrix-multiplication
Member Avatar for jjepoy
0
103
Member Avatar for scantraXx-

Hey guys. This is really frustrating because it seems easy but I can't seem to find the correct function to remove this element of my string. [code] void set::display() const // pre : none // post : displays the elements of this set enclosed in braces and // separated by …

Software Development c++
Member Avatar for Poincarre
0
158

The End.