43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for coolbeanbob

Hello All, I am trying to return three integers from the load function below. Right now, the program only returns the throughput variable. How do I use this function so it returns all three? (I am trying to implement this in a larger project where I cannot call the load …

Software Development algorithm c++
0
77
Member Avatar for OblibSystems

I'm looking to further my VB skills but have a writers block on what to create. So if you have any idea or suggestions which i could use for my next project please post a reply. Thanks

Software Development visual-basic
Member Avatar for mb01a
-1
174
Member Avatar for aaronmk2

I am trying to get the height of a BST using a stack. I was told that I should use preorder and measure find the largest size of the stack. However, this does not seem to work. Any ideas of what I am doing wrong. [CODE] int PBT::maxDepth() { if …

Software Development c++
Member Avatar for Taywin
0
180
Member Avatar for chiiqui

[CODE]public class Briefcase{ private int amount; private String face; private boolean isOpen = false; public Briefcase(int amount,int cNumber){ this.amount = amount; this.face = Integer.toString(cNumber); } public void removed(){ isOpen = true; face = "X"; } public boolean isRemoved(){ return isOpen; } public int getAmount(){ return amount; } public String toString(){ …

Software Development java
Member Avatar for stevanity
0
187
Member Avatar for MoZo1

This prints NULL: [CODE=Java]String sss = System.getSecurityManager() == null ? "NULL" : System.getSecurityManager().getClass().getName(); System.out.println(sss);[/CODE] And this throws exception: [CODE]ServerSocket serversocket = new ServerSocket(80);[/CODE] This one: [CODE]Exception in thread "main" java.lang.Error: java.net.BindException: Permission denied at httpserver.HTTPServer.main(HTTPServer.java:68) Caused by: java.net.BindException: Permission denied at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:383) at java.net.ServerSocket.bind(ServerSocket.java:328) at java.net.ServerSocket.<init>(ServerSocket.java:194) at …

Software Development client-server cybersecurity java os-x
Member Avatar for MoZo1
0
425
Member Avatar for Triarius

Can somebody please tell me what am I doing wrong? I have created a so called "game" and I have decided to add some random events. That's where I got this nasty error which I do not know how to dispose of. [CODE] #ifndef FUNC_H #define FUNC_H #include <iostream> #include …

Software Development c++
Member Avatar for Narue
0
230
Member Avatar for Rupindersingh

What is EOF. How is it generated? Which key corresponds to "end of file" on the keybord??

Software Development c
Member Avatar for Rupindersingh
0
121
Member Avatar for Rupindersingh

Can anyone please debug the following binary tree program, it flashes two errors: 1: Type mismatch in redeclaration of 'strdup' 2: Tpe mismatch in redeclaration of 'talloc' [CODE]#include<stdio.h> #include<ctype.h> #include<string.h> #define MAXWORD 100 struct tnode *addtree(struct tnode *, char *); void treeprint(struct tnode *); struct tnode { char *word; int …

Software Development c data-structure
Member Avatar for Narue
0
246
Member Avatar for priyamtheone

Hi, I'm trying to render a checkbox in a datagridview column header so that when the checkbox is checked/unchecked all the cells in that column should be checked/unchecked accordingly. The datagridview is bound to a database table but the column containing the checkbox header cell is unbound. The problem is, …

Software Development asp.net vb.net
Member Avatar for priyamtheone
0
988
Member Avatar for priyamtheone

Hi, we all know how to dock or anchor controls so that they resize themselves accordingly when a form is resized. It works fine till we have rows of controls on left and right size of the form. But what if have three columns (Columns as in visual sense. I'm …

Software Development asp.net vb.net
Member Avatar for priyamtheone
0
250
Member Avatar for priyamtheone

Hi, I have an editable datagridview that's been databound with dataadapter and datatable, and a normal button on a form. When i edit the dgv's cells and click the save button it fires the datagridview_cellvalidating event and if the cell validation is correct it updates and saves the current record …

Software Development vb.net
Member Avatar for priyamtheone
0
184
Member Avatar for priyamtheone

When a button is focused by pressing Tab key, a rectangle appears on it. Even if the button's TabStop property is set to false, when the button is clicked with mouse the rectangle appears. Is it possible to stop the rectangle from appearing? Please help. Regards.

Software Development vb.net
Member Avatar for priyamtheone
0
148
Member Avatar for vb.net_beginner

I have a project where I want to be able to multiply 2 values from a database. So I have a combo box where the user is able to select from a set of data. This displays the data relating to the selected row in text boxes on the windows …

Software Development vb.net
Member Avatar for vb.net_beginner
0
152
Member Avatar for JRCharlie

Hi I have an application that has an Ms Access 2007 DataBase which runns great if access is installed. Is there any code that I can use in vb that I would be able to run access with out installing it. Tanks in advance

Software Development microsoft-access vb.net
Member Avatar for debasisdas
0
135
Member Avatar for king03

Can someone please explain to me how the pointers were used in the line w/ the red font. I do not understand where the pointer pertains to and why there is still a need for that. Also why is it that a "+" sign was used to combine two array …

Software Development c++ ios
Member Avatar for Ancient Dragon
0
138
Member Avatar for vb.net_beginner

I have linked a database to a windows form. I have dragged the field objects onto the windows form. Prior to doing this I changed the first field object to a combo box and the last field object to a list item. I have proceeded with the following settings for …

Software Development linked-list vb.net
0
95
Member Avatar for BleepyE

Hi, i was just wondering how I get user details from a user table from a mysql database. Ive already worked out how to connect to the server, im just wondering how to import the data into a datagrid. Thanks Heres my current code [CODE]Imports MySql.Data.MySqlClient Module sql Dim Connection …

Software Development mysql vb.net
Member Avatar for farooqpathan
0
211
Member Avatar for stevanity

Im a Junior in college now (Computer science Engineering). Im planning to start my Java certification. Im comfortable with programming in java. Im familiar with most common API and also with swing and Collections, Concurrency, etc. and also with OOPS concepts. So I thought I might take an entry level …

Software Development api engineering java java-swing
Member Avatar for peter_budo
0
132
Member Avatar for ihatehippies

I made a simple ThreadManager class that receives tasks and spawns threads to complete the tasks. Currently it keeps all the threads alive until I explicitly set threadmgr.waiting=False and all of the tasks are complete. I'm trying to eliminate the need for the former. What I would prefer is that …

Software Development python
Member Avatar for ihatehippies
0
177
Member Avatar for jefroxnergal

So I have this two forms.. I have a command button on the second form that when I clicked, a message box pops out and ask you if you want to go in the first form. The 'Yes' worked but the 'No' doesn't work, the first form still shows.. can …

Software Development vb.net
Member Avatar for Unhnd_Exception
0
364
Member Avatar for countycowpoke

I am trying to send registration/ activation information via email, but don't want to store my authentication within the vb.net app and therefore not wanting to use .NET SMTP. I have the below php script that works from a website, but I can't seem to get the variables sent to …

Software Development email php vb.net
Member Avatar for countycowpoke
0
397
Member Avatar for SteveWaugh

Hi, I've been trying to sort a list in ascending order for a problem in class, but my for loop isn't working. [CODE]import java.util.*; public class AscendingOrder { public static void main(String[]args) { int min; Scanner input=new Scanner(System.in); int[]list; list=new int[10]; int[]list1; list1=new int[10]; System.out.print("Enter 10 integers: "); for (int …

Software Development java
Member Avatar for SteveWaugh
0
236
Member Avatar for geeksforgeek

what is void pointer? I am unable to understand, please help me

Software Development c
Member Avatar for geeksforgeek
0
124
Member Avatar for maroom

Hello below is the progra... i cann access araylist in the main class function.... like "LoanBook" see that in the code.... plz recity meeee folks... thanking uuuu =--------------------------------------------------------------------------= [ICODE] import java.util.ArrayList; import java.util.Scanner; // To take customer detais by using Constructor and Customer deatils class Customer { int cusId; String …

Software Development java
Member Avatar for JamesCherrill
0
343
Member Avatar for saurav2007

I got the problem with this code.. can anyone explain me the output.. main() { int i = 258; int *iPtr = &i; printf("%d %d", *((char*)iPtr), *((char*)iPtr+1) );}

Software Development c
Member Avatar for saurav2007
0
124
Member Avatar for ktab

Hello all I was wondering how i could pass the following SLQ function to my datatable: Select sum(Quantity) from Purchases where transaction_mode=1 Thank you

Software Development vb.net
Member Avatar for ktab
0
252
Member Avatar for cent91

i wanna use the Sleep fucntion in a CLR vc++ app, if i include windows.h it gives a huge list of errors, if i use _sleep() then it dowsnot work at many systems since its obslete. what should i do? i am bound to use CLR bcoz my code uses …

Software Development asp.net c++ visual-studio
Member Avatar for cent91
0
448
Member Avatar for Oneryavuz

i have a form and i need to use mouse scroll for moving my panel. so i need to create event ( :) ok ok im not sure ) and No matter where the selected i need to use this event when i use mousescroll :) I hope i was …

Software Development vb.net
Member Avatar for Oneryavuz
0
162
Member Avatar for Ehtesham Siddiq

hi, My application is in VS2008 coded in vb.net.I have a form with a datagridview which loads data from databaase.there is one column where data is stored separated by comma's.Like Name,Surname,LastName name this column as [B]Testing[/B].I have a checklistbox on another of my form.When the user selects a particular row …

Software Development vb.net
Member Avatar for Ehtesham Siddiq
0
850
Member Avatar for janice91

[I]Dear experts, I am trying to code out my assignment but i made a problem with my [CODE]break;[/CODE] within my [CODE]if (operator.equals(zero))[/CODE]. i have received compilation error stating the following: [/I] [B]HelloWorld.java: break outside switch or loop[/B] [I]Appreciate if someone can point out my mistake. Thank you.[/I] [CODE] import java.util.*; …

Software Development java
Member Avatar for Muhasin
0
240
Member Avatar for D33wakar

I wrote a procedure to read integers(unsigned) from stdin and store it in a variable. I wanted it to handle backspaces too. so I made some adjustments but unfortunately it didn't work.--see line 14 in the code [CODE]get_num: ;(function get_num: read integers from stdin) push ax ;save all registers push …

Software Development assembly
Member Avatar for D33wakar
0
1K
Member Avatar for Intrikate

So this is my first post and I have only begun using python. One of my first assignments is to design a program which will count the most used words in the given text file. In my case we are using the Declaration of Independence. Here is what i have …

Software Development file-system python
Member Avatar for JoshuaBurleson
0
3K
Member Avatar for RideFire

I know C++, but I'm trying to learn C. Anyways, what am I doing wrong here. If I delete the line with 'scanf', it will compile so obviously I'm doing something wrong there. Anyways... [CODE]#include <stdio.h> int main() { int x; printf("enter a number\n"); scanf("%d", &x); printf("Your number is: %d\n", …

Software Development c
Member Avatar for RideFire
0
98
Member Avatar for emrecaglarhosgo

need a[CODE][/CODE] in C that converts any given BCD to GRAY Code, and any given GRAY to BCD. I am a started so little halp ;)

Software Development c
Member Avatar for aFg3
0
174
Member Avatar for NexG

Here is the code I have so far. I'm not sure how to proceed from here. My goal is to make a program that outputs the probability of n amount of coin tosses, where n is the user input. [CODE]import java.util.Scanner; public class toss{ public static void main(String[] args){ Scanner …

Software Development java
Member Avatar for NexG
0
2K
Member Avatar for isebas

Im an AP computer science studen (we started two weeks ago so I dont know much). For homework we had this problem: " Write a program that will let you enter your gender (M or F) and your height in inches and will then tell you wether you are tall,medium …

Software Development java
Member Avatar for isebas
0
236
Member Avatar for nickliutw

I'm programming a program that add feet and inch together(assume feet and inch are integer). I run into a compiler error. I know the problem is I'm missing the returning statement. But I don't know what to return. [CODE]public class Distance { private int feet; private int inch; public Distance() …

Software Development java
Member Avatar for hfx642
0
122
Member Avatar for PM312
Member Avatar for abders

I just finished a program, it worked perfectly, then I changed a bit of it, and now it won't work at all, even if I change it back. [CODE]self.secret_txt = Text(self, width = 35, height = 5, wrap = WORD).grid(row = 3, column = 0, columnspan = 2, sticky = …

Software Development python
Member Avatar for abders
0
210
Member Avatar for ixmike88

hello, i started programming again after a while and i made this just to pass time/relearn the basics and stuff there is a weird issue that i can't figure out, when i input row 0 column 2 or row 1 column 2 it will fill the spot for both the …

Software Development c++
Member Avatar for coltonbyu
0
837
Member Avatar for judithSampathwa

hi i have a datetime picker in user control form in C#. when i load the user control i want the datetime picker to disply no value in the datetime picker box. the code is below. [CODE] dpEDate.Format = DateTimePickerFormat.Custom; dpEDate.CustomFormat = " "; [/CODE] and when the user control …

Software Development asp.net
Member Avatar for judithSampathwa
0
237
Member Avatar for kevinyu

I'm try to make a program that will ask a user to input a string then the string gets masked (by asterisks) and later, guess every letter (character) of the masked word until the string is fully unmasked (a la Hangman). But my problem is, after the first unmasking, the …

Software Development c++
Member Avatar for pseudorandom21
0
205
Member Avatar for mcconnell_34

Hey, I need to know what identifier i can use instead of string that will output all of the words that you type in the program. For example: if i was to use string ans1; cout <<"How are you?: "; cin >>ans1; and for my answer i typed "very good"...it …

Software Development c c# c++
Member Avatar for Narue
0
181
Member Avatar for JoshuaBurleson

I'm having an issue displaying images in tkinter, I've tried the methods suggested by effbot and a couple other sources to no avail. Here are a couple ways I've tried so far:[CODE] gmail=PhotoImage('gmail.gif') self.glab=Label(self,image='gmail.gif') self.glab.image=gmail self.glab.grid(row=3,column=4) gmail=PhotoImage('gmail.gif') self.glab=Label(self,image=gmail) self.glab.image=gmail self.glab.grid(row=3,column=4) self.glabim=PhotoImage('gmail.gif') self.glab=Label(self,image=self.glabim) self.glab.grid(row=3,column=4) gmail=PhotoImage('gmail.gif') self.lab=Label(self,image=gmail) self.lab.image=gmail self.lab.pack() [/CODE]the last one …

Software Development image python tkinter
Member Avatar for JoshuaBurleson
0
20K
Member Avatar for challarao

Hi, I got a doubt about for loop while i was thinking about time complexity.... Is increment operation in for loop a two steps operation i.e., increment i and assign it the i or an one step operation just like just incrementing it? Is there any pointer operation involved in …

Software Development c
Member Avatar for challarao
0
145
Member Avatar for Asotop

Hey. I'm creating a second degree equation solver in the windows form application.(In the form ax^2+bx+c= 0) And the basic programming is complete but I'm having problems making it bullet proof, in case the user type in the wrong number and type in a =0. So basically i have an …

Software Development gui
Member Avatar for skatamatic
0
140
Member Avatar for ntrncx

i am fixing something and i have that fuction in it [CODE]bool DeckOfCards::checkFlush(const Card checkCards) { counter=0; cardCheck=" "; for(int x=1;x<5;x++) { cardCheck=checkCards.suits[x]; for(int y=0;y<5;y++) { found=hand[y].find(cardCheck); if(found!=string::npos) { counter++; } } if(counter==5) { return true; } counter=0; } }[/CODE] it goes here: [CODE]bool result=false; if((result=checkFlush(checkCards))==true) { return winner=5; }[/CODE] …

Software Development c++
Member Avatar for ntrncx
0
154
Member Avatar for nav010

Hello Everyone Currently, I am using system("dir") method to call system calls. I want to know any other method for system calls in VC++ 2008. How can I call system call in VC++2008 without using system(" ") method? Any help would be appreciated Thanks

Software Development c++
Member Avatar for krishnad
0
142
Member Avatar for rexgb_34

i have a problem in VB6. i have a frmMain, DataEnvironment and Datareport. My form have thirty (30) textboxes to fill-in. at first it all works fine since i filled in only few txtboxes, but when i filled-in all textboxes with many data i could not save the data anymore... …

Software Development visual-basic
Member Avatar for rexgb_34
0
132
Member Avatar for TIP.Synergy

i want to listview editable it's possible?? please help

Software Development listview vb.net
Member Avatar for TIP.Synergy
0
124

The End.