132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for penguino138

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 …

Software Development flash java
Member Avatar for penguino138
0
129
Member Avatar for ddcc

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 …

Software Development algorithm c++
Member Avatar for ddcc
0
170
Member Avatar for shyla

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
Member Avatar for ddanbe
0
89
Member Avatar for sumprit

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
Member Avatar for sumprit
0
143
Member Avatar for MaddTechwf

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

0
107
Member Avatar for draven07

..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.. ..

Software Development c c# c++
Member Avatar for lxXTaCoXxl
0
111
Member Avatar for Jennifer84

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++
Member Avatar for jonsca
0
360
Member Avatar for monolithcode

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
Member Avatar for DarkLightning7
0
118
Member Avatar for YodaMerlin

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++
Member Avatar for YodaMerlin
0
240
Member Avatar for YodaMerlin

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++
Member Avatar for YodaMerlin
0
161
Member Avatar for shyla

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
Member Avatar for shyla
0
99
Member Avatar for techturtle

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
Member Avatar for techturtle
0
407
Member Avatar for ChaseRLewis

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++
Member Avatar for mike_2000_17
0
156
Member Avatar for CJdamaster

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
Member Avatar for CJdamaster
0
103
Member Avatar for josephP

[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
Member Avatar for Momerath
0
118
Member Avatar for eskimo456

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++
Member Avatar for mike_2000_17
0
122
Member Avatar for bwbyron

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
Member Avatar for woooee
0
320
Member Avatar for gedas

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
Member Avatar for gedas
0
105
Member Avatar for mrbungle

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 …

Software Development vb.net xml
Member Avatar for mrbungle
0
141
Member Avatar for shyla

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
Member Avatar for shyla
0
88
Member Avatar for orim0109

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
Member Avatar for orim0109
0
70
Member Avatar for Zababa

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
Member Avatar for Zababa
0
188
Member Avatar for fab2

[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
Member Avatar for rubberman
0
210
Member Avatar for gruffy321

[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 ); …

Software Development c pascal
Member Avatar for gruffy321
0
211
Member Avatar for TailsTheFox

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++
Member Avatar for VernonDozier
0
5K
Member Avatar for alokdhari

My tutor suggested me to use deep copy for copying tuples for pawn-chess game... can anyone help me out with how actually deep copy works ?? coz if i know it i can work it out in a more smoother way... n yea... m new to python !!

Software Development python
Member Avatar for alokdhari
0
211
Member Avatar for smandape

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
Member Avatar for smandape
0
133
Member Avatar for jackmaverick1

Hi, I'm very new to Java (started today, though I have 1.5 years in c++) and I've now read a little bit about Java, the thing that I can't find is how to take user input from the keyboard through a console window... How can you go about do that? …

Software Development java
Member Avatar for sourabh17
0
201
Member Avatar for virtue

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
Member Avatar for sourabh17
0
136
Member Avatar for Despairy

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 …

Software Development algorithm c++
Member Avatar for Despairy
0
1K
Member Avatar for rbduck09

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++
Member Avatar for rbduck09
0
1K
Member Avatar for caut_baia

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 …

Software Development api c++
0
145
Member Avatar for TailsTheFox

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++
Member Avatar for Ancient Dragon
0
1K
Member Avatar for saddas

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
Member Avatar for saddas
0
159
Member Avatar for kitjo

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 …

Software Development sql vb.net
Member Avatar for kitjo
0
92
Member Avatar for DarkLightning7

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 …

Software Development java xml
Member Avatar for DarkLightning7
0
326
Member Avatar for AODfan

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++
Member Avatar for WaltP
0
120
Member Avatar for xGrimReaperx

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
Member Avatar for xGrimReaperx
0
103
Member Avatar for miss_indie

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 …

Software Development audio vb.net
Member Avatar for miss_indie
0
85
Member Avatar for Naqib

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

Software Development java laptop
Member Avatar for VernonDozier
0
203
Member Avatar for e-papa

[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
Member Avatar for e-papa
0
180
Member Avatar for volkang

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
Member Avatar for volkang
0
88
Member Avatar for vn412

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 …

Software Development listview vb.net
Member Avatar for codeorder
0
689
Member Avatar for patel.ajay82

[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"); …

Software Development java session
Member Avatar for kvprajapati
0
3K
Member Avatar for nera1981

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
Member Avatar for Mitja Bonca
0
100
Member Avatar for #include<DAN.h>

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++
Member Avatar for KumarUtkarsh
0
174
Member Avatar for more mayo

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
Member Avatar for tomato.pgn
0
2K
Member Avatar for SeePlusPlus2

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++
Member Avatar for arkoenig
0
152
Member Avatar for BevoX

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 …

Software Development algorithm c++
Member Avatar for KumarUtkarsh
0
156
Member Avatar for WolfShield

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 …

Software Development c c# c++
Member Avatar for WolfShield
0
565

The End.