132,726 Archived Topics
Remove Filter ![]() | |
I just downloaded a document containing some pointers exercises. The statement of One of its questions is as follows: [COLOR="Green"]Write a function that returns a pointer to the maximum value of an array of double's. If the array is empty, return NULL. double* maximum(const double* a, int size); [/COLOR] It … Software Development c++ | |
How can I get a new line in messagebox? I have two TCHAR arrays, I can print both to separate MB but not both to one This is what I'm looking for (if you can understand what I'm trying) It obviously does not work. [CODE]TCHAR one[] = _T("file\\path\\here"); TCHAR two[] … Software Development c++ visual-studio | |
SA : I ask if anyone can help me in this algorithm , it is suppose that this algorithm find all the cycles in given graph . but there exist a bug it return only one cycle not all : [CODE]public class Main { public boolean funcs(boolean Graph[][]){ ArrayList<ArrayList<Integer>>l=new ArrayList<ArrayList<Integer>>(); … | |
Does C# have a conditional compiler directive for debug mode? I have code that I want to run only if I'm debugging. Software Development ![]() | |
my professor gave a .o file and we are supposed to write a function that links to his file in ssh. his code is struct grades { int lab; int prog; int mid; int final; char name[10]; } void fillArray(grades a[ ], int & num); these two are given and … | |
I am new to c++ and i am supposed to do a test case using my stub with hand calculated mean & standard deviation of number of students that are saved in the .o file in linux. my code is [code] #include <iostream> #include <fstream> #include <cmath> using namespace std; … | |
Hi, I've got a login form that authenticates a user against a database. I'm trying to implement a function whereby if a user enters 3 invalid passwords in succession, a message is displayed and the application shuts down. I'm using a [B][I]for[/I][/B] loop 2 achieve this, but i can't get … Software Development | |
Ello, Does anyone know of some 3rd party libraries that can simplify working with XML through Java, because as we all know the normal SDK's libraries are terrible.. Thanks in advance! | |
Hi there!... i was seeing some codes in Python, but i can't understand it, so... i really don't want learn phyton, by that reason i want to know some things (specific things) for try convert it, now... if someone can convert it for me, i'll be sooo glad :P. Here's … | |
I have been working with lists for a year now, but I am inconsistent with the way I have them setup. I want to know the standard. Let's say you have a computer represented as pixel colors in the form of a list. To simplify it let's just use numbers … Software Development python | |
Hi guys, I have a windows form frm1 that calls another form frm2 by the following code: [CODE] this.hide(); frm2 new_frm2 = new frm2(); new_frm2.ShowDialog(); this.Close(); [/CODE] it takes about 5 sec for the frm2 to show so I'd like to use waitcursor. I found that the waitcursor can only … Software Development c c# c++ operating-system | |
Can anyone give me these solution PLZ.[TEX][/TEX] [CODE]import string STUDENT_ID = 0 STUDENT_FIRST_NAME = 1 STUDENT_SECOND_NAME = 2 STUDENT_MARK = 3 def inputMarks (mList): print "inputMarks not yet implemented" def calcGrade (mark): print "calcGrade not yet implemented" def printIndividualRecord (record): print "printIndividualRecord not yet implemented" def printAllRecords (mList): print "printAllRecords … Software Development python | |
Here my question I need a decoder for binary codes from a text file but the problem is when I put a space in the text file tpos values crash I know what the problem is the while(fgets(buf, 8, fb) != NULL) because some binary codes are only 6 characters … Software Development c | |
good morning, I made a little VB app to shutdown a laptop after it has been powered on for 2 1/2 hours, and giving the user a little over 8min warning that it is about to be shutdown. However I have nothing in place to stop the user from restarting … Software Development vb.net | |
please could some one understand what i am saying i need a program that can count number of digit in a number given by the user .for example if we see123 it has 3 digits...? Software Development python | |
Hello!!! I read 3 c++ books on dos and what now? I think i want now to programming on windows but which language i can programming ? Software Development c++ | |
Hello, forum. My question is: how can I format my output when outputting in JTextArea. I want to have the same functionality as System.out.format has (custom spaces between values). Maybe it is possible to print PrintSream objects in JTextArea? I am currently using append(String s) method but I am not … Software Development java java-swing | |
Hi all I think that I should start this by saying that I am fairly new to C++. Currently, I can only write basic OOP programs. However, I have been given a task at work to compile and link some old code that we have (roughly 10 years old) to … Software Development c++ oop visual-studio | |
Just a beginner asking for guide. :) [CODE]private void button2_Click(object sender, EventArgs e) { for (int i = 0; i < listBox1.Items.Count; i++) { listBox2.Items.Add(listBox1.Items[i]); listBox1.Items.Remove(listBox1.Items[i]); } }[/CODE] This is the method I made for moving all the items in a listbox to the one next to it. Apparently there's … Software Development | |
Listing All The Installed Softwares In Computer Using .Net Don't Forget to add [B]Imports Microsoft.Win32[/B] for complete thread with screen shots check here: [snipped] | |
Hi, I'm deploying a VB.NET application with Inno installer. In the past I've used the one Click installer but now require a setup with more options. What needs to be included when deploying a VB.NET application (developed in VS 2010). I understand that the .NET Framework needs to be installed … Software Development vb.net | |
Hi, I was wondering if someone could help me. I am using java SWT and am trying to output a list of files and its properties to the screen. I have a file browser popping up and when i select a directory and click ok it outputs the path and … Software Development file-system java | |
A Function To Find Strings Between A Given Word/String For example : let's say you have following Text: Title Author Product* ~~~~~ ~~~~~~ ~~~~~~~~ "Aurora's Eggs" Douglas Niles Story (Dragons 2) The Dragons Douglas Niles Novel The Kinslayer Wars Douglas Niles Novel The Qualinesti Paul B. Thompson Novel & Tonya … Software Development | |
hi i am using this code to get the checked treeview node name.... it goes inside the loop only if the parent node is selected... I have to get the node name if any node is checked... this is the code i am using.. [CODE] public void CheckedNames(System.Windows.Forms.TreeNodeCollection theNodes) { … Software Development | |
Hello I have some doubts in listveiw I have a listview with two columns, i want to add items to the first column which are given programmatically and the other column is from database... like [CODE] column1 column2 apple from database orange " banana " so on " [/CODE] can … | |
Hi, I'm new to VB and I am supposed to be writing a program for my instructor using VB 2008. It is sort of like a quiz program. You build the "light bulb" program but instead of names and colors, it consists of two forms. Question 1 with a "next" … Software Development vb.net | |
Hi All, I have an xml [CODE] <?xml version="1.0" encoding="UTF-8"?> <columns> <column> <name></name> <displayname></displayname> <attributes> <attribute> <name>width</name> <value>100</value> </attribute> <attribute> <name>text-align</name> <value>left</value> </attribute> </attributes> </column> <column> <name>VersionCode</name> <displayname>Version Code</displayname> <attributes> <attribute> <name>width</name> <value>200</value> </attribute> <attribute> <name>text-align</name> <value>right</value> </attribute> </attributes> </column> <column> <name>MaterialType</name> <displayname>Material Type</displayname> <attributes> <attribute> <name>width</name> <value>100</value> </attribute> <attribute> … Software Development xml | |
I have been trying for some years now to learn Xcode in order to create Mac OS and now iPhone apps. I'll spare you readers the misery I've experienced and summarize by saying it hasn't gone well. One of the routes I've attempted is to read Aaron Hillegass' book. To … Software Development assembly ide iphone objective-c os-x | |
Hi, I've been trying for the past couple of hours to get this modal dialog box working, it is basically supposed to ask for text input and once entered will open a message box with that text. At this point though I'd be happy to just get the box up … Software Development c++ visual-basic | |
Hello Quick question: Does anyone know why my window doesn't show frame? Thank Mark [CODE] import sys from PySide import QtCore, QtGui class UI_CMDTester: def __init__(self): self.__app = None self.__win = None def init(self, \ w_title, \ w_width, \ w_height): self.__app = QtGui.QApplication(sys.argv) self.__create_win(w_title, w_width, w_height) sys.exit(self.__app.exec_()) def __create_win(self, w_title, … Software Development python | |
Hi, Can someone help me pls why this doesn't seem to work? [CODE] private void dataGridViewempl_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (dataGridViewempl.CurrentCell.ColumnIndex == 6) { CheckBox deletebox = new CheckBox(); deletebox = (CheckBox)dataGridViewempl.CurrentCell.Value; if (deletebox != null) { if (deletebox.Checked == false) deletebox.Checked = true; else deletebox.Checked = false; } … Software Development | |
Dear all, I have tested my code in order to pass single value to single parameter field in crystal report from VB.NET Form, it is ok but the problem is that I want to pass multiple values to only one parameter field called "Product Name" and it displays only one … Software Development dataset open-source vb.net | |
[CODE]import java.io.File; import java.io.IOException; import java.io.FileOutputStream; import java.io.FileNotFoundException; import java.awt.TextArea; import java.awt.Font; import java.awt.Color; import java.awt.Image; import java.awt.Toolkit; import java.awt.Canvas; import java.awt.Graphics; import java.awt.FileDialog; import java.awt.event.*; import java.awt.image.BufferedImage; import javax.imageio.ImageIO; import javax.print.DocFlavor.URL; import javax.swing.JFrame; import javax.swing.JOptionPane; import javax.swing.JPanel; import javax.swing.JLabel; import javax.swing.JButton; import javax.swing.JTextField; import javax.swing.Timer; import javax.swing.event.MouseInputAdapter; import javax.swing.*; … Software Development java java-swing | |
Hi there, I have been having some problems with my Visual Basic. In trying to figure that out, un-installing, and reinstalling, running virus scans, etc, I have lost a lot of my time to get this assignment done. I would just keep messing around with it and try to be … Software Development file-system vb.net visual-basic | |
hi..i am new to perl language..ive given a task to extract some info from a logfile and print the extracted to a new file..what make it difficult is because it need to extract vetically..for example below with some conditions; [ICODE] ------------------------------------------------------------------------ C H W S Z S W T C … Software Development perl | |
Hi All, I have one scenario, In xslt i have used a input tag of type="button" with id="button1", Now in xslt if a condtion is met, suppose <xsl:if test="price > 10"> i need to disable the button1 Can any one please suggest me how to achieve this using xslt. Thanks … Software Development xml | |
I'm trying to replace values in an array while removing extra values. This is what I have, but it doesn't seem to work and I have no idea why. I'm just challenging myself to not use any Strings in my project. This will be the last step. [CODE]/** * * … Software Development java | |
I have been working on a massive project for awhile now to help do the scheduling at my work. One now I am working on a form design for entering in data to create a shift. Part of this is the start time and the end time of the shift. … Software Development | |
Hi there, I am working with a 2D array, my c++ program reads input from an external file and stores it into a 2D array. Say, for example, this is my input file: 9 5 6 2 4 1 0 8 6 7 3 5 2 9 5 8 My … Software Development c++ | |
Hi guys , I have the following code : [CODE]x=int(input())[/CODE] If I get a string from the user string ,list or a double , then I'd an exception . Is there a way to get any input from any type , and store it within "x" , even though I … Software Development python | |
Alright, I am working on this for an assignment and I cannot seem to figure out where I went wrong... My first problem, whenever I input the CC number, the only one it accepts is the last one in my text file... My second problem, when it does accept a … Software Development file-system python | |
hello the problem is about user when click button coin and it will display the decimal number and suppose to be like this : 0.10 also , i have made code about notes amount like RM 1.00 and RM 5.00 . here it is: [CODE] Private itotal As Decimal = … Software Development vb.net | |
Hi All, i have basic python knowledge please let me know how to get started with jython please let me know where can i find good online books for jython, how to write some small programs and how to run them Software Development python | |
Basically, I want to make a windows form application to be able to view and/or manipulate a postgres database. My first question is if using c#/winforms is an okay way to do this? If not, any suggestions? One of my co-workers suggested using drubal to make an interface to do … Software Development database-design user-interface | |
how i add a two buttons and display in a textbox with the help of third button? Software Development | |
Hello guys, I am trying to declare a two dimensional array in C++ on runtime. For this purpose I am asking the user about how many rows and columns should be created in the array. I have written the following code for this purpose. Apparently it is working just fine. … Software Development c++ motherboards-cpu-ram | |
Let me tell you I already got the tutorial on how to do this [url]http://db.apache.org/derby/docs/10.3/adminguide/tadminconfig814963.html[/url] But sincerely speaking I did not understood how to do any of the two methods described. Let me tell you my confusions and what I didn't understood and I am developing my project in netbeans. … Software Development apache java java-netbeans | |
Hi. I'm trying to print from datagridview but I don't understand how to do it. I've found some coding and this is the best for me. [URL="http://www.vbnettutorial.net/?Id=132&Desc=VB.Net-Print-Datagridview-in-WinForms"]http://www.vbnettutorial.net/?Id=132&Desc=VB.Net-Print-Datagridview-in-WinForms[/URL] But the tutorial is using server and I'm using this to call my table from Acces to datagridview. I don't know where to … Software Development dataset open-source vb.net visual-studio | |
Well i just tried to turn Rows cells that contain the word Yes into green on form load when i put that code into a button it worked but on a form load i didn't work ! anyone can help me out ? Thanks [CODE] Private Sub Form1_Load(ByVal sender As … Software Development vb.net |
The End.