132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for derpmufc

All, I am reading in a text file into my program. I have managed to do the following 1. Split first line of the text file up based on the position of the commas and put them into an array. I.E [CODE] StreamReader reader = new StreamReader("shopping.txt"); string line = …

Software Development
Member Avatar for Momerath
0
115
Member Avatar for TheSilentGiant

Initially I was to design this simple program to have a file be read in and store 50 numbers in array1, and the last 50 numbers in array2, then calculate a total (array1 + array2) and store it in array3. But I need to change this program to utilize the …

Software Development java
Member Avatar for thines01
0
175
Member Avatar for BDan

I have my two JTextFields identified in a GridLayout, but when I try to reformat them the stay as large as their positioning allows. I have tried to specify the size of the field but it never changes on the final product. Could this be because the GridLayout or something …

Software Development java java-swing
Member Avatar for BDan
0
172
Member Avatar for jasp3r

Hello, I have a set of assembly instructions that I am trying to assemble with nasm and execute however I am receiving errors and i am not sure why. The result of executing these instructions should print out a sting. Any help would be much appreciated. [CODE]xor eax,eax push eax …

Software Development assembly
Member Avatar for thines01
0
129
Member Avatar for amgad habeeb

hello guys grade book *write a program that will calculate the average of an unknown number of students. *your program should validate the grades to be between 0 and 100. *there are 5 grades to be entered and averaged . *the program should enter the grades using a for loop …

Software Development c
Member Avatar for thines01
0
174
Member Avatar for Kayneedshelp

I have a program in which tells me the highest number and the lowest number. ( i am using a loop for the highest and lowest) I need to get the second highest and second lowest. without an array i was wondering if i could find that within the same …

Software Development java
Member Avatar for Ezzaral
0
241
Member Avatar for Jesi523

I have this method that gets me groups from AD: [CODE]public ArrayList GetUserGroups(string sUserName) { ArrayList myItems = new ArrayList(); UserPrincipal oUserPrincipal = GetUser(sUserName); PrincipalSearchResult<Principal> oPrincipalSearchResult = oUserPrincipal.GetGroups(); foreach (Principal oResult in oPrincipalSearchResult) { myItems.Add(oResult.Name); } return myItems; }[/CODE] But when I go to use it: [CODE]protected void AuthenticateAndLoadUserProfile() { …

Software Development
Member Avatar for Jesi523
0
618
Member Avatar for dieucay555

I want to write 1 extension method,it's purpose is convert 1 IEnumerable<T> to 1 ObservableCollection<T>, but i've error : [COLOR="Red"]Error 5 The type or namespace name 'T' could not be found (are you missing a using directive or an assembly reference?)[/COLOR] Here is my code : Code: [CODE=CS]using System; using …

Software Development assembly
Member Avatar for thines01
0
1K
Member Avatar for BenjaminH

Hello, I wrote a hangman game but it won't output what the user entered. At the beginning the display array is filled with underscores and as the user enters letters it is supposed to get updated with their input, but it isn't updating. Can someone please tell me what I'm …

Software Development c++ oop visual-studio
Member Avatar for Lerner
0
148
Member Avatar for HardToHandle

Hello, I am a novice programmer and I was given the following task: write a Payroll class that uses the following arrays as fields : employeeId (holds 7 integers that are initialized, I placed them in my code below), hours and payRate (both are doubles and hold 7 numbers). I …

Software Development java
Member Avatar for hfx642
0
388
Member Avatar for Prodian

This is my first post so be easy on me please. Im using a INI parser to read and write to an ini file. When reading the ini file I have certain parameters set to 1 or 0, which need to be stored to a checkbox variable. Heres a peice …

Software Development
Member Avatar for duffmanleesin
0
170
Member Avatar for smmcfarl

Hello! I am trying to make a program that reads in two numbers from a file and turns one into an imaginary number and then does different math functions with them. I am trying to use overloaded functions to do them. I am not getting any errors with what I …

Software Development c++
Member Avatar for Lerner
0
173
Member Avatar for dejanc

Hello, I would like to get message, or true result when DataSet get new record (new row). But, I always get message as "no". Button1 is add new record [CODE]Me.Table1BindingSource.AddNew() [/CODE] Button2 is save a record [CODE] Me.Validate() Me.Table1BindingSource.EndEdit() Me.TableAdapterManager.UpdateAll(Me.TestDataSet) [/CODE] Button3 should return "Yes" as new record has been …

Software Development dataset vb.net visual-studio
Member Avatar for dejanc
0
2K
Member Avatar for applejax77

Okay getting quite frustrated! I am trying to get an if statement to implement a pop up window when the user fails to enter any information in one of the JTextFields like fnameTF. Here the if statement but where do I place it to work in my program? [CODE]if (fnameTF.getText().length() …

Software Development file-stream gui java java-swing
Member Avatar for NormR1
0
1K
Member Avatar for yazz110

I would like to know how you can input information from one array to another. For example String A[] A[0]= 2, 54, 6, 7 A[1]= 434, 32, 45 A[2]= 34, 45 A[3]= 20 Where all that are in "A" are actually seen as strings, and you want to input this …

Software Development java
Member Avatar for NormR1
0
242
Member Avatar for Naveed_786

Dear All, Here is my code i am generating data grid manually on run time i want to assign a default value to REC ST column, i have tried but it didn't assign default value please view the last line of this peace of code. [CODE] Dim clmprno As New …

Software Development vb.net
Member Avatar for lolafuertes
0
162
Member Avatar for skatamatic

I am trying to write a somewhat generic class for calculating rolling averages. It's generic in the sense that it needs to support all numeric datatypes (int, double, short and long). I'm a bit of a noobie to VB.Net and have run into a problem: [code] Public Class RollingAverage(Of T) …

Software Development vb.net
Member Avatar for lolafuertes
0
170
Member Avatar for Mohit Malhotra

[CODE]#include<stdio.h> #include<conio.h> #include<stdlib.h> void Board(); void PlayerX(); void PlayerO(); void Player_win(); void check(); int win=0,wrong_X=0,wrong_O=0,chk=0; char name_X[30]; char name_O[30]; int pos_for_X[3][3]; int pos_for_O[3][3]; int pos_marked[3][3]; void exit(int status); void main() { int i,ch,j; char ans; /* clrscr(); printf("\n\t\t\t\tTIC TAC TOE"); printf("\n\t\t\t\t"); for(i=1;i<=11;i++) { delay(10000); printf("*"); }*/ do { clrscr(); printf("\n\t\t\t\tTIC …

Software Development c
Member Avatar for Ancient Dragon
0
6K
Member Avatar for applejax77

Here I am again! I am working on the program below that is calculating payroll but am kind of lost on how to program the reset button after the net pay has been calculated. Any and all help would be greatly appreciated. Thanks. [CODE]import java.io.*; import java.util.*; import javax.swing.*; import …

Software Development file-stream gui java java-swing
Member Avatar for applejax77
0
9K
Member Avatar for GTTravis

Hello Everyone, I wrote a function that allows me to retrieve data from a single SQL table and place it into 3 datagridviews. The problem i am having is as follows: * Whenever a user types something in anyone of the datagridviews that information is recorded in all three of …

Software Development sql vb.net
Member Avatar for GTTravis
0
1K
Member Avatar for Danielhuo

I am writing a program, but I cannot find what is wrong with the code. Only need to show one MP3, or an error message if there are any missing fields or an incorrect entry for seconds. It is not storing information about previous songs; it just display the current …

Software Development gui java java-swing window-manager
Member Avatar for peter_budo
0
845
Member Avatar for ayeshashahid

i have written a program taking marks of 35 students and calculating their average.can somebody please help me find my mistakes.the compiler is giving errors errors:---------------------Configuration: t2 - Win32 Debug-------------------- Compiling... t2.cpp E:\coding\t2\t2.cpp(21) : error C2109: subscript requires array or pointer type E:\coding\t2\t2.cpp(21) : error C2679: binary '>>' : no …

Software Development c++
Member Avatar for Moschops
0
148
Member Avatar for giancan

Hi everybody, I completed my scripts and I managed to compile them with py2exe. This script will edit some images and will save the output in a specific subfolder of the program (if the user will install it in the default location it will be something like c:\program files\MyProgram\output The …

Software Development python
Member Avatar for giancan
0
269
Member Avatar for spades0001

Hey guys! I've created this program that allows the user to get a .txt file from anywhere in the hard drive and it displays the contents in the text area. My question is: how can I edit my code so that it only allows picture files to be selected(jpg and …

Member Avatar for Ezzaral
0
143
Member Avatar for ryan461

I'm trying to get the available disk space on a remote linux host using python. The best way I could think to do this would be to os.popen a df command, and use regex to get the available space from the output. I then need to apply a variable to …

Software Development python regex
Member Avatar for Gribouillis
0
185
Member Avatar for carlucho

Hi, This is the first time ever I post something about any programming language. Im just starting this semester with C language, so Im really new on this. This C code is a project we have for the class. We have to supply definitions for different functions. I have gone …

Software Development c
Member Avatar for thines01
0
313
Member Avatar for skran

I would like to give me your help please.. I have connected my sql db with vb and I m trying to make a UI. My question is that when I write code in order to create datatables and I fill them with the results of queries I've created, where …

Software Development dataset vb.net
Member Avatar for thines01
0
158
Member Avatar for rubenrav

I'm writing a program has access to a database (a database where an other software stores data that users type). This database has several colums, but in my code, i need to use the two columns that describes where the data is from, and the the date when the data …

Software Development dataset microsoft-access visual-studio
Member Avatar for thines01
0
166
Member Avatar for cool_zephyr

Hello everyone..I'm trying to access the methods of a WCF service from a pocket pc emulator..I added a Web Reference to the service and tried to access the method like this [code] WebReferenceService1.Service1 client = new WebReferenceService1.Service1(); MessageBox.Show(client.GetData(10,true)); [/code] ..but everytime i call the method..i get System.Net.WebException error saying "Unable …

Software Development client-server web-browser
Member Avatar for cool_zephyr
0
166
Member Avatar for asif49

.contains seems to return true for most things, even if one or two chars match. Is there a way to make it more restrictive?

Software Development java
Member Avatar for asif49
0
417
Member Avatar for jam2010

Hi All, Can anyone answer below question. when to use use DBI; and when to use use DBD? Thanks in advance

Software Development perl
Member Avatar for techieguy31
0
67
Member Avatar for caffrea4

Hi, I'm new to java but have some experience with C++ can anyone help me with a basic code to display inheritance? I'v chosen a Parent class Phone and a Child class Mobile and I want to simply use the display method from my parent class on the child class. …

Software Development java
Member Avatar for JamesCherrill
0
98
Member Avatar for JRDJ12

[CODE]package com.abc.text; public class StringProcessing { /** * Returns the number of non-null strings in the set. * If null or a zero-length array is passed in, then zero is returned. * If a slot in the array is null, then it is ignored (not counted). */ public static int …

Software Development algorithm apple java programming-construct
Member Avatar for JRDJ12
0
468
Member Avatar for ooops.789

i am trying to send a file between a client and a server using sockets in C....well i see that there is a function sendfile(), but i donno its usage, can someone guide me with an example how to send a file and receive it.....

Software Development c client-server
Member Avatar for aShu5tosh
0
145
Member Avatar for HITMANOF44th

im new to java so if im doing some thing the wrong way please let me know this is the class that connects to data base and grabs all the info from colum 1 and colum 2 that part works now when i try to either make it a useable …

Software Development java mysql
Member Avatar for HITMANOF44th
0
174
Member Avatar for PapaGeek

I’m trying to initialize a combo box with the content of an INI file. Each line of the file contains a name for a website and the path to that site, tab delimited. I’m trying to read the file into a list so I can sort it etc. Visual studio …

Software Development c++ visual-studio
Member Avatar for PapaGeek
0
192
Member Avatar for swink11123

[CODE] import java.util.ArrayList; import java.util.Scanner; import java.io.*; import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.FileReader; import java.io.FileWriter; import java.io.PrintWriter; import java.io.IOException; import java.util.StringTokenizer; /** * Write a description of class Auction here. * * @Bong Suk Ing * @20/10/2011 */ public class Auction { private int displayPrice; private int increase; private int …

Software Development java
Member Avatar for stultuske
0
164
Member Avatar for arc45

"write a program that reads a list of names and telephone numbers from a text file and inserts them into an AVL tree showing in order and pre order traversal..once the tree has been built,present the user with a menu that allows huim or her to search the list for …

Software Development algorithm c++
Member Avatar for shinnoon
0
2K
Member Avatar for Muhammad Anas

Hi, I am trying to write a program that will separate the digits of a non-negative integer and will print them each two spaces a apart but I have to avoid using arrays. For example if input is: 12345 then output should be: 1 2 3 4 5 I have …

Software Development c++
Member Avatar for Muhammad Anas
0
3K
Member Avatar for Mubusher

Dear, I have a code of c# who simply insert data into database i have code that contains abyte data but runtime it insert query display the system.byte[] instead of byte data [CODE] private void showData_Click(object sender, EventArgs e) { String FileType; String PictureName; for (int i = 0; i …

Software Development open-source sql
Member Avatar for kvprajapati
0
2K
Member Avatar for Ashenvale

Hi guys :D.. just wondering.. when I'm using scanner this is the code I use to ignore the case "to put in the do..while statement" [CODE]} while (choice.trim().equalsIgnoreCase("Y"));[/CODE] I've been looking all over the net. what code should I use if I'm using JOption.. can anybody please help me on …

Software Development java
Member Avatar for thines01
0
206
Member Avatar for SureshAbraham

I have developed some simulations in C++ in the old Borland 3.0 version. They involve only simple mathematics. I need to develop some graphics for them. I need to display different moving images simultaneously. Say, three graphics windows at the same time. I am familiar with the BGI library. However, …

Software Development c++ ide image
Member Avatar for Dakot
0
290
Member Avatar for VB 2012

[CODE]Private Sub MainForm_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing If My.Settings.My_First_Build = True Then If OptionsForm.AutoSaveallOnExitCKB.CheckState = CheckState.Checked Then If Tab4RichTextBoxPrintCtrl.Modified = True Then SaveAsMenuItem1_Click(Me, e) Threading.Thread.Sleep(100) Else MessageBox.Show("Not modified") End If If Tab5RichTextBoxPrintCtrl.Modified = True Then SaveAsMenuItem2_Click(Me, e) Threading.Thread.Sleep(100) Else End If If Tab6RichTextBoxPrintCtrl.Modified = True …

Software Development vb.net
Member Avatar for GeekByChoiCe
0
135
Member Avatar for nikitadurgude

[CODE]#include <iostream> using namespace std; class bike { public: bike () { cout << "Bike: no parameters\n"; } bike (int a) { cout << "Bike: int parameter\n"; } void color(int a,int b) { cout<<"Inside Bike Color"<<endl; } }; class ducati : public bike { public: ducati (int a) { cout …

Software Development c++ oop
Member Avatar for Narue
0
213
Member Avatar for Blazko89

Hello everyone For my bioinformatic course i have to make script that allow user to open pdb file (its a file containing gathered information about proteins, all files have same structure) and look for number of subunits. To put it even more simple it has to check if there is …

Software Development python
Member Avatar for Blazko89
0
99
Member Avatar for SeniorAlexandro

Alright, I have a Textbox which I want to display some text, but when the user clicks on it, it should clear so he can write what he wants.

Software Development visual-basic
Member Avatar for SeniorAlexandro
0
997
Member Avatar for Kinneranand

how to read a file name like 01JUN2009_tsea_360x181.dat

Software Development c
Member Avatar for Narue
0
72
Member Avatar for Santi1986

any other method by which i can pass variable no. of arguments to a function :)

Software Development c
Member Avatar for Narue
0
350
Member Avatar for amnakhan786

hi, i am working on a code it has two parts: for the first part i have 1500-4000 text files which have strings in them.some files are same and some have different strings and i have to find amongst those a subset of files which are 10-20 n number and …

Software Development c file-system
Member Avatar for Adak
0
221
Member Avatar for walid86

i have two textbox's... these textbox's can have formatting applied etc, but they lose focus when a button is pressed, and the wrong textbox has formatting applied.. is there a way to track the last textbox to have control?. some kind of for each control f type textbox, if mouse.click, …

Software Development
Member Avatar for walid86
0
148

The End.