132,726 Archived Topics
Remove Filter ![]() | |
Hi. Im making a flash cards program and need help with making graphics, making a menu, making it so that they can go back in and access the decks, and making it so i can give it o other people, and a few other things. Here's my code: [CODE] import … | |
Hi, i am trying to write a program which calculates the sum of the prime numbers below a specific limit using an algorithm called the Sieve of Eratosthenes(Wikipedia it). I am getting an error though when i run my program. It says debug assertion fail and something how the iterator … | |
i am getting this error and i dont know how to get rid of it its in GUI BTW Error 1 'ArrayManagementGUI.Form1.displayArray(double[])': not all code paths return a value F:\CSIS115c\ArrayManagementGUI\ArrayManagementGUI\Form1.cs 47 24 ArrayManagementGUI [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace … Software Development gui | |
Hello everyone...! this is my first post here. I have a problem regarding finding the average from an arraylist containing database values. From the database using getString() method i have stored the results of 3 fields in 3 separate arrylist. now what i needed is to find the average from … Software Development java | |
I want to load a Menu based on an XML document. I'm including an example from BartPE that does the same thing. I'm hoping that someone will have some experience with this before. [CODE] <?xml version="1.0"?> <NU2MENU> <MENU ID="Startmenu"> <!--==--> <MITEM TYPE="POPUP" DISABLED="@SetMenuPos( 'L','B' )0" MENUID="Programs">Programs</MITEM> <MITEM TYPE="SEPARATOR"></MITEM> <MITEM TYPE="POPUP" … Software Development flash gui storage vb.net windows-virus wireless-networking xml | |
![]() | ..Im preparing my way on studying C# this summer for my C#programming class.. .. well of course, I need a compiler so I could try it myself.. ..I just want to ask what could be the "BEST" compiler I can use for my purpose.. .. |
Hello I have this code below where I use the method ->ReadToEnd() to read in the whole file into the String test. The thing is that I have to use the method ->ReadToEnd() in this case because I use another class that only have this functionality. I cant read line … Software Development c++ | |
Hi guys, I am relatively new to java language of which I'm studying at the moment. I Have spent considerable time looking through examples and java class libraries but have not been successful in finding a solution for: 1) naming an Array within a method 2) adding data to the … Software Development java | |
I have a pointer object consisting of different arrays of variable length. I want to get one of the arrays from the pointer array and store is in a different array. How would I go about doing it? When I try the method, it gives an error: [B]initialization with '{...}' … Software Development c++ | |
I have a variable [B]x[/B] declared as [B]int *x = y[/B], where [B]y[/B] is also a pointer variable. Is there any way to store the variable in [B]y[/B] to [B]x[/B] without making [B]x[/B] a pointer such that it would look like: [CODE] int x = y; //y declaration => int … Software Development c++ | |
Hello again, again i just want to verify that i did my homework right [CODE]using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Movie { class Program { static void Main(string[] args) { MovieData(); } public static void MovieData(string movie = "The Social Network", int minute = 90) { Console.Write("The … Software Development | |
Here's the scenario: I am coding a program that will display data from a database in a variety of fields. Some of the fields need to be read-only. Should have been simple just to set all those controls to read-only, except some of them are checkboxes, radio buttons and date … Software Development oop | |
As my projects grow larger I'm beginning to appreciate more robust code with higher re-usability. Also easy to use error handling can make coding for errors much less repetitive. Is there a good online set of articles anyone could recommend? Software Development c++ | |
Hi there, I'm calling a function which reads XML and holds results in this kind of format: Item 1: Name="", Category="", InstallerURI="" Item 2: Name="", Category="", InstallerURI="" etc. I need some kind of return variable which will be able to hold this data. So far, I have tried: [CODE]// Create … Software Development xml | |
[ATTACH]20240[/ATTACH] There is something wrong with my code... even i put a valid license the display showing is the line 30-33 supposed to be line 28. how to display the not character in line 30 instead of counting how many. [CODE] Console.WriteLine("{0, 40}", "ICA17 - License Plate Checker"); string sLicence; … Software Development | |
Hi there I have been building a program separately and testing the code in sections. Which is fine as it works individually. However two of the classes are designed to share variables. The idea is the first class generates a partcile and then scans through a list of gridCells. It … Software Development c++ | |
Obviously, here is the initial code for this blackjack game. and in order for me to feel confident in this game I need to have an error check to make sure that there are at least 7 cards per player. And I have to do this in the second part … Software Development python | |
hey, i have got a class that extends JPanel called viewPanel and in there, there is paint method. in the paint method there is a oval point drawn on it. the coordinates x and y for the point are generated by using math.random so when the program executes the point … Software Development java | |
I have an app that writes to XML. If a text box is filled, then I write that value to the XML doc. [CODE] writer.WriteStartElement("VEHICLE_LICENSE_NUMBER") '10-28 writer.WriteString(frmCitation.txtPlate.Text.ToString) writer.WriteEndElement()[/CODE] If TEST123 is the value in the text box, this is the result. [CODE]<VEHICLE_LICENSE_NUMBER>TEST123</VEHICLE_LICENSE_NUMBER>[/CODE] Question is, if that value in the textbox … | |
Create a console-based application whose Main() method declares an array of eight integers. Call a method to interactivelyfill the array with any number of values up to eight. Call a second method that accepts out parameters for the arithmetic average and the sum of the values in the array. Display … Software Development | |
Does anyone can tell me where and how exactly to specify path input in following code for pattern(keyword) which is in a file C:\\"pattern.txt" and text (to be searched through) which is in a file C:\\"text.txt" to make it work. I tried couple of things but application will always return: … Software Development | |
Hello guys! :) I just wanted to ask something so that I can clear up things in my mind. What is the difference among Carriage Return ('\r'), New Line ('\n') and Line Feed? Is it correct to say that \n = \r + LF ? Thank you in advance! :) Software Development c | |
[ICODE] Hi, here you will find a program which taking some inputs calculates the sales of 5 items on daily and weekly basis. Prevously I wrote it with no function, and it was quite a very long program, 9 A4 sheets, but this is written by using a function. As … Software Development c | |
[CODE]#include <stdio.h> #include <stdlib.h> #include <conio.h> int main() { char _name[30]; int _age; printf("Hello Quester\n"); printf("What is your name ?\n"); scanf(_name); printf("...and what is your age, may i enquire esquire of peril and danger ahead\n"); scanf (_age); printf ("\nYour name is ",_name, (" \nand your age is "), _age ); … | |
Hello, I've been looking arround the internet, and I found the command [ICODE]wait(15);[/ICODE] to wait for 15 secons. I used the header [ICODE]#include <time.h>[/ICODE] and I got an error. Can someone please help me and tell me what I've been doing wrong? Software Development c++ | |
Hello experts, I am trying to extract the abstract from the following XML code that appears as follow; [CODE] <abstract> <p> In eukaryotes, glutathione S-transferases (GSTs) participate in the detoxification of reactive electrophillic compounds by catalysing their conjugation to glutathione. GST is found as a domain in S-crystallins from squid, … Software Development xml | |
Hi, I wrote a program that inserts nodes into a linked list in descending order.But whenever I test my code with numbers 12,14,13,19,7 in this order.Whenever I entered 7 I took 7 is already in the list.But as easily seen 7 is not in the list before I inserted.After give … Software Development c linked-list | |
im looking for a more efficient algorithm, is there any known one? ive checked my math books and c++ book and really didnt find anything more efficient than the following : [CODE] int first_prime(int num) { for (int i=2;i<sqrt(num);i++) { if (num%i==0) { if (isprime(i)); return(i); } } } bool … | |
Can someone please help me with this program. These are my instructions that were given to me... When I finish the inputs and it comes back with the numbers the payment amount is wrong [CODE] /////////////////////////////////////////////////////////////////////////////// // // Name: GCD.cpp // Author: Jeffrey A. Stone // Course: CMPSC 101/121 // … Software Development c++ | |
Hello.Does anyone know if you can disable the popup menu from an edit control ?Also can someone suggest a good method of trapping a mouse right click on an edit control within a window's main procedure ?I used WM_PARENTNOTIFY but that message is received from every editbox in my window … | |
Hello, In my program, I needed to do some functions that are found in windows.h, but I got an error saying that it could not find any of the following: [ICODE]#include <Windows.h>[/ICODE] [ICODE]#include <windows.h>[/ICODE] [ICODE]#include <Windows>[/ICODE] [ICODE]#include <windows>[/ICODE] Could someone please upload a coppy of windows.h for me, and [COLOR="Red"]PLEASE … Software Development c++ | |
hello all, i really hope you can help me. im trying to get a list of customers which are in my database to show up in a combo box but with the code i currently have, it only shows the last record that was entered [CODE]rs.MoveLast With Me.Combo1 .Clear Do … Software Development visual-basic | |
I dont know how to link my table to the database yet i already finished connecting to the application itself. i have four fields on the form as well in the database table. that is 1.word 2.lug_trans 3.Eng_trans 4.meaning the same fields appear in the database tables. i have to … | |
I am trying to use the java XOM libraries but I am having trouble getting them to work the way I want them to. I want to get each element and its attributes from an xml file then use that information to create folders and files on the users computer … | |
I need some help with an assignment, it is supposed to have 9 functions, one being main, and the other 8 void. The ONLY global variables that are allowed is the istream and ofstream. All programs in main are to execute in the order listed. I compile the program it … Software Development c++ | |
Hi, I found this video on youtube showing how to create a basic login system [URL="http://www.youtube.com/watch?v=FYvlqL2ieCY"]VIDEO[/URL] in C# I have to do this program but I need UserList to be in another class. I am doing this already for like an hour and I cannot solve it. Please I need … Software Development | |
i'm working on a system that include an audio annotation for every word. I have no problem when it comes to English Pronunciation of words. I'm using this Sapi code [CODE] Dim Sapi Sapi= createobject("sapi.spvoice") sapi.speak("label1.text") [/CODE] But is there a way i can also use this code when it … | |
Hy welcom to all. I want to controll mini remote controll car from laptop. i have only experience of java desktop application. but no experience in wireless programming. what i do to complete this project thanks | |
[CODE]file=open(words.txt) print(file)[/CODE] Please Ive been trying to use the open() function to open a txt file in python, but it keeps telling me that there is no such file or directory, where should I put the file for me to be able to import it. HINT: I use pyscripter, but … Software Development python | |
just a simple for loop from 2 to 4(including for with increments 0.1 and 0.01. the problem is that when the increment is 0.1, the value of cur in last loop is 3.9; wheras, when increment=0.01 it is 4(as expected). all the variables are "double". any idea or suggestion? [CODE] … Software Development c | |
I've written a code where depending on some condition i have add item in list as [CODE] With lview .Items.Add(mydr(0)) With .Items(.Items.Count - 1).SubItems if some condition then .Add(mydr(9)) end if end with end with [/CODE] But when i call listview click event for the if condition failure cases it … | |
[code] import java.util.Properties; import javax.mail.Message; import javax.mail.MessagingException; import javax.mail.Session; import javax.mail.Transport; import javax.mail.internet.InternetAddress; import javax.mail.internet.MimeMessage; public class SendMailTLS { public static void main(String[] args) { String host = "smtp.gmail.com"; int port = 587; String username = "avdhoot.patel@gmail.com"; String password = "password"; Properties props = new Properties(); props.put("mail.smtp.auth", "true"); props.put("mail.smtp.starttls.enable", "true"); … | |
Can anyone tell me why this code doesn't work? [CODE]using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO; namespace Assignment___Tekst_čitač { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { DriveInfo[] … Software Development | |
A fun little program that uses your internal motherboard speaker or "Beep" speaker and your keyboard to make a musical instument very similar to a musical KeyBoard. Software Development c++ ![]() | |
I’m a newbie and this is a simple problem I’ve been stuck on. How do I add numbers from an array in VB 2008? I’ve filled the array with 10 test scores. I’ve sorted the array in descending order (from highest to lowest). Now I need to figure out how … Software Development vb.net | |
Hi, I just started learning more about class/objects. What is the purpose of using 'this' pointers and static members? How exactly do you use them? These are some small examples: [CODE]class SomeClass { private: int num; public: void setNum(int num) { this->num = num; } }; [/CODE] What is 'this->' … Software Development c++ | |
Alright no more prime number generators I promise, but I had to fix the last one... This one uses the Sieve of Eratosthenes algorithm. It can generate prime numbers even faster, than the previous version. 1 million prime number in 2,331 second, ten million prime number in less than 22 … ![]() | |
I am thinking of learning C++ (I already know Python and Java), and a friend of mine is thinking of learning C# (already knows some Java and JavaScript). I know there is a long debated "C++ or C#" ordeal out there, so I am not asking about that! :) (I've … |
The End.