132,726 Archived Topics
Remove Filter ![]() | |
I have a file with several lists of names with scores. Ex: Foo 3 4 5 4 3 80 90 40 I need to split the file and then make it so I can take the numbers and calculate averages, so the numbers need to not be seen by Python … Software Development python | |
Jack loves to do jumping jacks. Create a simulation of Jack consisting of a stick figure and three buttons: start, stop, and quit. If the user clicks the start button, Jack begins jumping; if the user clicks the stop button, Jack stops jumping; if the user clicks the quit button, … Software Development python | |
I want to create an ultimate list ctrl based table where the user can sort the columns by clicking on the column header. Here's the code I attempted: [CODE]import wx import wx.lib.mixins.listctrl as listmix from wx.lib.agw import ultimatelistctrl as ULC APPNAME='Sortable Ultimate List Ctrl' APPVERSION='1.0' MAIN_WIDTH=300 MAIN_HEIGHT=300 musicdata = { … Software Development python | |
HELLO! There is no error and it runs, but it doesn't show my desired output. What is the problem? [CODE]#include<stdio.h> #include<stdlib.h> struct list { int data; struct list *ptr; }; int main() { struct list *clist; struct list *top; struct list *tmpptr; int i; clist=(struct list *)malloc(sizeof(struct list *)); top=clist; … Software Development c++ linked-list | |
I am having a little trouble ending my program when I click on my End Program button. The current code that I have keeps making the program freeze when I try to exiting via the button. Also, I am having some issues with my Auto Button not working. Any help … | |
So I'm trying to write a program that is due tomorrow. I am trying to overload operators and dealing with template classes. I have everything written already but keep getting this error whenever i try to compile the driver file: NOTE: proj4.cpp has #include "box.h" and box.h compiles fine, but … Software Development c++ | |
I made a function which will look up ages in dictionary and give out there name my dictionary si for example {george:16,amber:19} i made this [CODE] search_age = raw_input("Provide age") for age in list.values(): if age == search_age: name = list[age] print name[/CODE] but i know how to compare and … Software Development python | |
I know this thread has been done alot but i cant find anything that i think i would like to do i want to make a program in python i have a pretty basic understanding of python and i really like it but i want to make somthing thats going … Software Development python | |
Hi, I am new to the forum. I am stuck on this assignment I have to do. I think i have defined the array suitably enough, I just cant implement the sorting specified in the question. Any help would be greatly appreciated. Here is the question: Create a program in … | |
Hello, i need some help with code, i need to be able to print something that function returns then i press button on panel1 it should return text to panel2 textctrl in wxpython. Here is some bit of code.(i just cut code that i think is needed for this) [CODE] … | |
I wrote this program and it compiled with no errors or warnings but when i went to run it i get a segmentation fault and i cant figure out what is causing it. Ive spent hours and hours on this . Anyone with some expertise willing to take a look? … Software Development c | |
Hi I keep getting an error when trying to assemble and run my code and would like to know why. It says there is a syntax error in line 21 and "directive must be in control block" error in line 23. The program is supposed to write a square made … Software Development assembly | |
I have a series of Key value pairs. Each Key has 2 values. Values of Keys ma coincide. Initially i start with Key1, ValueKey1, ValueKey2 are stored in a set.(Maybe Array). Now for each consecutive Keyi, i check if Valuei, Valuei+1 are in the set. If any one of them … Software Development c++ | |
Hi, I have visual studio 2010 ultimate and i have installed sap crystal reports for visual studio. its a free edition for visual studio 2010. while working on a project in which i wanted to create a report, it was giving errors.. but that's not a problem, now i don't … Software Development vb.net visual-studio | |
After trying to start writing my long paper "Programing, The Art" I noticed that, getting user imput, conditional statements, using escape charecters, exicuting system commands, and even declaring variables and using them so that they have use; these are all difficult outside of the domain of C and C++, even … | |
hi guys .......i am new around here ......would like you suggest something about..."Gaming using C or C++ languages" | |
![]() | I'm using a horizontal JSlider. 1. The thumb slider is pointing [B]down[/B], and the ticks and labels are [B]below[/B] the track. How do I reverse this? I want the thumb slider to point [B]up[/B], and the ticks and labels to be [B]above[/B] the track. 2. How do I increase the … Software Development java |
** EDIT: sorry, typo in my title. I meant to write 3 pointers instead of 2. I am trying to revise/create a function in which it is given given three pointers to floats and reorders the values pointed to into ascending order. The prototype for the function would be: void … Software Development c | |
The source is available at [URL="http://code.google.com/p/java-cli-api/"]http://code.google.com/p/java-cli-api/[/URL]. It is not yet in the Maven Central Repository, but I did post the initial 0.0.1 release on the Downloads page if you do not want to check out the source. If anyone has comments/critiques on it, I would love to hear them. The … Software Development api google-api java open-source user-interface | |
Hello Dani Web Forum, I'm really new to C. I have an assignment, which I think it's very hard to solve. I have to create a Currency Converter Program that reads data from txt files. The program should also be able to read arguments (argv[]). I'm really confused since it's … | |
I have to write a game application that simulates a roulette table. The roulette table has 36 numbers (1 to 36) that are arranged in three columns of 12 rows. The first row has the numbers 1 through 3, the second row contains 4 through 6, and so on. There … Software Development c++ | |
Hello all, I am trying to figure out how to create new class objects when the user is asked if he/she would like to. What I have is a program we have to write that takes a certain number of students and keeps track of their name, assignments, and the … Software Development c++ | |
So I had to make a program that calculates the volume of sound at a different distance, given a reference difference, and sound level, and the new distance. It works sometimes but depends on what values I put in. Much of the time it tells me the new volume level … Software Development gui java java-swing | |
So im making a app and theres a problem as always +++++++++++++ Form 2 _ [CODE]Private Sub CustmBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CustmBtn.Click Dim IconLoc As String Dim CustmIcon As New OpenFileDialog CustmIcon.AutoUpgradeEnabled = True CustmIcon.DereferenceLinks = True CustmIcon.SupportMultiDottedExtensions = True CustmIcon.Filter = "Windows Based Icons|*.ico" … Software Development vb.net | |
why do my programs just flash off the screen when i try to execute them? i am new to programming, don't forget! | |
HI developers I'm new in c# .. i want to make periodic table .. but prob is i don't know how to make that periodic chart .. :( .. i i even dont know which section should i read to learn how make that chart ... i want to place … Software Development c# | |
Hello fellow members, I have recently started to study Java, but the lecturer went through basics very fast and now I'm having problems with starting to write a class. I have an idea of how to write the methods, but how to declare the array properly at the start to … Software Development java | |
Hello I'm a vb.net programmer and I am learning java so I was trying to figure out what is "sender" (VB.net) keyword in java? sender is simply a keyword in VB.net, for example you have multiple buttons having the same event and the code but you differentiate them in the … Software Development java | |
class MapClass holds copies of class DataStruct so that instances of class Action only have to store the key value associated with the DataStruct: [CODE]struct DataStruct { friend bool operator< (DataStruct const &lhs, DataStruct const &rhs) { if (lhs.xData < rhs.xData) return true; else if (lhs.xData > rhs.xData) return false; … Software Development c++ | |
[CODE] #include <iostream.h> main(){ int balance; int payment; int payment_num = 1; int months = 0; float interest; cout << "Please input a value for the balance" << endl; cin >> balance; cout << "Please input a value for the payment" << endl; cin >> payment; while (balance > 0) … | |
Can any one tell me why continue statement is not working in if ? i tried with following code [CODE] outA: if(userValue==randomValue) { int luck=s.nextInt(); int randNo=(int)(Math.random()*(userValue*2+(1))); int arrValue=point[i]; arrValue+=userValue; point[i]=arrValue; continue outA ; } [/CODE] but it shows error Software Development java | |
Hey so I've been working on a lab for my intro to software developing class and have been trying to get my program to work for several days now. It's a real basic program, im sure someone will be able to figure out the issue im having. Hopefully once I … Software Development gui ide java java-swing | |
Hello, I've added TXT file to my resource, but now I need to know how to access data in it? can I use iostream to read data? I have this: resource.rc [code]LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL IDR_0_1 0 "..\\..\\..\\..\\..\\Desktop\\test.txt"[/code] resource.h [code]#define IDR_0_1 119[/code] main.cpp [code]HRSRC hRes = FindResource(0, MAKEINTRESOURCE(IDR_0_1), "0"); HGLOBAL hData … Software Development c++ | |
Taking a string result collected from a function in a class (not a form) resultstring1 I want the string resultstring1 to be available to Form1 and Form2. How do I pass the string? Software Development | |
[CODE]Imports System.IO Public Class LoginForm1 Dim password_guardada As String Dim user As String Dim pass As String Dim pass_desincriptada As String Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles OK.Click Dim erro As Boolean = False If UsernameTextBox.Text = Nothing Then MsgBox("Erro, não pode deixar o campo … Software Development vb.net | |
"aung myo hein" to "nieh oym gnua" how to convert with CharAt GUI JTextField or JOptionPane | |
Hi, Im new at C# and im trying to make a booking system where i have a combobox on the first form. From that form i have to choose 1 out of 3 items. Depending on which item i choose i will come to another form. How can i get … Software Development c# | |
![]() | [CODE] #include <iostream.h> #include <stdlib.h> template < class ItemType > class stack { private : int top; int maxStk; ItemType *items; public : stack(); stack(int max); int isEmpty(); int isFull(); void push(ItemType newItm); int Pop(ItemType &Itm); }; template <class ItemType> stack <ItemType>::stack(){ top=-1; maxStk=500; items=new ItemType[500]; } template <class ItemType> … Software Development c++ first-post ![]() |
Hi all, I'm working on a problem where I have to store,retrieve, update the data from some temporary variables (for e.g. array) The scenario is as follows. Assume I have a datagridview with n number of rows and 3 columns for e.g. [CODE] Id name class 1 ff 2 2 … Software Development storage | |
Hey guys. I just learn about magic numbers today. I am trying to make a program that uses fstream along with magic numbers to tell what a file is. Example the magic numbers for jpg are ff d8 ff e0. How do i check a file to see if its … Software Development c++ file-system | |
Hello i am new to java and o have to write a program that determines the number of prime numbers less than N which is given by the user, but i have no clue where to start Software Development java | |
I get this error, [CODE]Exception in thread "main" java.io.IOException: Cannot run program "java -jar C:\Users\Jack\testFile.jar\" (in directory "\"): CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessBuilder.start(Unknown Source) at testProject.Main.main(Main.java:15) Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.<init>(Unknown Source) … Software Development java | |
Hi could you help me ? how to implement 2 stacks with a queue in data structurs ? | |
[COLOR="Green"]Hi all Pls tell me how i can read a data from EXCEL file and copy it to a text file using c++ program.I dont want to do it as manually .(Its for an extended application for software).I want to read the data from perticular cell to the end of … Software Development c++ file-system microsoft-office | |
Hi guys, I have already posted a thread regarding this but no one has ever shed a light upon it. I want a program that searches for files (.docx, exe, ppt, txt) from all folders. Is this possible i the first place? If yes, then how? Software Development vb.net | |
Okey I am making a simple chess program as an assignment and I ran into a few problems I coded a file called ChessPiece which is the Base class of all the chess Piece eg King ,Queen and etc... We have to create a interface class call ChessPaint that draw … | |
hello all where is the directory to place file below import com.toedter.calendar.JDateChooser; is it correct if the extracted folders and files be placed in folder c:\com\toedter\calendar\JDateChooser ? or because i place my source file in c:\java\src do i have to place the extracted folders and files in c:\java\src\com\toedter\calendar\JDateChooser ? I … Software Development java | |
can somebody help me with switch statement. [CODE] import java.util.Stack; import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.math.*; import java.util.Vector; public class Ahsan extends JFrame{ Stack s = new Stack(); private JFrame f; private JPanel p1,p2; private final int ADD = 1; private final int SUBTRACT = 2; // declare … Software Development gui java java-swing | |
Can i change the array's rows length after i define it as constant or any other way? Can you under my code or explanation? [CODE]#include<stdio.h> #define CLASS_SIZE 20 //First define the array rows's length void main() { double gpa, average, highest, lowest; int student, rows, i, j; char grade[CLASS_SIZE][5]; //Wish … Software Development c | |
Is it Mother Date and Father Time? Any way, getting all the different date and time displays working can be imperturbably perplexing at times. You take a look at it in this Windows Console Application. Software Development c# |
The End.