132,726 Archived Topics

Remove Filter
Member Avatar for
Member Avatar for vishal.patil

This is the code that I have written in C# which shows the contains in the sample.log file. [CODE] class FileRead { public void ReadData() { FileStream fs = new FileStream("sample.log", FileMode.Open, FileAccess.Read); StreamReader sr = new StreamReader(fs); sr.BaseStream.Seek(0, SeekOrigin.Begin); string str = sr.ReadLine(); while (str != null) { Console.WriteLine("{0}", …

Software Development c# file-system ide
Member Avatar for mcriscolo
0
417
Member Avatar for odiejodie

well simply i am coding an animation using netbeans but i wish to calculate the distance between my animation and the landing strip. i am using two labels in the animation, one is a rocket which you can direct and the other is a landing strip. How am i able …

Software Development java
Member Avatar for JamesCherrill
0
155
Member Avatar for dark3lf

Hello, I have a script written the unix shell language (NOT in bash or any other shell, in sh) that prints the mount point of a given usb (i.e, it takes the path of a usb (such as /dev/sdb1) as an argument). Here it is: [CODE] #!/bin/sh # usage: get_mount …

Software Development file-system shell-scripting unix
Member Avatar for thekashyap
0
202
Member Avatar for sneha mehta

i want to include using.System.Transactions header file in c# program but i m not able to do that. whats the problem i am not getting??

Software Development
Member Avatar for Momerath
0
95
Member Avatar for gavriela

Hi, I'm a student of Java, and my first homework assignment is more advanced than our reading. So...I'm lost. This question is: Q5: Write a program that reads a list of exam scores from the keyboard. Using A=90 to 100, B=80 to 89, C=70 to 79, D=60 to 69 and …

Software Development java
Member Avatar for Er. Mukesh
0
1K
Member Avatar for Jessurider

hey i've created 2 labels(label1 & label2) with 2 key handlers ([B]LEFT[/B] arrow key & [B]RIGHT [/B]arrow key)...........here when i press RIGHT key, a number counting is displayed in label1 .......... <<<<<here i need help>>>> suppose imagine that the count reached 20 at label1.....then when i press LEFT key the …

Software Development
Member Avatar for prvnkmr194
0
99
Member Avatar for coding101

I need to read a text file and change each character into morse code, then send it to another file. is there an easier way than having 26 different arrays associated to a different letter?

Software Development algorithm c
Member Avatar for Adak
0
90
Member Avatar for Abdel_eid

hello i want to know how to get Arabic data from jtextfield it is writen normally but when i order to show it , it appears in the form of ?????? please help thanks for you attention

Software Development java
Member Avatar for mKorbel
0
468
Member Avatar for Bennychrystal

[CODE]hey there everyone, am a new guy in Java programming, i want you guys to help me on how to write a program that can print out [B]even numbers[/B] below 61? and I want also to write a Java program that prints my name(first and second name on different lines.) …

Software Development java
Member Avatar for Katana24
0
186
Member Avatar for vijeevvv

Hi, I have a gridview in asp.net. Inside that I have a template field control(Link button named "Details" in all the rows). When I click that link button the details of that particular row should be displayed. Say suppose three records are there. When I click the link button in …

Software Development asp asp.net
Member Avatar for vijeevvv
0
107
Member Avatar for novice20

Hi, I get the log messages 'twice' on the console and only once in the log file. Can any one tell me the reason for this duplication on console? here is how I have set the logger: [ICODE]import logging #--set up logging to file logging.basicConfig(level=logging.DEBUG, format='%(asctime)s %(name)-12s %(levelname)-8s %(message)s', datefmt='%Y-%m-%d …

Software Development python
Member Avatar for novice20
0
104
Member Avatar for computerstudent

I'm trying to put together a code that will basically take a user input string and reprint every 3rd character. i.e. if a user inputs "Superman" it should be reprinted like "S e a" I'm sure this is Uber-simple to you but I'm just starting out, whether it is efficient …

Software Development python
Member Avatar for TrustyTony
0
157
Member Avatar for Aelphaeis

Essentially, my problem is that I have a program that dynamically creates controls. The Controls included are buttons and on click I want the buttons to remove themselves and all related data. The problem is I'm not sure how to identify the buttons from within the delete method. The important …

Software Development
Member Avatar for Aelphaeis
0
192
Member Avatar for dem10

Hey I am writing a double linked list dictionary of sorts. All of my functions were properly (add element after, move pointer, search, etc.). However, something is wrong with my add before function. Initially it adds elements fine, however if I decide to move the pointer to a new element …

Software Development c linked-list
Member Avatar for thekashyap
0
161
Member Avatar for coco24

Can somebody please help me understand what the output of this code would be. I believe I am getting the wrong output due to some technical problems with my computer. [code] public class SetDemo { public static void main(String[] args) { SetInherit inherit = new SetInherit(); SetComposition comp = new …

Software Development java
Member Avatar for stultuske
0
127
Member Avatar for van21

Please, help me with my assignment. Please, anyone with a big kind heart : write a c++ program to give the 30 students final grade in a course with the ff. grading scheme: there are five quizzes worth 20 pts. each, a laboratory worth 100 pts., and exam worth 100 …

Software Development c++
Member Avatar for van21
0
96
Member Avatar for HardWorkingMan

I have a assignmnt to find all prime numbers less then 100 ,using a boolean array, set all to true and then set non primes to false and display them. ( got this!!! ) it also askes me to loop through the array and if number is prime (true) launch …

Software Development java
Member Avatar for JamesCherrill
0
2K
Member Avatar for abu taher

in a textbox I write 100000. I want another text show automatically "one lac". I mean it aumatically show the in word of that numeric number what I write. how it possible.

Software Development visual-basic
Member Avatar for debasisdas
0
410
Member Avatar for Jake.20

guys, need help please. i have an syntax error on my update statement here is the code. myqry = "UPDATE prodInfo SET " myqry = myqry + " [itemName] = '" & txtName.Text & "'," myqry = myqry + " [comboSize] = '" & combosize.Text & "'," myqry = myqry …

Software Development vb.net
Member Avatar for prvnkmr194
0
116
Member Avatar for Kath_Fish

I wan to split my content(in horizontal)in my text file to vertical... [CODE] string filePath = @"c:\Users\Fish\Desktop\fyp-coding\Data.txt"; string line; if (File.Exists(filePath)) { StreamReader file = null; try { file = new StreamReader(filePath); while ((line = file.ReadLine()) != null) { MessageBox.Show( line); } foreach (string lines in File.ReadAllLines(filePath)) { string[] parts …

Software Development
Member Avatar for ddanbe
0
256
Member Avatar for gyuunyuu

I'm supposed to read all the words from text file and use bubble sort to sort the word and count their occurrence. As I read each word from file, what is the exact thing I need to do? Do I need to store the word (as char array) somewhere to …

Software Development c
Member Avatar for thekashyap
0
209
Member Avatar for tomala90

Hi all. I am trying to read items from a text file whose name is input by the user and also output the receipt to a text file whose name is input by user. I got stock for about 3 hours. Could you guys help? Thank You. [CODE] #include <iostream> …

Software Development c++ file-system ios
Member Avatar for jonsca
0
291
Member Avatar for iceregulus

Hello! I'm currently working on a sort of simple imperial-to-metric converter application for myself, but I seem to have hit a snag. I've got the UI built, and the logic for one of the calculations built, but the button to make it all happen is giving me a problem. [CODE]import …

Software Development java java-swing
Member Avatar for mKorbel
0
1K
Member Avatar for anoopkh

Hi can We run VB.Net windows Application (2.0 Framework) in Linux. If possible what are the steps to follow.

Software Development vb.net
Member Avatar for anoopkh
0
96
Member Avatar for lianpiau

who know how to make TreeGridView in C# which want support databind. want to retrieve data from database to display in TreeGridView.

Software Development c#
Member Avatar for lianpiau
0
1K
Member Avatar for PhiberOptik

Hey folks, I'm a student and I have been using Blue J. I have found it rather primitive and was wondering what the majority of other java programmers like to use? I thought about Net Beans but I honestly have no idea, So what do you use ?

Software Development java
Member Avatar for mjason
0
214
Member Avatar for Bill1811

Hi Everybody I am new to C++ and have a problem from the book my instructor gave that I am having some problems with. I am sure you guys are all familiar with the "mortgage calculator" here is my code. The Errors I am getting are as follows. I have …

Software Development c++ ios visual-studio
Member Avatar for mike_2000_17
0
179
Member Avatar for canyvr

I am a beingger for using Python,now I am doing a palindrome program,but I have tried many time it still doenst work, can anyone help me to fix it??Thanks a lot!!!!! Here is the code: [CODE] s=input("Enter alphabetic characters: ") def palindrome(s): index=0 c=True while index<len(s): if s[index]==s[-1-index]: index +=1 …

Software Development python
Member Avatar for canyvr
0
157
Member Avatar for ezat2020

hi... I am new with c++. I need help to retrieve image from my usb webcam. I used codegear compiler. The idea is I need to capture image 10 times per second( or more) from my webcam. So, it will display at the screen some sort like video image (at …

Software Development c++ image webcam
Member Avatar for ezat2020
0
195
Member Avatar for jotae

I'm using Visual Studio c# (spanish) The code: [CODE]cmd.CommandText = "UPDATE cursos SET saldo = saldo - '" + cantidad.ToString() + "' where id = '" + vID + "' ";[/CODE] vID is a string variable. The problem is here: Don't work [B]where id = '" + vID + "'[/B] …

Software Development visual-studio
Member Avatar for kvprajapati
0
108
Member Avatar for br007

Here is the snippet of code I am having issues with. cout<<"So are you a male or female, Please type m/f"<<endl; cin>>sex; if (sex='M','m') { alcohol_distribution=.73; } else if (sex='F','f') { alcohol_distribution=.66; } So I know I have this terribly wrong, but i want the alcohol_distribution based on whether or …

Software Development c++ programming-construct
Member Avatar for br007
0
122
Member Avatar for hitro456

Hi guys I am writing an application in c# I want to create a dynamic log file which would contain all the errors or exceptions occurred during execution of the Component. Log file simply has to append all the errors or exceptions generated with error details and time and date. …

Software Development c#
Member Avatar for ghimangi
0
228
Member Avatar for Kath_Fish

hey....i got some problem in ReadLines method string filePath = @"c:\Users\Fish\Desktop\fyp-coding\Data.txt"; string line; if (File.Exists(filePath)) { StreamReader file = null; try { file = new StreamReader(filePath); while ((line= file.ReadLine())!= null) { textBox7.Text = line; } } finally { if (file != null) file.Close(); } } When i use this coding...it …

Software Development
Member Avatar for Momerath
0
84
Member Avatar for kanthmca3

Could you please help me, i need to extract the fields which are Highlighted and moreover i want to extract in the following way. starting from the first column i have to go n(say n=13) lines down and extract "Records" field value. [U]P.s[/U] Please find the attached document which clearly …

Software Development shell-scripting
Member Avatar for thekashyap
0
91
Member Avatar for moraks007

To Chubler XL #!/bin/sh touch fileuseranswer echo "**********WELCOME TO GROUCHO MARX UNIVERSITY**********" echo Username: read i echo Password: read j Username="${i}:{j}" if ( ! grep -q $Username /$HOME/PhaseTest/userinfo ) then echo "Wrong Login/Passwd" exit 2 fi echo echo -e " \c" date QFILE=./questions # max questions max=$(sed 's/^[1-8][0-8]*\. /#&/' ${QFILE} …

Software Development shell-scripting
Member Avatar for thekashyap
0
163
Member Avatar for lochnessmonster

i do have 1 question [code]int function(...) { int x; int q; if (condition) { } <-----is there a way to put a marker here...then use a pointer to store the address of the marker...right before the 2nd conditional statement in my code? if (condition2) { } return val; } …

Software Development c++
Member Avatar for mike_2000_17
0
93
Member Avatar for ChieftanBill

I've recently come upon a frustrating Array Index Out Of Bounds error when selecting any of the "calculations" to be applied to the entered values(maximum 1000 values). I suspect it to be a problem with the [CODE]values[(c+1)][/CODE] in the for loop. I can't figure a way around this problem. Can …

Software Development java
Member Avatar for jon.kiparsky
0
246
Member Avatar for paulkinzelman

I've spent several days looking for info about precisely how to do DLLs and have found bits and pieces here and there but noplace that ties it all together. I'm thinking this could grow into a 'how-to' for DLLs which might be useful for others as well. I'd like to …

Software Development c
Member Avatar for paulkinzelman
0
308
Member Avatar for JudeV

The game will have the computer generate a secret random number in the range of 1 to 100. The user will then have six tries to guess the secret number. After each guess, the algorithm will tell the user if the guess was too high, too low or was correct. …

Software Development algorithm
Member Avatar for JudeV
0
1K
Member Avatar for biogig

so I've been trying to write this program that takes the data from a file and outputs the year the rainfall how much it is below/above the average, the average raifall and the std deviation and for some reason I get three C4552 warnings:'>': operator has no effect on three …

Software Development c++
Member Avatar for biogig
0
886
Member Avatar for stevanity

I came across this qn in a debugging contest in college. The out put must be "aadd" WHat should be given in conditional field. NO goto and exit statements. [IMG]http://lulzimg.com/i13/b449cb.jpg[/IMG] Can anyone help me??

Software Development c++ puzzle
Member Avatar for L7Sqr
0
101
Member Avatar for Archenemie

I have a listbox and what I basically want to achieve is as I click a value within the listbox I want the value clicked to be passed to a function. I could easily do this using a button and listbox.GetValue() but I believe the quality of my finished code …

Software Development python
Member Avatar for Archenemie
0
219
Member Avatar for Planetdune

Hey fellow delphirinos, I am currently using the following code to get an application in my application: [CODE]procedure TForm1.Button1Click(Sender: TObject); begin ShellExecute(Application.Handle,'Open','Notepad.exe' ,nil,nil,SW_NORMAL); //Wait for it to be loaded. Sleep(500); //Get the handle of the other program using the caption of the window. wHandle := FindWindow(NIL,'Untitled - Notepad'); //Now change …

Software Development pascal
Member Avatar for drjoeblack
0
108
Member Avatar for Snoozey

Hello, I have a current assignment to make a program copy what is put in, and place it into a paragraph using word wrap. If there is no room for the word+ a space then print the line and that word+ space starts the next line. [code] public class ReportWriter …

Software Development java
Member Avatar for mKorbel
0
129
Member Avatar for daviddoria

I am trying to return a vector of some of the elements in a vector. I wish to modify one of the elements in this new vector and have it automatically update the value in the original vector. I tried this: [code] #include <iostream> #include <vector> class TestClass { public: …

Software Development c++
Member Avatar for daviddoria
0
154
Member Avatar for monkey0525

My program is a implementation of the Sieve of Eratosthenes algorithm, which finds primes number. It stores two integers up to the maximum, and all odd numbers from 3 upward. It also checks if, for whatever any reason the first number ever reached the square root of the maximum number, …

Software Development algorithm java linked-list
Member Avatar for sabin_chirila
0
682
Member Avatar for newack

hello, i wrote a code to encrypt the 4 digit number. i broke the number in digits and encrypted it. It works fine. But the problem comes when first digit in output comes 0. that time i get 3 digit number instead of 4 digit number. i want it to …

Software Development java
Member Avatar for newack
0
84
Member Avatar for lilpinay

problem You are to, given the data below, design an IA-32 assembly language program to find the max and min of the array in X and save them in A and B respectively. X sword 100,200,-100,-200,150,-150,300,250 A sword ? B sword ? what i have so far: 1. irvine32.inc 2. …

Software Development assembly
Member Avatar for lilpinay
0
1K
Member Avatar for johnt68

Hello, I thought that I had sorted this a while back - but testing with fresh eyes has revealed otherwise. I think everything works (of course I may be quite deluded) but if the tick box is checked and a calculation is made it adds 10% - which is good …

Software Development
Member Avatar for johnt68
0
116
Member Avatar for whit0851

Hello every one I'm trying to write a game that has a person guess a number between 1 and 100 hand have the computer guess that number via inputs from the user but I keep running into snags. [CODE]#include <iostream> #include <cmath> #include <cstdlib> using namespace std; int main() { …

Software Development c++ gaming
Member Avatar for Crutoy
0
790

The End.