43,549 Solved Topics

Remove Filter
Member Avatar for
Member Avatar for DJWK

This program should extract the first line. Somehow I'm getting the last line instead of the first... This is the textfile: [ICODE]N100 G96 S200 N115 G0 X600 Z-1004.95 T11 D2 M3 M7 H10 N125 G0 X500 N130 G1 X419 F0.5 N135 G1 Z-1004 N140 G0 X500 N145 G0 Z-419.7 N150 …

Software Development c
Member Avatar for DJWK
0
227
Member Avatar for Satyrn

I am trying to simplify Maven to use one POM to do both a 64 bit build and a 32 bit build. I have tried to separate the build into two separate executions however I am required to set the compilerExecutable tag specified by the maven-native-plugin to point to either …

Software Development c++ ide java
Member Avatar for Satyrn
0
419
Member Avatar for NOVICE3

Using the following code: [CODE]public byte[] dxfData; int dxfpointer; byte newbyte; StringBuilder layerName = new StringBuilder(); newbyte = dxfData[dxfpointer]; while (newbyte != 0x0d) //stops at a CR { layerName.Append(newbyte); dxfpointer++; newbyte = dxfData[dxfpointer]; } string newstring = layerName.ToString(); label1.Text = newstring;[/CODE] The label shows the numbers for the ASCII letters …

Software Development
Member Avatar for Momerath
0
129
Member Avatar for Matth963

[CODE]import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Calendar; public class CheckIn{ Date today; void getArrivalDate() { DateFormat df = new SimpleDateFormat("dd/MM/yyyy"); try { System.out.print("Enter Date in dd/mm/yyyy format: "); String d = Keyboard.readString(); today = df.parse(d); df.format(today); } catch (ParseException e) { e.printStackTrace(); } } void getDepartureDate(){ Calendar …

Software Development java
Member Avatar for Matth963
0
262
Member Avatar for mkalinic

Hello all, I am having some trouble with my tic-tac-toe game. My main problem is that I do not know how to properly make it so that when i click a button on the form acting as spots for the x's and o's the proper letter will come up and …

Software Development gaming gui vb.net
Member Avatar for Reverend Jim
0
453
Member Avatar for jiraiya

Hi all, I'm trying read in the contents of a series of text files located in a folder in the same directory as a jar file. I've been trying to work out how to do this for a while now, but to no success, so any pointers as to where …

Software Development file-system gui java
Member Avatar for JamesCherrill
0
15K
Member Avatar for sha11e

I made this tiny code: [CODE] public class main { public static void main(String[] argv) { System.out.println("Hey"); } } [/CODE] It compiles and run fine in eclipse, but when i go into cmd and do javac main.java it created a main.class then I did java main.class but I get errors.. …

Software Development java
Member Avatar for JamesCherrill
0
366
Member Avatar for traxzer

Hey I´m getting some errors, could anyone please help me to get rid of them? Main code [code] import javax.swing.JOptionPane; public class Kontotest { public static void main(String[] args) { Konto bok = null; String navn = JOptionPane.showInputDialog( "Skriv inn navn"); String nummer = JOPtionPane.showInputDialog( "Skriv inn kontonummer"); String saldo …

Software Development java java-swing
Member Avatar for JamesCherrill
0
2K
Member Avatar for TIP.Synergy

Hi, all i want is to generate a random number/letter in listview per row but i don't know how to play for each.... coz' i have a list of record has already been exported to my gridview>listview so that's why there no ID for each row all i want to …

Software Development listview vb.net
0
104
Member Avatar for yousafc#

I have a form of c sharp, In winch I have Five Button.I want hit all buttons one by one dynamically. Please send me complete Code of c sharp.

Software Development gui
Member Avatar for yousafc#
0
123
Member Avatar for Hayzam Sherif

Hello Everyone I Have Been Learning C++ For The Past 1 Year :D , So With This Much Experience Can I Make or Modify A Bootloader in C++ Paradon Me For My Bad English Any Replies Would Be Greatly Appretiated

Software Development c++
Member Avatar for Hayzam Sherif
0
181
Member Avatar for srednakun

Hello, I am not sure why, when I call my method, it goes into a continuous loop and prints out nothing. The operator - method is suppose to be able to subtract a Date object and a Date argument. I will clarify if anything needs clarifying, thanks for the help …

Software Development c++ programming-construct
Member Avatar for tkud
0
157
Member Avatar for murnesty

I having problem of sizeof returning a hexadecimal value which I want it return decimal here is my sample code: [CODE]#include <cstdlib> #include <iostream> #include "stringCascade.h" using namespace std; void StringCascade (void) { unsigned char ucA[] = {0x02, 0x6F, 0x09, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0xFF, 0x00, …

Software Development c++
Member Avatar for tajendra
0
137
Member Avatar for Ehtesham Siddiq

Hi, I have two forms.Both having DatagridView.There are two comboboxes to filter the record from Database and fill in Datagridview.My requirement is when all the data is populated in DataGrid after selecting the comboboxes and when the user clicks on Delete. The comboboxes and Datagrid on second form should have …

Software Development vb.net
Member Avatar for Ehtesham Siddiq
0
177
Member Avatar for vdsf

I'm trying to code a traversal function for a huffman tree that will generate the code dictionary containing the binary codes for each letter in the tree. Once it hits a leaf node I want to insert the character and a QBitArray into the QMap that I pass in. The …

Software Development c++
Member Avatar for raptr_dflo
0
307
Member Avatar for dennysimon

Hi all I try to copy paste from a site java example ,there are 3 files,Main.java,Login.java,and LoginDialog.java. I can compile Login.java ,but when I compile LoginDialog.java,it said that it cannot find symbol Login.authenticate (a method in Login.java) I have check that there is this Login.authenticate method to make clearer I …

Software Development java java-swing
Member Avatar for jwenting
0
1K
Member Avatar for valestrom

What I want to do is have a predefined battle function, I can code the function, all I need to know how to do is have the function sitting there, so when I call it, all it takes is one or two variables to set up and go. So every …

Software Development c++
Member Avatar for valestrom
0
122
Member Avatar for nagatron

Hello to all java programmers I have a java database problem specifically the auto increment. In my MSAccess I have a table named "[B][COLOR="Red"]Confirm[/COLOR][/B]" and in that table I got two fields, the "[B][COLOR="Red"]confirm[/COLOR][/B]" which is set to text and the "[B][COLOR="Red"]id[/COLOR][/B]" which is set to auto number or auto …

Software Development java microsoft microsoft-access
Member Avatar for nagatron
0
969
Member Avatar for Adak

Obviously, it should be titled: "Steak and Chicken Dinner Problem" A wedding reception will have 200 guests and the dinner budget is $9,000. [CODE]Wedding Catering Prices: =================== Chicken Dinner: $40 Steak Dinner: $50 [/code] What is the highest number of steak dinners you can serve at this reception, and stay …

Software Development c
Member Avatar for Adak
-1
124
Member Avatar for pseudorandom21

Hello there, I'm not too entirely familiar with the operation of scheduled tasks within Windows XP and I'm tasked with finding an operable solution. Firstly, a couple things come to mind: 1. Start the process with windows using a low priority and sleep until it is time to function. This …

Software Development windows-xp
Member Avatar for Momerath
0
217
Member Avatar for isebas

Ok so i just started taking AP Computer Science at my high school and I really have no experience with java (just a little bit with python). So for our fist homework we had to try out a few codes and make some programs. I'm getting a " <identifier> expected …

Software Development java
Member Avatar for isebas
0
243
Member Avatar for webjam

Hello, I'm new to C++ with a fair experience in java. I would like to know the difference between [CODE]Ob o* = new Ob();[/CODE] and [CODE]Ob o = new Ob();[/CODE] I know the first allocates a block of memory and creates a pointer which keeps the address of this block. …

Software Development c++
Member Avatar for NathanOliver
0
126
Member Avatar for kangkan_14

Here is a part of code I am writing.I am getting a segfault in the CmpFunc function. The segfault occurs when I compare *a and *b i.e in the "if(*a>*b)" line. I am new to function pointers. So, I might be making a mistake somewhere which I don't realize.I would …

Software Development c
Member Avatar for kangkan_14
0
2K
Member Avatar for xellos

[CODE]use strict; use warnings; use IO::Socket; my $sock = new IO::Socket::INET( PeerAddr=> 'localhost', PeerPort=> '7070', Proto => 'tcp'); die "Could not create socket: $!\n" unless $sock; my $run = "yes"; while($run eq "yes") { my $text = <STDIN>; print $sock "$text"; print "Send more strings? yes/no"; $run = <STDIN>; } …

Software Development perl
Member Avatar for d5e5
0
148
Member Avatar for XodoX

Ok, I want to read integers from a text file...a large sum of integers. The input is a regular text file, where each line is terminated with an end-of-line character. The file is gonna contain any valid ASCII symbol between 32 and 127. A number of strings ( no negative …

Software Development c++ file-system
Member Avatar for raptr_dflo
0
1K
Member Avatar for srednakun

Hello My problem is I am calling a method in my main but this method doesn't have any code written in it, and yet I am getting an output of numbers approximately 10 digits long, and a negative value. For example, in my main I have: [CODE]Date d1(9,20,2011); // Date …

Software Development c++
Member Avatar for pavangajula2007
0
236
Member Avatar for a.muqeet khan

guys i just wanted to know that can we study algorithms with out studying discrete maths first?

Software Development c++
Member Avatar for Moschops
0
92
Member Avatar for starkk

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
Member Avatar for starkk
0
415
Member Avatar for Mahkoe

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++
Member Avatar for Mahkoe
0
186
Member Avatar for shandoosheri

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#
Member Avatar for shandoosheri
0
165
Member Avatar for theguitarist

[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
Member Avatar for theguitarist
0
143
Member Avatar for Episkey

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
Member Avatar for Episkey
0
249
Member Avatar for ravanan

can anyone explain me how to use the inline function in c++ code with example?

Software Development c++
Member Avatar for tajendra
0
382
Member Avatar for Ehtesham Siddiq

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
Member Avatar for Ehtesham Siddiq
0
2K
Member Avatar for Nitin Daphale

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
Member Avatar for Nitin Daphale
0
334
Member Avatar for RideFire

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++
Member Avatar for RideFire
0
2K
Member Avatar for aldeene

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
Member Avatar for aldeene
0
121
Member Avatar for secretply

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
Member Avatar for secretply
0
2K
Member Avatar for Reverend Jim

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 …

Software Development python queue
Member Avatar for Reverend Jim
0
275
Member Avatar for OblibSystems

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
Member Avatar for OblibSystems
0
600
Member Avatar for ali13

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
Member Avatar for ali13
0
3K
Member Avatar for Thropian

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 …

Software Development image python tkinter
Member Avatar for Thropian
0
257
Member Avatar for c++creator

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 …

Software Development c++ legal
Member Avatar for frogboy77
0
567
Member Avatar for nickliutw

I'm creating a program that perform store data and retrieve data from the arraylist. I have no clue make the program find the data in Arraylist and display the data that user is looking for. If data is not in the list, the program would print the line say that …

Software Development java
Member Avatar for NormR1
0
599
Member Avatar for oscargrower11

I'm used to c++ along with an open database (switched from mysql to postgres not too awful long ago.) A new job I'm looking at taking focuses heavily on .net along with SQL Server. As such, I've been looking into the .net framework and what I can't seem to figure …

Software Development c++
Member Avatar for Ancient Dragon
0
179
Member Avatar for oscargrower11

I'm used to c++ along with an open database (switched from mysql to postgres not too awful long ago.) A new job I'm looking at taking focuses heavily on .net along with SQL Server. As such, I've been looking into the .net framework and what I can't seem to figure …

Software Development asp.net c# visual-studio
Member Avatar for Momerath
0
197
Member Avatar for seamus400

I was wondering if anyone could help me compile code which will actually work for my comiler. I've found many examples and two good references for... keyboard [url]http://www.codeproject.com/KB/system/keyboard.aspx[/url] and mouse [url]http://msdn.microsoft.com/en-us/library/ms646260[/url] ...but have never actually gotten a working version to run and therefore haven't been able to fiddle around with …

Software Development c++ pc-peripheral visual-studio
Member Avatar for seamus400
0
1K
Member Avatar for xxxferraxxx

Hello, I need to know how do i locate a form window on custom location at the desktop: At application start. EX: Screen: [url]http://img707.imageshack.us/img707/5653/56465ytyt.png[/url] Other question: is there any idea to solve the design bugs on other Pcs? P.S Im so newbie at VB.NET x)

Software Development vb.net
Member Avatar for xxxferraxxx
0
435
Member Avatar for Coffee_Table

I am trying to run what i thought was a pretty basic program to solve a problem concerning strings (besides the point). It turns out that my algorithm works properly but i am stuck on a detail; the following segment of code is the problem: [CODE] int cases; string line; …

Software Development algorithm c++ programming-construct
Member Avatar for Coffee_Table
0
600
Member Avatar for chandnigandhi

code for bold,italic and underline in c# when button is pressed.....

Software Development
Member Avatar for chandnigandhi
0
125

The End.