43,549 Solved Topics
Remove Filter ![]() | |
Greetings, I'm a python newbie struggling with the obvious. I have a txt file with fixed width whitespace between the elements. Excel can't import directly because the size of the whitespace varies between columns. I have stripped the header out leaving only data. This is the code I've tried to … Software Development python | |
Hi there, I'm making a simple C++ calculator. I want it to work something like this sample run: Begin Calculations 10 S // Set Accumulator to 10 = 10.000000 // Contents of Accumulator 2 / // Divide by 2 = 5.000000 // Contents of Accumulator 55 - // Subtract 55 … Software Development c++ | |
So i'm creating a form, on the form is a panel (panel1) which holds all data, pictures etc... This is then to be made into a bmp for professional printing (ie 300dpi). A4 @ 300dpi = 2480 x 3508; i am able to create the image at the panel's height … Software Development | |
I'm having some trouble with this section of code: [CODE] for(int i = 0; i < MAX_NUM ;i++) { subList[i].readIn(); System.out.println("\nDo you want to enter another subscriber? " + "(Y/N): "); anyMoreSub = keyboard.nextLine().toUpperCase(); if (anyMoreSub.equals("N")) { break; } } while(!isDone) { menuChoice = JOptionPane.showInputDialog("Please enter the letter for " … Software Development java | |
I've made a simple function that takes a vector as an argument. If the vector is empty, it throws a domain_error (I've included stdexcept). I'm feeding it an empty vector from the main loop just to learn try...catch statements and when it catches the error, it's supposed to print something … Software Development c++ | |
Now this question is being written in Scala, but Scala is Java compatible. I will translate the java code into Scala. // Write a recursive function "upto" // that takes two Int parameters "start" and "end" and produces a "List[Int]" // that counts DOWN from "start" to "end" (inclusive at … Software Development java | |
I have a string that has a ton of random characters (pulled from a webpage). I want to pull all of the numbers, commas, hyphens, periods, and percentages from the page and put them into a text file. I'm new to C++ so I'm not sure how I'd go about … Software Development c++ | |
I have an assignment to make a program for Time Entry. I am trying to get it where the Get payment button is disabled when the program first executes and then enables once I have submitted hours for five days. Below is the code I have so far and any … Software Development vb.net | |
How do I check whether the data members of two objects belonging to the same class are equal? Will the following code do or is it done in some other manner?? [CODE=C++] class Sample { int a; public: S(int x) { a = x; } int getA() { return a; … Software Development c++ | |
Hello all, I have a form with 24 textboxes incremented by a letter. example: txtDimVala1.text, txtDimValb1.text, txtDimValc1.text, etc. I created a code to check each textbox, but there must me a more efficient way to loop it. I have tried a few loops but I cant get them to work … Software Development programming-construct vb.net | |
Front End : VB 2008 Back End : Access 2003 Example of Database Record: [B]cCode | Name | Company | Contact [/B] 20091 | ABC | XYZ | 123 20101 | AB1 | XYZ1 | 456 20102 | AB1 | XY123 | 987 I am using year for making a … Software Development vb.net | |
Hey I have been trying to make a chatmachine, and i wanted to make it play music when the user asked for it, but the problem is how can i make the music stop again? Without closing the player, but by closing with the program.. I used this code [CODE]System.Diagnostics.Process.Start("C:Moves … Software Development c# | |
Hi folks, I am working on a Windows Form project that all things in it are dynamically created during run time. So all controls are created during running application and also events are assigned to controls. Also I have to mention all controls are user defined controls. All event functions … Software Development | |
I have a code which works, but I need a main method. can anyone please tel me where I can put the main method, I'm still struggling with that and maybe someone can give me pointers for the future. Thanks [CODE]public class BinaryTree { BinaryTree left; BinaryTree right; int value; … Software Development java | |
Hi Guys, I have a problem which in java i have a method called turn() is there a way to count the amount of times it gets called upon, ultimately counting the amount of turns? Software Development java | |
Hi, I am working on a small application that creates an RSS feed from raw XML data. While the application itself works as it should, I am trying to add images to each item in the feed, as for instance a Flickr feed. The problem I am getting is that … Software Development | |
i have two classes:parentbox and chiildbox [CODE]class parentbox { int width; int height; int length; }[/CODE] [CODE]class chiildbox { public static void main(String args[]) { parentbox babybox1= new parentbox(); parentbox babybox2=babybox1; babybox1.height=10; babybox1.length=19; babybox1.width=2; int vol; System.out.println("the vol of babybox1 is"+(babybox1.height*babybox1.length*babybox1.width)); //parentbox babybox2=babybox1; System.out.println("Now babybox2 contains:"); System.out.println("babybox2.height=",+babybox2.height); System.out.println("babybox2.length=",+babybox2.length); System.out.println("babybox2.width=",+babybox2.width); } … Software Development java | |
Sorry about all the posts; found time and have found time to do programing. Ok I want a usual console application to make a Win GUI window saying thanks at the end of the console app how would I do this eg: [CODE]#include whatever Using namespase std; // what does … | |
Hi All, I have webservice im having webmethod in that which returns Boolean value. Its retruning the correct output value only when the connection is pointing to localhost. Can any one please guide me? Thanks Software Development vb.net | |
Hey all I've got a form and several checkboxes. Each checkbox (if checked) runs a batch file which in turn installs a piece of software. The 2 is question are Acrobat Pro and Acrobat Standard - obviously only one can be installed. Therefore when one is checked by a user, … Software Development | |
I am getting error SEVERE: java.lang.UnsatisfiedLinkError: no j3dcore-ogl-chk in java.library.path when I am trying to run Applet. Do any one have any idea. Software Development java | |
What happens is that when i run my program from netbeans it works fine and it shows all the images but when i run the .jar file it doesn't show any of them...the images are declared below the "//Imagenes automata" comment by the way, im new in Java so please … Software Development image java java-netbeans java-swing | |
Hi, I made the perl script and I print out with Txt file. For EX : [CODE]Open (OUTPUT,">data.txt"));[/CODE] out put [CODE]data.txt[/CODE] But I hope at the day that I run the script, the day will be labeled with the name file. Like the name below: [CODE]20110919data.txt[/CODE] Could you please show … Software Development perl | |
need some help with the friend function that overloads the << operator heres my code thus far.... [CODE]#ifndef PRODUCT #define PRODUCT #include <iostream> using namespace std; class CProduct { private: int productID; // 5-digit product ID number int manufactureID; // 4-digit manufacturer's ID double price; // wholesale price double markup; … | |
Hi all! I'm playing around a bit with my old Visual Basic 6.0. I'm working with images, and this rather strange error came up: First I isolate a small piece of a larger picture to a smaller picturebox using PaintPicture: [ICODE]picBoxSprite.PaintPicture picBoxResource.Picture, 0, 0, 64, 64, (X * 64), (Y … Software Development visual-basic | |
I herd that some C++ compilers can use asembly languige in there programs along side C++, How would I do This? And is there any way to use a compiler as an assembler? <<two questions. | |
uhm. im new to visual basic 6. im making a maze program, ones like those that pop up a scary picture or something. im having a bit of a trouble with calling a sub thing.im not really sure if thats what you call it. program runs this way, as i … Software Development visual-basic | |
Ok so I am creating this scoring game using motorsport drivers. The scores are in variables for example score.vettel is vettels score for the current gameweek. A player has 6 drivers d1,d2,d3,d4,d5,d6 which are in the variable player(x).d1 where x is the player number. Maxsize is the number of players … Software Development vb.net | |
for my final year project i'm trying to do an IEEE project which titles as DATA LEAKAGE DETECTION SYSTEM..... Description : Aim of our project to develop Data leakage detection Model in which We study The distributor must assess the likelihood that the leaked data came from one or more … | |
I am trying to kill a process by using the following code [ICODE] Dim aprocess As System.Diagnostics.Process aprocess = System.Diagnostics.Process.GetProcessesByName("E:\\preview.mp3") aprocess.Kill() [/ICODE] however i am getting an error Value of type '1-dimensional array of System.Diagnostics.Process' cannot be converted to 'System.Diagnostics.Process'. Software Development vb.net | |
Hello all, I am wondering is there anyway to get user input without using a textbox? Or is there anyway to hide a textbox and still get user input into and out of it? I need to get user input but am finding it hard to get it without using … Software Development | |
i found a very simple program that is very simple but have a great logic. [CODE] #include<stdio.h> #include<conio.h> void main() { int B=1; printf("%d\n%d\n%d",b=15,b>9,b<9); getch(); } [/CODE] this seems very simple to me but the output is very strange to me OUTPUT:- 15 0 1 I tried very much to … Software Development c | |
This program is driving me crazy. I'm relatively new to programming and I can't figure out how to fix the error in the title (line 50). I'd really appreciate any help. [code=c] #include <stdio.h> #include <string.h> #include <stdlib.h> #define SIZE 20 //constants defined before main #define MAX_LEN 30 double calchours(int … Software Development c | |
hi i have a question relating to a date time picker, i have a form that i have the employee name and all the emaloyee details such as the employee DOB. whena user selects a user from the combo box the details from the database is being taken and displayed … | |
i want to disable some letter in a keyboard. How can i do it using VB6 code? cant you pls help me... Software Development visual-basic | |
Ok I realise my last submission was waffle so in short here is what I need to do: Populate a List Box lstManufacturers with the distinct values from a specified Column in a database table. The Column is called 'Car Manufacturers' and there are 4 distinct values in this column: … Software Development vb.net | |
For programming we need editor , compiler and next one to rum??? help me woth third one... folks... best IDE for java programming ????? | |
how can i populate listview from database? If the user search for a particular column (ex.Employee) then the output will be on the listview. | |
[CODE]import java.util.Scanner; public class sum{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); System.out.print("Enter n: "); int n = scanner.nextInt(); System.out.print("Enter m: "); int m = scanner.nextInt(); int sum = 0; for(int i = 0; i<=n; i++){ for(int j = i+1; j<=n; j++){ sum = i * j; … Software Development java | |
hey all, im new at shell scripting and need to find out a simple way to create text files, with random words in them. then needing to input 3 of these files arranging their lines in alphabetical order and after that creating an output file with the last lines sorted … Software Development shell-scripting | |
Ok, I have chosen my exact path in life and need to learn this: How would I program for Linux? I have only minute ammouts of windows programing so start from absalute basics (like after cout and cin and main() stuff, start at oh something like LinMain or whatever linux … Software Development c++ | |
hi guys. can anyone tell me why this code doesn't work? It doesn't raise any error but neither does it provide the expected results. [CODE] my_list= ['a','b'] class my_class: def __init__ (self): self.name = ' my name is hi' for a in my_list; a = my_class() [/CODE] a.name() gives and … Software Development python | |
I keep getting an error saying that I am not using an object while calling a method, but I do not see how i this is the issue since I declare my class as a class... here is my code: [CODE]#ifndef __STACK_H #define __STACK_H #include <iostream> #include <cstdlib> using namespace … Software Development c++ | |
How would I define the command of a given button in a messagebox window? i.e. if I were using askokcanel how would I make the ok do a certain action and cancel another? Software Development python | |
Hi there, I'm fairly new to java and I have a question about creating an array of objects for a class and allowing data entry for each individual object in the array. I'm a little confused on how to go about doing this correctly. As of right now I have … Software Development java | |
I'm suppose to end up with a label box with my name spelled out in it using string manipulation. This is suppose to happen using the concatenated string to output the name into the label box. I don't have any error codes but I also don't have my name in … Software Development printer publishing vb.net | |
I'm encountering some problems with converting Delpi7 pascal to C#, maybe a fresh set of eyes will see what I can't. Pascal [CODE] procedure TForm1.Button5Click(Sender: TObject); var Data: TData; i: integer; s: string; begin if not (CheckBox1.Checked) then begin StatusBar1.SimpleText:='Bidirectional operation not allowed'; exit; end; for i:=0 to 255 do … | |
I am working on an assignment that requires me to read in a text file with text that looks like this [CODE]974 Headlight_LoBeam 6 12.87 5 3[/CODE] I am able to open the file successfully and just for testing purposes I am able to use getline() to get the first … Software Development c++ file-system |
The End.