199,114 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for shaunchu

All right. So I'm taking an assembly language class, but we apparently also need to use a smattering of Unix and C. Our assignment is to create a function that converts from the input base to a listed base. Example of a call: ConvertToBase(057,10) should return 47 (the input was …

Member Avatar for cse.avinash
0
114
Member Avatar for srishti14
Member Avatar for mb01a
0
75
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 …

Member Avatar for Taywin
0
180
Member Avatar for janice91

[size="5"][size="4"]Dear experts, I am doing my assignment on finding how many numbers in [b]N[/b] digit satisfy [b]K[/b] requirement. However, when i am testing the code, i could compile it but i couldn't execute it. I am wondering if i made mistake in the [code]x = result + y; // add …

Member Avatar for Taywin
0
140
Member Avatar for meli123

Ok so I played around with this for a while and it works..but I wana know the logic [CODE]#include <iostream> using namespace std; int main() { int number; int max = 0; cout << "enter number: "; cin >> number; while (number !=0) { if ((number % 10)> max) //rem …

Member Avatar for Anirudh Rb
0
267
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(){ …

Member Avatar for stevanity
0
187
Member Avatar for meghanetpulse7

So, i saw these websites which create graphically rich text. You put simple text , hit "start" and sysem generate completely new text with different colors. Something qhich require photoshop tobe used. I want to create a website around this same concept. I looked into some options and imagemagick came …

Member Avatar for diafol
0
150
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 …

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 …

Member Avatar for Narue
0
230
Member Avatar for sohiabmaroof

hi i studied ur post in this link [url]http://www.daniweb.com/software-development/java/threads/118194[/url] but i m unable to edit the default table here is its code [CODE]jTable1 = new javax.swing.JTable(); [B]jTable1.setModel(= new javax.swing.table.DefaultTableModel([/B] new Object [][] { }, new String [] { "Book Name", "Author Name" } ) { Class[] types = new Class …

Member Avatar for 115harman
0
211
Member Avatar for fonzi

Hey all =] , I am having a few problems ending this coding homework and i would love if you could help me on how to solve this problem, well my problem is that i try to print the toStirng in my constructor class and for the months it prints …

Member Avatar for 115harman
0
150
Member Avatar for titosd

Hello, I need to calculate dates, e.g: if i have this date on string "12-07-2008" and I want to add to this date 17 month. How can I calculate this date. are the a func that do this calculate ? or I nedd to write it ? Thank you

Member Avatar for diafol
0
145
Member Avatar for CalculusG

there are xls files saved in a folder and all of them have have values in the 1st, 2nd, and 3rd columns. in the folder there are about 100 excel files, the first five number of excel file names represent the patient id.there are about 5 to 10 excels for …

Member Avatar for TrustyTony
0
209
Member Avatar for JoshuaBurleson

How would I access the string that is in the [1] position of a tuple at a given index of a listbox. What I'm trying to do is something like this:[CODE] a=Lb1.curselection()[1] a=int(a) print(Lb1[a])[/CODE] Lb1 is obviously the listbox. This particular attempt claims 1 is out of range "although I …

Member Avatar for TrustyTony
0
204
Member Avatar for N1GHTS

Lets say I have a shared library in Linux, written in C, with a single function that simply returns the pointer to a string literal. [code]void *ReturnObject() { return (void *)"\xFA\x03\x44\x10\xE0"; }[/code] When this library is loaded by the host application at runtime and this function is called, is the …

Member Avatar for N1GHTS
0
152
Member Avatar for max4444

sorry if this seems silly, i am trying to learn php and mysql i have tried a few times and all i do is crash the code. What is am trying to do is change the cell background colour to green if echo $row['s1']; is "2" and red if "3" …

Member Avatar for max4444
0
95
Member Avatar for Rupindersingh

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

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 …

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, …

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 …

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 …

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.

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 …

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

Member Avatar for debasisdas
0
135
Member Avatar for axxxpua

Hey, I am creating a website with two forms which contain checkboxes and displays and sends the values input by the user to display on the page as well as save onto a database. The languages I'm using are xhtml, php and sql. The problem for me is that only …

Member Avatar for axxxpua
0
205
Member Avatar for calebcook

Hi. I need a function which will convert a decimal to a fraction, so that I can put in [CODE]echo dec2frac(1.75);[/CODE] and it'll output 1 3/4. Any suggestions? Thanks

Member Avatar for diafol
0
3K
Member Avatar for lianpiau

I want write a text file event log. but when i want add second record(from datagridview) to text file, it will replace 1 record. [CODE]private void btnAddGoods_Click(object sender, EventArgs e) { SqlCommand cmdCheckID; SqlDataReader dtrCheckID; foreach (DataGridViewRow r in dataGridView1.SelectedRows) { string PONO = r.Cells[0].Value.ToString(); string DeliveryDate = r.Cells[1].Value.ToString(); string …

Member Avatar for nick.crane
0
282
Member Avatar for coolbeanbob

Hello Everyone, I am getting the following error on line 12. "variable or field 'start' declared void" I have deleted quite a bit of code, in case your wondering what the program is supposed to do. I don't understand why the compiler would have a problem with this function being …

Member Avatar for coolbeanbob
0
469
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 …

Member Avatar for Ancient Dragon
0
138
Member Avatar for cent91

hello everyone. i read about the functions abswrite() or absread() etc, but these fucntions are not supported in modern compilers. i would like to know what are the modern alternatives of these functions in c++?? btw i am using visual studio 2010 and rad studio xe.

Member Avatar for cent91
0
331
Member Avatar for Khyati Patel

When I click the Submit Button in a form it should check whether 6-7 textboxes,2-3 pictureboxes nd combobox which resides in that form should not be empty..? How it is possible in Short to provide this validation..???

Member Avatar for Mitja Bonca
0
97
Member Avatar for Brenhines

Hi, I downloaded AecRijndael v.1.16 encryption component for Delphi 5 from Torry.net. There is no help included and I can't work out how to use it. When it is installed it has three pertinent properties. Cyphermode - which can be ECB CBC CFB OFB Keysize - which can be SMALL128 …

Member Avatar for Brenhines
0
262
Member Avatar for shrutipopat

how to develop face detection application in c#? what technique to use for image comparision?

Member Avatar for Khyati Patel
0
66
Member Avatar for user543820

Hi! I want to create my own list of keywords so that if I write spells of any keyword wrong, it get's underlined like in usual compilers. How can I create a list and create an underline command?

Member Avatar for Mitja Bonca
0
88
Member Avatar for Virangya

hi, how can i trigger an update query on a certain record if that record was not update within last say: 1 minute???/ can i doit without using any scripting? if can't then php.

Member Avatar for debasisdas
0
124
Member Avatar for chiiqui

Recently I've just finished my first term in college about java programming, and even before I started my First term in college I already know stuff about java, but to keep this short, all I want to know is where do I go now? what topic should I study? should …

Member Avatar for chiiqui
0
399
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 …

0
95
Member Avatar for Knoxx

i've been working on my minesweeper project and i seem to be running into a little trouble. My program compiles but my problem is setting the mines on my grid. I have used a random generator to set the positions but i dont know how to implement it on my …

Member Avatar for NormR1
0
183
Member Avatar for neelpulse

Hello all, I was trying this problem of checking if the input integers can be ordered using the STL implementation of the stack. The program reads from a file named "input.txt" which in its first line has the number of integers that follow in the second line. The second line …

0
166
Member Avatar for TrustyTony

Roman numbers is a standard programming exercise, to give it a small twist, we input roman numeral, turn it to value and prepare minimal version of it using the substraction rule. Correctness of the input is not checked so Garbage in - Garbage out.

0
338
Member Avatar for richa kushwaha

i want the code of gridview in terms of displaying selected value in another page on textbox.............. reply me soon. .......................

Member Avatar for dnanetwork
0
89
Member Avatar for mikejs

Hi I have a number of forms which have a common menu strip rather than copy the control onto each additional form is it possible to just call the menu from another form ?

Member Avatar for mike2098
0
671
Member Avatar for davy_yg

I wrote the following codes: [CODE] <?php $nama = ('a' => 'John', 'b' => 'James', 'c' => 'Ray', 'd' => 'Lime', 'e' => 'Kit') sort $nama reset($nama) $i=1; do { $i++; echo "The key is " . $i . "and the value is “ .$i <br />"; } while ($i<=5); …

Member Avatar for pritaeas
0
87
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 …

Member Avatar for farooqpathan
0
211
Member Avatar for georgeoshardo

I don't know if I can't find my problem, or I'm just getting my keywords wrong when searching for a solution, but I can't solve it. I'm getting problems with adding values to lists, here is my code: [CODE=Python]x=[] a=raw_input ("Hello, add your first database entery") b=raw_input ("Hello, add your …

Member Avatar for TrustyTony
0
166
Member Avatar for wright67uk

Ive been playing around with a couple of scripts both of which work well on their own. The first is a basic alertbox that uses a hotkey; [Code] <script> $(document).jkey('o', function(){ alert('Pressed o');}); </script> [/code] The second is a custom alert box which displays after clicking on a link. How …

0
143
Member Avatar for hiyatran

.innerHTML is used when you trigger an event but if you just want to display the text how would you go about do it?? I don't want to used document.writeln because it will "[B]Wipe out all the contents[/B]" of that page. So I have some HTML text and javascript text. …

Member Avatar for LaxLoafer
0
174
Member Avatar for tyu1996

Hello there! I just start to learn the basic of C++ in/output functions. I wrote a program: [CODE]#include<iostream> using namespace std; int main() { int ptype; char options; char finops; do{ cout<<"Select a printer type: "; cout<<"\n1. HP printer"; cout<<"\n2. Dell printer"; cout<<"\n3. Brother printer"; cout<<"\nYour choice : "; cin>>ptype; …

Member Avatar for Ancient Dragon
0
154
Member Avatar for Brissac

I have drawn a grid in vb2008 so that each rectangle represents a 15 min period of a day. Time slots are shown by filling in the grid in different colours using the draw rectangle method. No problem so far. Now I want to discover the colour of any given …

Member Avatar for Brissac
0
122
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 …

Member Avatar for peter_budo
0
132

The End.