132,726 Archived Topics
Remove Filter ![]() | |
ok i have a perl script [CODE]use strict; use warnings; open(my $in, ">>", "log.txt") or die "cant open log.txt $!" ; my @files = <*>; foreach my $file (@files){ print $in $file . "\n"; } close $in or die "$in $!";[/CODE] it gets the filenames that are in the same … Software Development file-system perl | |
guys i just wanted to know that can we study algorithms with out studying discrete maths first? Software Development c++ | |
![]() | So I have a class file. Inside the class is a void which is started in the Program.cs. I used 'LavaSurvival.Init("properties/lava.properties")' in the Program.cs. I'm only pretty new to coding, so it's probably something I didn't know XD. The problem is that I continue to get this error: Type: IndexOutOfRangeException … |
Hi All I want to create a service application with Delphi that can connect to SQL DataBase I can create service application but the ADOQuery don't work inside the service Is any one that can tel me what should I Do? Thanks | |
Hi all I need to calculate CRC for my file..The algorithm is CRC-16.. I have a binary file with me.. I have also calculated checksum for the whole file . Now my doubt is for calculating checksum for any file do we need to calculate CRC for each and every … Software Development algorithm | |
what is the problem with this it is printing only the first node data :( .some one pls help me...[CODE]#include<stdio.h> #include<stdlib.h> struct node { struct node *prev,*next; int data; }; void create_list(struct node *list,int n) { struct node *n1,*n2; int i; n1=list; printf("enter the data for the 1 node:"); scanf("%d",&list->data); … Software Development c linked-list | |
I am trying to implement the algorithm of a CRC check, which basically created a value, based on an input message. So, consider I have a hex message 3F214365876616AB15387D5D59, and I want to obtain the CRC24Q value of the message. The algorithm that I found to do this is the … | |
SyntaxError: invalid syntax (on else) Any help? [CODE]import re words = ['cats', 'cates', 'dog', 'ship'] for l in words: m = re.search( r'cat..', l) if m: print l else: print 'none' [/CODE] Software Development python | |
Can anyone please explain me, step by step, each line of the following sorting algorithm which sorts the input lines numerically, if -n is given at the command line. (Program taken from the book "The C programming language, by brian kernighan and Dennis Ritchie" - Chapter 5. Section 5.11, page … | |
I currently have a small script I've written that basically takes an incremental backup of a folder which looks similar to this: [code] #!/bin/bash cp -ruf /home/folder4/subfolder/ /home/folder5/ cp -ruf /home/folder3/subfolder/ /home/folder4/ cp -ruf /home/folder2/subfolder/ /home/folder3/ cp -ruf /home/folder1/subfolder/ /home/folder2/ [/code] Now this runs fine, only updating the files that … Software Development shell-scripting | |
I realize there are many ways to store large numbers in c++ (and by large I mean too large for long doubles), but none of them were really what I was looking for. I don't just need to store large numbers in which case I would use GMP or something, … Software Development c++ | |
So i posted several days ago about an adding grades to an array, which i managed to figure out. This is the code I currently have. [CODE]public class Grades { public static void main (String[] args) { float result = 0; Scanner scan = new Scanner(System.in); int count = 0; … Software Development java | |
hallo reader, im having a problem concerning recursion in C++. I ve encountered a problem that requires to find all the subsets of a set of intergers that gives a required sum, meaning.. Enter integers: 16, 3,3,13. Required sum: 19 The prog should output: 16+3=19 13+3+3=19 the maximum size of … Software Development c++ linked-list | |
hello all, i got project on online examination i want to fetch data dynamically from database. it must be like that once student loged in. he must gives answer for 1st Q. to go next Q. when they click on any of the buttons. next Q. must be fetch dynamically … | |
i have to use FLV file in my project so how to implement FLV files in windows form c#??? Software Development c# | |
I use the tipical function: .... Open file For Input As #1 ... ecc... to reading txt file line by line. But instead to init the redaing line by line... 1) I need to find, in position mid(line, 1,8), the string INIT0000 and strat the reading of lines from here … Software Development file-system visual-basic | |
[CODE] //a program to assign seats on each flight of the airlines’ only plane (capacity 25 seats) #include <iostream> using std::cout; using std::endl; using std::cin; #include<string> int main() { string Name; string idNumber; const int SEATS = 26; int plane[ SEATS ] = { 0 }, people = 0, economy … Software Development c++ | |
I am using this code [CODE] Public Function Get_Settings(filename As String) As Boolean Dim recordlength As Integer recordlength = LenB(Settings) On Error GoTo erroropeningsettingsfile Open filename For Random Access Read As #1 Len = recordlength Get #1, 1, Settings Close #1 Get_Settings = True Exit Function erroropeningsettingsfile: Get_Settings = False … Software Development visual-basic | |
I want to give users full access to certain folders in the ProgramData folder. Can this be done with Delphi code? Software Development delphi microsoft-access pascal | |
Can you input a string of text from the console window into a char array? Or do you have to save it in a string, and then do a "s1.getChars( 0, 5, charArray, 0 );" Also, I noticed that you can't initiate a char array using the same syntax as … Software Development java | |
I've written a code tat reads x and y co ordinates from a txt file and drawlines on the panel. i need to save the written geometry on the panel as a jpeg image, can any one help me out wat should be written in the action listener part of … Software Development gui image java java-swing | |
Hi i need to create about 100 files in a numbered sequence like : file1.txt,file2.txt,file3.txt . so how can i create these files using c#. Software Development c# | |
[CODE] int i=5,j=10; printf("%d\n",(i=15)||(j=26)); printf("%d %d\n",i,j); [/CODE] THe output I expected was : 1 15 26 The actual output was: 1 15 10 In (i=15)||(j=26), shouldn't the brackets be done first?Isn't that the precedence order? So,first i must take 15 then j must take 26 then the || must be … Software Development c | |
[CODE]import java.awt.*; import javax.swing.*; import java.sql.*; import javax.swing.text.MaskFormatter; import javax.swing.table.DefaultTableModel; import java.util.Vector; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.event.MouseListener; import java.awt.event.MouseEvent; class MyFrame extends JFrame implements ActionListener,MouseListener{ Container c; JLabel lAccountNo,lAName,lDateofOpng,lAddress,lContactNo,lTotalBalance; JTextField tAName,tContactNo,tTotalBalance; JTextArea tAddress; JFormattedTextField tDateofOpng,tAccountNo; JButton bAdd,bNew,bDelete,bExit,bUpdate; DefaultTableModel mAccthld; JTable tAcctHld; MyFrame(){ c=getContentPane(); setSize(Toolkit.getDefaultToolkit().getScreenSize()); setTitle("Account Holder"); setLayout(null); lAccountNo=new JLabel("AccountNo."); … Software Development java java-jsp java-swing microsoft-access | |
Hey im working on a code where i need to get a certain column of a 2d array and create a 1d array with the information. The information im using is a product list in an aray in thsi format [barcode][price][stock] Now i need to grab the bar codes of … Software Development java | |
can anyone explain me how to use the inline function in c++ code with example? Software Development c++ | |
Hi, I want to fill data in my combo box using Add range method. [CODE] cboFirst.Items.Add("Sunday") cboFirst.Items.Add("Monday") cboFirst.Items.Add("Tuesday") cboFirst.Items.Add("Wednesday") cboFirst.Items.Add("Thursday") cboFirst.Items.Add("Friday") cboFirst.Items.Add("Saturday") [/CODE] This is how im filling my combo with days. i want to do the Same but by using Add Range Method. Please guide how,its urgent. Software Development vb.net | |
My application get crashed as soon as I attempt to see Crystal Report. Environment: Windows 7 CRRuntime_64bit_13_0_1.msi (SAP Crystal report installed) .NET 4.0 WPF Application Can anybody tell me whats should be the reason of crash and what to do? Software Development | |
Hello, I just started taking a VB class and I'm having an issue with the latest assignment. I'm supposed to design a program that calculates the cost, number of men and total time it will take to mow a lawn based on the size of the lawn. No problem. The … Software Development vb.net | |
This is my prompt. Write a program that asks the user how many twin primes the user wants to find, reads in that goal, and then successively examines the numbers starting at 2 to see if the number is a twin prime. The program stops when the specified number of … Software Development c++ | |
[CODE]#include<>stdio.h main() { int n,s=0,i=1; L1:printf("enter a range of numbers:"); scanf("%d",&n) if(n<1){printf("\wrong input"); goto L1;} while { s+=i; i+=2; } printf("\nthe sum of the series is=%d,s"); getch(); }[/CODE] the above program is meant to find out the sum S=1+3+5+7+....+N can any on explain me,the significance of talking i+=2?? Software Development c | |
Hi ! everyone. I can write small [B][I]"C" Language[/I][/B] programs, compile them in an IDE like Turbo C. But how to make a complete [B][I]Working Software Application[/I][/B] . Do i need only one .c file or many others. How to make a complete large piece of software system as opposed … | |
I have written an application which extracts a list of URL's (currently in Internet Explorer cache) from an XML file and displays them in a data grid view. From here i would like to launch Internet Explorer in a hidden mode and capture an image for each of the selected … Software Development vb.net | |
why my vb6 crashes whenever I add a label? I tried uninstalling and re-install vb6 but it seems not to fix the problem. How can I remove all vb6 files and components? Software Development visual-basic | |
So I've been trying for about a month or so but been busy recently so couldn't address it then. Here is the code. [CODE]Public Class Form1 Dim CurrentTime As DateTime Private Sub ButtonStart_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ButtonStart.Click ButtonStart.Enabled = False ButtonPause.Enabled = True CurrentTime = … Software Development vb.net | |
I thought I'd play around with vPython so I wrote a 3D breakout game (I used to have one on my Amiga and I haven't seen one for Windows). Everything is done except for one wee problem. I want to idle while waiting for the user to click the left … | |
I am trying to insert a piece of html code into a web browser control in vb 2010. i have tried the [COLOR="Green"]webbrowser1.documenttext[/COLOR] function but cant seem to get the browser to run the html code. can anyone help? thanks Software Development vb.net web-browser | |
Hi I thought iI would try to teach myself how to program, so sorry if this has been asked before but I could find it. What I am trying to do is limit an input to of an int to 50 or less with out the program throwing up an … Software Development python | |
I made a scanner, took asked the user to input an int, then a String and then another String. But after I put in an int and press enter, it skips the 2 String inputs. Why? How can I fix it? Software Development java | |
I have a script written up that takes an image and displays it. I originally intended to have the image then have parts fall away, but I am having trouble getting parts of the image to move separate. Is there a simple way to do this or am I going … | |
Good Day, I have troubles with compiling MySQL++ with Visual Studio 2010 Express edition, I've downloaded MySQL Complete Pack and installed Development tools (server, includes etc), downloaded MySQL++ 3.1.0 and runned vc2008 solution with my vc2010 and compressed it for 2010, I've included everything from MySQL folder and MySQL++ install … Software Development c++ mysql visual-studio | |
Running into an issue trying to fill a vector of structs. I am completely stuck. Here the assignment question Using the data file provided on the next page, write the C++ program to implement a vector of structs containing wines, vintage and scores. Create a file names wines.dat using the … | |
For some people it may be difficult to understand what Boolean is.Well, it's a type of algebra. We will be learning about three Boolean operators today-AND,OR,NOT The order for evaluating Boolean operators are as follows:- AND-If you have a code that should be executed if two conditions are true, you … Software Development c++ | |
I get this error when I run my applet on a website [CODE] Java Plug-in 1.6.0_26 Using JRE version 1.6.0_26-b03 Java HotSpot(TM) Client VM User home directory = C:\Users\Adam ---------------------------------------------------- c: clear console window f: finalize objects on finalization queue g: garbage collect h: display this help message l: dump … | |
Hello I am trying to figure out how I can use a while loop to construct an object and ask the user if they want to construct another one and add 1 to the name. For instance I am creating an Employee class that I want the name of the … Software Development java | |
What does this error mean? invalid operands of types `float[20]' and `float[20]' to binary `operator+' I can't use the + operator when adding array elements? This is my code lines, I'm just trying to add the four surrounding values in a [20][20] array of numbers to the element that's in … Software Development c++ | |
Hey everybody,it's the c++ creator.I am a beginner at C++,and am getting confused at functions.I am learning from a site called cprogramming.com and this is what they say- [QUOTE]Lesson 4: Functions (Printable Version) Now that you should have learned about variables, loops, and conditional statements it is time to learn … | |
I am working on a program with two classes that is supposed to handle hotel information and am getting confused on how to work with an array properly. Here is my code so far: [CODE] public class Hotel { Scanner scan = new Scanner (System.in); public int[] HotelArr = new … Software Development java | |
I'm having issues with a third level Toplevel in tkinter, that is to say having a toplevel popup from another Toplevel. [CODE] self.emailbttn= Button(self, text='Email', command=self.clientchooser) def clientchooser(self): showing.withdraw() client_choose() def client_choose(): global client client=Toplevel() client.title=('Choose Email') client.geometry=('800x600') Client(client) class Client(Frame): '''Choose Email Client''' def __init__(self,master): super(Client, self).__init__(master) self.grid() self.create_widget() … |
The End.